Skip to content

Commit b2a91d1

Browse files
committed
add options_for_select
add method `options_for_select` from Rails.
1 parent 8c1fadf commit b2a91d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: snippets/eruby.snippets

+2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ snippet ntc
107107
<%= number_to_currency(${1}) %>
108108
snippet ofcfs
109109
<%= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${0:selected_value} %>
110+
snippet ofs
111+
<%= options_for_select ${1:collection}, ${2:value_method} %>
110112
snippet rf
111113
<%= render :file => "${1:file}"${0} %>
112114
snippet rt

0 commit comments

Comments
 (0)