diff --git a/snippets/eruby.snippets b/snippets/eruby.snippets index d99cf0b..e3f4213 100644 --- a/snippets/eruby.snippets +++ b/snippets/eruby.snippets @@ -103,6 +103,8 @@ snippet lipp <%= link_to "${1:Link text...}", ${2:model}s_path %> snippet lt <%= link_to "${1:name}", ${2:dest} %> +snippet ntc + <%= number_to_currency(${1}) %> snippet ofcfs <%= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${4:selected_value} %> snippet rf diff --git a/snippets/haml.snippets b/snippets/haml.snippets index 939158d..fd66e74 100644 --- a/snippets/haml.snippets +++ b/snippets/haml.snippets @@ -27,4 +27,5 @@ snippet ife snippet ifp - if ${1:condition}.presence? ${2} - +snippet ntc + = number_to_currency(${1})