proposes to return to the convention ruby

This commit is contained in:
Indra Susila 2015-10-19 23:50:42 +07:00
parent 45f28d9662
commit f5c77ac013

View File

@ -22,23 +22,23 @@ snippet for
${0} ${0}
<% end %> <% end %>
snippet rp snippet rp
<%= render :partial => '${0:item}' %> <%= render partial: '${0:item}' %>
snippet rpl snippet rpl
<%= render :partial => '${1:item}', :locals => { :${2:name} => '${3:value}'${0} } %> <%= render partial: '${1:item}', locals: { :${2:name} => '${3:value}'${0} } %>
snippet rps snippet rps
<%= render :partial => '${1:item}', :status => ${0:500} %> <%= render partial: '${1:item}', status: ${0:500} %>
snippet rpc snippet rpc
<%= render :partial => '${1:item}', :collection => ${0:items} %> <%= render partial: '${1:item}', collection: ${0:items} %>
snippet lia snippet lia
<%= link_to '${1:link text...}', :action => '${0:index}' %> <%= link_to '${1:link text...}', action: '${0:index}' %>
snippet liai snippet liai
<%= link_to '${1:link text...}', :action => '${2:edit}', :id => ${0:@item} %> <%= link_to '${1:link text...}', action: '${2:edit}', id: ${0:@item} %>
snippet lic snippet lic
<%= link_to '${1:link text...}', :controller => '${0:items}' %> <%= link_to '${1:link text...}', controller: '${0:items}' %>
snippet lica snippet lica
<%= link_to '${1:link text...}', :controller => '${2:items}', :action => '${0:index}' %> <%= link_to '${1:link text...}', controller: '${2:items}', action: '${0:index}' %>
snippet licai snippet licai
<%= link_to '${1:link text...}', :controller => '${2:items}', :action => '${3:edit}', :id => ${0:@item} %> <%= link_to '${1:link text...}', controller: '${2:items}', action: '${3:edit}', id: ${0:@item} %>
snippet yield snippet yield
<%= yield ${1::content_symbol} %> <%= yield ${1::content_symbol} %>
snippet conf snippet conf
@ -110,11 +110,11 @@ snippet ofcfs
snippet ofs snippet ofs
<%= options_for_select ${1:collection}, ${2:value_method} %> <%= options_for_select ${1:collection}, ${2:value_method} %>
snippet rf snippet rf
<%= render :file => "${1:file}"${0} %> <%= render file: "${1:file}"${0} %>
snippet rt snippet rt
<%= render :template => "${1:file}"${0} %> <%= render template: "${1:file}"${0} %>
snippet slt snippet slt
<%= stylesheet_link_tag ${1::all}, :cache => ${0:true} %> <%= stylesheet_link_tag ${1::all}, cache: ${0:true} %>
snippet sslt snippet sslt
<%= stylesheet_link_tag "${0}" %> <%= stylesheet_link_tag "${0}" %>
snippet if snippet if