Initial commit.
This commit is contained in:
Executable
+1
@@ -0,0 +1 @@
|
||||
<% ${1} -%>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<% ${1} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= ${1} -%>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= ${1} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%=h ${1} %>
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
<% content_for :${1:yield_label_in_layout} do %>
|
||||
${2}
|
||||
<% end %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= collection_select ${1:object}, ${2:method}, ${3:collection}, ${4:value_method}, ${5:text_method}${6:,options} %>${7}
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= content_tag '${1:DIV}', ${2:content}${3:, options} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<% ${1} -%>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<% end -%>
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
<% end -%>
|
||||
${1}
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= ${1} %>
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
<%= form_for @${1:model} do |f| %>
|
||||
${2}
|
||||
<% end %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= ${1:f}.check_box :${2:attribute} %>
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
<%= form_for @${2:model} do |f| %>
|
||||
<%= f.error_messages %>
|
||||
${3}
|
||||
<% end %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= ${1:f}.file_field :${2:attribute} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= ${1:f}.hidden_field :${2:attribute} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= ${1:f}.label :${2:attribute}, '${3:$2}' %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= ${1:f}.password_field :${2:attribute} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= ${1:f}.radio_button :${2:attribute}, :${3:tag_value} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= ${1:f}.submit "${2:submit}" %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= ${1:f}.text_area :${2:attribute} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= ${1:f}.text_field :${2:attribute} %>
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
<% fields_for :${1:model}, @$1 do |${2:f}| %>
|
||||
${3}
|
||||
<% end %>
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
<%- for ${2:item} in ${1:list} -%>
|
||||
${3}
|
||||
<%- end -%>
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
<% form_tag(${1:'url'}) do -%>
|
||||
${2}
|
||||
<% end -%>
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
<% form_tag(:action => "${1}", {:{$2:id} => "${3}"${4:,}}) do %>
|
||||
${5}
|
||||
<% end %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
I18n.t('${1:type.key}')${2}
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= image_tag "${1}"${2} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= javascript_include_tag :${1:all}, :cache => ${2:true} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= javascript_include_tag "${1}" %>
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
<% javascript_tag do -%>
|
||||
$(function () {
|
||||
${1}
|
||||
});
|
||||
<% end -%>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= link_to "${1:link text}", :action => "${2:index}" %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= link_to "${1:link text}", :action => "${2:edit}", :id => @${3:item} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= link_to "${1:link text}", :controller => "${2:items}" %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= link_to "${1:link text}", :controller => "${2:items}", :action => "${3:index}" %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= link_to "${1:link text}", :controller => "${2:items}", :action => "${3:edit}", :id => <+@<+item+>+> %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= link_to ${1:model}.${2:name}, ${3:$1_path($1)} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= link_to "${1:link text}", ${2:parent}_${3:child}_path(@$2, @$3) %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= link_to "${1:link text}", ${2:parent}_${3:child}_path(@$2) %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= link_to "${1:link text}", ${2:model}_path(@${3:instance}) %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= link_to "${1:link text}", ${2:model}s_path %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= link_to "${1:name}", ${2:dest} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= link_to_remote "${1:name}", ${2:options} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}<+, <+[selected_value]+>+> %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= render :file => "${1:file}"${2} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= render :partial => "${1:file}"${2} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= render :template => "${1:file}"${2} %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= submit_to_remote ${1:name}, ${2:value} %>
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<% semantic_form_for @${1:object} do |f| -%>
|
||||
<% f.inputs ${2:do} -%>
|
||||
<%= f.input :${3:name} -%>
|
||||
<% end -%>
|
||||
<%= f.buttons %>
|
||||
<% end -%>
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
<% semantic_form_for @${1:object} do |f| -%>
|
||||
<%= f.inputs %>${2:}
|
||||
<%= f.buttons %>
|
||||
<% end -%>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= stylesheet_link_tag ${1::all}<+, :cache => <+true+>+> %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= stylesheet_link_tag "${1}" %>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<%= submit_tag "${1:Save changes}"<+, :id => "<+submit+>"+><+, :name => "<+submit+>"+><+, :class => "<+form_name+>"+><+, :disabled => <+false+>+><+, :disable_with => "<+Please wait+>"+> %>
|
||||
Reference in New Issue
Block a user