@@ -44,13 +44,13 @@ snippet fi "<%= Fixtures.identify(:symbol) %>"
44
44
endsnippet
45
45
46
46
snippet ft " form_tag" w
47
- `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_INLINE' , snip) ` form_tag(${1: : action => '${2: update } ' }${3: , ${4: ${5: class } => '${6: form } '\} } } ) do`!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
47
+ `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_INLINE' , snip) ` form_tag(${1: action: '${2: update } ' }${3: , ${4: ${5: class } : '${6: form } '\} } } ) do`!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
48
48
$0
49
49
`!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_BLOCK' , snip) `
50
50
endsnippet
51
51
52
52
snippet ffs " form_for submit 2" w
53
- `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` ${1: f } .submit '${2: Submit } '${3: , : disable_with => '${4: $2 ing... } ' } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
53
+ `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` ${1: f } .submit '${2: Submit } '${3: , disable_with: '${4: $2 ing... } ' } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
54
54
endsnippet
55
55
56
56
snippet f. " f_fields_for (nff)" w
@@ -84,7 +84,7 @@ snippet f. "f.radio_button" w
84
84
endsnippet
85
85
86
86
snippet f. " f.submit" w
87
- `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` f.submit "${1: Submit } "${2: , : disable_with => '${3: $1 ing... } ' } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
87
+ `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` f.submit "${1: Submit } "${2: , disable_with: '${3: $1 ing... } ' } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
88
88
endsnippet
89
89
90
90
snippet f. " f.text_area" w
@@ -110,43 +110,43 @@ snippet ff "form_for" w
110
110
endsnippet
111
111
112
112
snippet ist " image_submit_tag" w
113
- `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` image_submit_tag("${1: agree.png } "${2: ${3: , :id => "${4: ${1 / ^ (\w + )(\. \w * )? $ / $ 1/ } } " }${5: , : name => "${6: ${1 / ^ (\w + )(\. \w * )? $ / $ 1/ } } " }${7: , : class => "${8: ${1 / ^ (\w + )(\. \w * )? $ / $ 1/ }-button } " }${9: , : disabled => ${10: false } } } )`!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
113
+ `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` image_submit_tag("${1: agree.png } "${2: ${3: , id: "${4: ${1 / ^ (\w + )(\. \w * )? $ / $ 1/ } } " }${5: , name: "${6: ${1 / ^ (\w + )(\. \w * )? $ / $ 1/ } } " }${7: , class: "${8: ${1 / ^ (\w + )(\. \w * )? $ / $ 1/ }-button } " }${9: , disabled: ${10: false } } } )`!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
114
114
endsnippet
115
115
116
116
snippet it " image_tag" w
117
- `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` image_tag "$1 ${2: .png } "${3: ${4: , : title => "${5: title } " }${6: , : class => "${7: class } " } } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
117
+ `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` image_tag "$1 ${2: .png } "${3: ${4: , title: "${5: title } " }${6: , class: "${7: class } " } } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
118
118
endsnippet
119
119
120
120
snippet layout " layout"
121
- layout "${1: template_name } "${2: ${3: , : only => ${4: [:${5: action } , :${6: action } ] } }${7: , : except => ${8: [:${9: action } , :${10: action } ] } } }
121
+ layout "${1: template_name } "${2: ${3: , only: ${4: [:${5: action } , :${6: action } ] } }${7: , except: ${8: [:${9: action } , :${10: action } ] } } }
122
122
endsnippet
123
123
124
124
snippet jit " javascript_include_tag" w
125
- `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` javascript_include_tag ${1: :all }${2: , : cache => ${3: true } } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
125
+ `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` javascript_include_tag ${1: :all }${2: , cache: ${3: true } } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
126
126
endsnippet
127
127
128
128
snippet lt " link_to (name, dest)" w
129
129
`!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` link_to "${1: link text... } ", ${2: dest } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
130
130
endsnippet
131
131
132
132
snippet lia " link_to (action)" w
133
- `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` link_to "${1: link text... } ", : action => "${2: index } "`!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
133
+ `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` link_to "${1: link text... } ", action: "${2: index } "`!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
134
134
endsnippet
135
135
136
136
snippet liai " link_to (action, id)" w
137
- `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` link_to "${1: link text... } ", : action => "${2: edit } ", :id => ${3: @item } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
137
+ `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` link_to "${1: link text... } ", action: "${2: edit } ", id: ${3: @item } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
138
138
endsnippet
139
139
140
140
snippet lic " link_to (controller)" w
141
- `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` link_to "${1: link text... } ", : controller => "${2: items } "`!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
141
+ `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` link_to "${1: link text... } ", controller: "${2: items } "`!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
142
142
endsnippet
143
143
144
144
snippet lica " link_to (controller, action)" w
145
- `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` link_to "${1: link text... } ", : controller => "${2: items } ", : action => "${3: index } "`!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
145
+ `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` link_to "${1: link text... } ", controller: "${2: items } ", action: "${3: index } "`!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
146
146
endsnippet
147
147
148
148
snippet licai " link_to (controller, action, id)" w
149
- `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` link_to "${1: link text... } ", : controller => "${2: items } ", : action => "${3: edit } ", :id => ${4: @item } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
149
+ `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` link_to "${1: link text... } ", controller: "${2: items } ", action: "${3: edit } ", id: ${4: @item } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
150
150
endsnippet
151
151
152
152
snippet linpp " link_to (nested path plural)" w
@@ -174,15 +174,15 @@ page.hide ${1:"${2:id(s)}"}
174
174
endsnippet
175
175
176
176
snippet ins " page.insert_html (position, id, partial)"
177
- page.insert_html :${1: top } , ${2: "${3: id } " } , : ${4: partial => "${5: template } " }
177
+ page.insert_html :${1: top } , ${2: "${3: id } " } , ${4: partial: "${5: template } " }
178
178
endsnippet
179
179
180
180
snippet rep " page.replace (id, partial)"
181
- page.replace ${1: "${2: id } " } , : ${3: partial => "${4: template } " }
181
+ page.replace ${1: "${2: id } " } , ${3: partial: "${4: template } " }
182
182
endsnippet
183
183
184
184
snippet reph " page.replace_html (id, partial)"
185
- page.replace_html ${1: "${2: id } " } , : ${3: partial => "${4: template } " }
185
+ page.replace_html ${1: "${2: id } " } , ${3: partial: "${4: template } " }
186
186
endsnippet
187
187
188
188
snippet show " page.show (*ids)"
@@ -198,31 +198,31 @@ page.visual_effect :${1:toggle_slide}, ${2:"${3:DOM ID}"}
198
198
endsnippet
199
199
200
200
snippet rp " render (partial) (rp)"
201
- render : partial => "${1: item } "
201
+ render partial: "${1: item } "
202
202
endsnippet
203
203
204
204
snippet rpc " render (partial,collection) (rpc)"
205
- render : partial => "${1: item } ", : collection => ${2: @$1 s }
205
+ render partial: "${1: item } ", collection: ${2: @$1 s }
206
206
endsnippet
207
207
208
208
snippet rpl " render (partial,locals) (rpl)"
209
- render : partial => "${1: item } ", : locals => { : ${2: $1 } => ${3: @$1 } $0 }
209
+ render partial: "${1: item } ", locals: { ${2: $1 } : ${3: @$1 } $0 }
210
210
endsnippet
211
211
212
212
snippet rpo " render (partial,object) (rpo)"
213
- render : partial => "${1: item } ", : object => ${2: @$1 }
213
+ render partial: "${1: item } ", object: ${2: @$1 }
214
214
endsnippet
215
215
216
216
snippet rps " render (partial,status) (rps)"
217
- render : partial => "${1: item } ", : status => ${2: 500 }
217
+ render partial: "${1: item } ", status: ${2: 500 }
218
218
endsnippet
219
219
220
220
snippet slt " stylesheet_link_tag" w
221
- `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` stylesheet_link_tag ${1: :all }${2: , : cache => ${3: true } } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
221
+ `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` stylesheet_link_tag ${1: :all }${2: , cache: ${3: true } } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
222
222
endsnippet
223
223
224
224
snippet st " submit_tag" w
225
- `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` submit_tag "${1: Save changes } "${2: , :id => "${3: submit } " }${4: , : name => "${5: $3 } " }${6: , : class => "${7: form_$3 } " }${8: , : disabled => ${9: false } }${10: , : disable_with => "${11: Please wait... } " } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
225
+ `!p textmate_var(' TM_RAILS_TEMPLATE_START_RUBY_EXPR' , snip) ` submit_tag "${1: Save changes } "${2: , id: "${3: submit } " }${4: , name: "${5: $3 } " }${6: , class: "${7: form_$3 } " }${8: , disabled: ${9: false } }${10: , disable_with: "${11: Please wait... } " } `!p textmate_var(' TM_RAILS_TEMPLATE_END_RUBY_EXPR' , snip) `
226
226
endsnippet
227
227
228
228
snippet else " else (ERB)"
0 commit comments