Initial commit.
This commit is contained in:
Executable
+3
@@ -0,0 +1,3 @@
|
||||
- content_for :${1:yield_label_in_layout} do
|
||||
${2}
|
||||
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
= collection_select :${1:object}, :${2:method}, :${3:collection}, :${4:value_method}, :${5:text_method} ${6:, [options]} ${7:, [html_options]}
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
= form_for @${1:model} do |f|
|
||||
${2}
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
= ${1:f}.check_box :${2:attribute}
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
= form_for @${1:model} do |f|
|
||||
= f.error_messages
|
||||
${2}
|
||||
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}
|
||||
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
+2
@@ -0,0 +1,2 @@
|
||||
- fields_for :${1:model}, @$1 do |${2:f}|
|
||||
${3}
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
- for ${1:item} in ${2:items}
|
||||
${3}
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
= form_tag(:action => "${1:update}") do
|
||||
${2}
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
- if ${1}
|
||||
${2}
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
- if ${1}
|
||||
${2}
|
||||
- else
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
= image_tag "${1}"
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
= javascript_include_tag ${1::all}, :cache => ${2:true}
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
= javascript_include_tag "${1}"
|
||||
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 => ${4:@item}
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
= link_to ${1:model}.${2:name}, $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}", ${2:dest}
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${4:[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 @@
|
||||
= stylesheet_link_tag ${1::all}, :cache => ${2:true}
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
= stylesheet_link_tag "${1}"
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
= submit_tag "${1:Save changes}"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
- unless ${1}
|
||||
${2}
|
||||
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
-if ${1}
|
||||
${2}
|
||||
-else
|
||||
|
||||
Reference in New Issue
Block a user