4
4
5
5
# Rails *****************************
6
6
snippet rc
7
- <% ${1} - %>
7
+ <% ${1} %>
8
8
snippet rce
9
9
<%= ${1} %>${2}
10
10
snippet end
11
- <% end -%>${1}
11
+ <% end %>${1}
12
+ snippet ead
13
+ <% ${1} .each do |${2} | %>
14
+ ${3}
15
+ <% end %>
12
16
snippet for
13
17
<% for ${2: item } in ${1} %>
14
18
${3}
@@ -40,19 +44,19 @@ snippet conf
40
44
snippet cs
41
45
<%= collection_select <+object+>, <+method+>, <+collection+>, <+value_method+>, <+text_method+><+, <+[options]+>, <+[html_options]+>+> %>
42
46
snippet ct
43
- <%= content_tag '${1: DIV } ', ${2: content }${3: ,options } - %>
47
+ <%= content_tag '${1: DIV } ', ${2: content }${3: ,options } %>
44
48
snippet ff
45
- <% form_for @${1: model } do |f| - %>
49
+ <% form_for @${1: model } do |f| %>
46
50
${2}
47
- <% end - %>
51
+ <% end %>
48
52
snippet ffcb
49
53
<%= ${1: f } .check_box :${2: attribute } %>
50
54
snippet ffe
51
- <% error_messages_for :${1: model } - %>
55
+ <% error_messages_for :${1: model } %>
52
56
53
- <% form_for @${2: model } do |f| - %>
57
+ <% form_for @${2: model } do |f| %>
54
58
${3}
55
- <% end - %>
59
+ <% end %>
56
60
snippet ffff
57
61
<%= ${1: f } .file_field :${2: attribute } %>
58
62
snippet ffhf
@@ -70,13 +74,13 @@ snippet ffta
70
74
snippet fftf
71
75
<%= ${1: f } .text_field :${2: attribute } %>
72
76
snippet fields
73
- <% fields_for :${1: model } , @$1 do |${2: f } | - %>
77
+ <% fields_for :${1: model } , @$1 do |${2: f } | %>
74
78
${3}
75
- <% end - %>
79
+ <% end %>
76
80
snippet ff
77
- <%= form_for @${1: model } do |f| - %>
81
+ <%= form_for @${1: model } do |f| %>
78
82
${2}
79
- <% end - %>
83
+ <% end %>
80
84
snippet i18
81
85
I18n.t('${1: type.key } ')${2}
82
86
snippet it
0 commit comments