v0.2 Ruby templates cleaning - HashPair given name 'hp' - Removed '# =>' template - Duplicated 'def' template with name 'deff' as 'def' won't autocomplete in Eclipse - Removed 'Embedded code' template: #{${paste}} as it seems pointless - Removed 'Hash pointer' template as seems pointless: ' => ' - 4 x log templates renamed with 4th letter matching their specific log type, e.g. 'loge' -> logger.error - mcol - all deleted and renamed as per TextMate: - mac -> migration add_column - mrc -> migration remove_column - mnc -> migration reName_column - mcc -> migration table column - mccc-> (preexist) multiple migration table columns - mtab - all deleted and renamed as per TextMate: - mct -> migration create table - mdt -> migration drop table - mnt -> migration reName table - 'r' -> 'ro' (Read Only) for attr_reader, as 'r' isn't valid name for Content Assist - 'w' -> 'wo' (Write Only) - 'y' -> 'yields' for ' :yields #{arg}' - Add parentheses to render calls, e.g. instead of: render :action => "index" generate: render(:action => "index") New Ruby templates: - 'asa' - assert(${var} = assigns(:${var})) - 'asnnv' - assert_not_nil(${var} = assigns(:${var})) - 'asrdt' - assert_redirected_to - 'btf' - belongs_to with foreign_keys - 'hmf' - has_many with foreign_keys - 'hmt' - has_many :through - ticket #11 - 'hof' - has_one with foreign_keys RHTML templates - 'base' -> cleaned variable names - 'body' -> std ... - 'bodyo' -> generates an onload attribute - 'form' -> removed ${TM_XHTML} - 'style' -> media attribute is now a variable: media="screen" --> media="${screen}" - 'table' -> added cellpadding attribute - Created 'erb' -> '<%= #{paste} %>' - 'mailto' -> href and text have the same variable name 'email' so it automatically duplicates - 'nbsp' -> ' ' (non-breaking space) - 'movie' -> cleaned up the variables - 'div' -> includes 'class' attribute - 'div' -> div tag and end tag are variables, thus changeable New RHTML templates: - 'rp','rpc','rpl','rpo','rps' - <%= render :partial...%> variations - ticket 13 v0.1 - Initial drafts of ruby + rhtml generated from TextMate snippets