add options_for_select

add method `options_for_select` from Rails.
This commit is contained in:
Ryan Wang 2014-03-12 13:04:54 +08:00
parent 8c1fadfe94
commit b2a91d1ea3

View File

@ -107,6 +107,8 @@ snippet ntc
<%= number_to_currency(${1}) %>
snippet ofcfs
<%= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${0:selected_value} %>
snippet ofs
<%= options_for_select ${1:collection}, ${2:value_method} %>
snippet rf
<%= render :file => "${1:file}"${0} %>
snippet rt