Initial commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
-content_for :${1:yield_label_in_layout} do
|
||||
${2}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
=collection_select :${1:object}, :${2:method}, :${3:collection}, :${4:value_method}, :${5:text_method} ${6:, [options]} ${7:, [html_options]}
|
||||
@@ -0,0 +1,2 @@
|
||||
-form_for @${1:model} do |f|
|
||||
${2}
|
||||
@@ -0,0 +1 @@
|
||||
=f.check_box :${1:attribute}
|
||||
@@ -0,0 +1,4 @@
|
||||
=error_messages_for :${1:model}
|
||||
|
||||
-form_for @${2:model} do |f|
|
||||
${3}
|
||||
@@ -0,0 +1 @@
|
||||
=f.file_field :${1:attribute}
|
||||
@@ -0,0 +1 @@
|
||||
=f.hidden_field :${1:attribute}
|
||||
@@ -0,0 +1 @@
|
||||
=f.label :${1:attribute}
|
||||
@@ -0,0 +1 @@
|
||||
=f.password_field :${1:attribute}
|
||||
@@ -0,0 +1 @@
|
||||
=f.radio_button :${1:attribute}, :${2:tag_value}
|
||||
@@ -0,0 +1 @@
|
||||
=f.submit "<+Submit+>"<+, :disable_with => '<+Submitting+>'+>
|
||||
@@ -0,0 +1 @@
|
||||
=f.text_area :${1:attribute}
|
||||
@@ -0,0 +1 @@
|
||||
=f.text_field :${1:attribute}
|
||||
@@ -0,0 +1,2 @@
|
||||
-fields_for :${1:model}, @$1 do |${2:f}|
|
||||
${3}
|
||||
@@ -0,0 +1,6 @@
|
||||
-if !${1:list}.blank?
|
||||
-for ${2:item} in $1
|
||||
${3}
|
||||
-else
|
||||
${4}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
-form_tag(<+:action => "<+update+>"+><+, {:<+class+> => "<+form+>"}+>) do
|
||||
<++>
|
||||
@@ -0,0 +1,2 @@
|
||||
-if ${1}
|
||||
${2}
|
||||
@@ -0,0 +1,4 @@
|
||||
-if ${1}
|
||||
${2}
|
||||
-else
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
=image_tag "${1}"
|
||||
@@ -0,0 +1 @@
|
||||
=javascript_include_tag <+:all+><+, :cache => <+true+>+>
|
||||
@@ -0,0 +1 @@
|
||||
=javascript_include_tag "${1}"
|
||||
@@ -0,0 +1 @@
|
||||
=link_to "${1:link text}", :action => "${2:index}"
|
||||
@@ -0,0 +1 @@
|
||||
=link_to "<+link text+>", :action => "<+edit+>", :id => <+@<+item+>+>
|
||||
@@ -0,0 +1 @@
|
||||
=link_to "${1:link text}", :controller => "${2:items}"
|
||||
@@ -0,0 +1 @@
|
||||
=link_to "${1:link text}", :controller => "${2:items}", :action => "${3:index}"
|
||||
@@ -0,0 +1 @@
|
||||
=link_to "<+link text+>", :controller => "<+items+>", :action => "<+edit+>", :id => <+@<+item+>+>
|
||||
@@ -0,0 +1 @@
|
||||
=link_to <+model+>.<+name+>, <+<+model+>_path(<+model+>)+>
|
||||
@@ -0,0 +1 @@
|
||||
=link_to <+"<+link text+>"+>, <+<+parent+>_<+child+>_path(<+@+><+parent+>, <+@+><+child+>)+>
|
||||
@@ -0,0 +1 @@
|
||||
=link_to <+"<+link text+>"+>, <+<+parent+>_<+child+>_path(<+@+><+parent+>)+>
|
||||
@@ -0,0 +1 @@
|
||||
=link_to <+"<+link text+>"+>, <+<+model+>_path(<+@+><+instance+>)+>
|
||||
@@ -0,0 +1 @@
|
||||
=link_to <+"<+link text+>"+>, <+<+model+>s_path+>
|
||||
@@ -0,0 +1 @@
|
||||
=link_to "${1}", ${2:dest}
|
||||
@@ -0,0 +1 @@
|
||||
=options_from_collection_for_select <+collection+>, <+value_method+>, <+text_method+><+, <+[selected_value]+>+>
|
||||
@@ -0,0 +1 @@
|
||||
=render :file => "${1:file}"${2}
|
||||
@@ -0,0 +1 @@
|
||||
=render :partial => "${1:file}"${2}
|
||||
@@ -0,0 +1 @@
|
||||
=render :template => "${1:file}"${2}
|
||||
@@ -0,0 +1 @@
|
||||
=stylesheet_link_tag <+:all+><+, :cache => <+true+>+>
|
||||
@@ -0,0 +1 @@
|
||||
=stylesheet_link_tag "${1}"
|
||||
@@ -0,0 +1 @@
|
||||
=submit_tag "<+Save changes+>"<+, :id => "<+submit+>"+><+, :name => "<+submit+>"+><+, :class => "<+form_name+>"+><+, :disabled => <+false+>+><+, :disable_with => "<+Please wait+>"+>
|
||||
@@ -0,0 +1,3 @@
|
||||
-unless ${1}
|
||||
${2}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
-if ${1}
|
||||
${2}
|
||||
-else
|
||||
|
||||
Reference in New Issue
Block a user