From b2a91d1ea38d46be57a89e52a02cb7940e59eea4 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Wed, 12 Mar 2014 13:04:54 +0800 Subject: [PATCH] add options_for_select add method `options_for_select` from Rails. --- snippets/eruby.snippets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snippets/eruby.snippets b/snippets/eruby.snippets index 9541835..bc13fcb 100644 --- a/snippets/eruby.snippets +++ b/snippets/eruby.snippets @@ -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