Initial commit.

This commit is contained in:
yan
2011-11-17 15:45:33 -06:00
commit 882015bc6d
1819 changed files with 111625 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
- content_for :${1:yield_label_in_layout} do
${2}
+1
View File
@@ -0,0 +1 @@
= collection_select :${1:object}, :${2:method}, :${3:collection}, :${4:value_method}, :${5:text_method} ${6:, [options]} ${7:, [html_options]}
+2
View File
@@ -0,0 +1,2 @@
= form_for @${1:model} do |f|
${2}
+1
View File
@@ -0,0 +1 @@
= ${1:f}.check_box :${2:attribute}
+3
View File
@@ -0,0 +1,3 @@
= form_for @${1:model} do |f|
= f.error_messages
${2}
+1
View File
@@ -0,0 +1 @@
= ${1:f}.file_field :${2:attribute}
+1
View File
@@ -0,0 +1 @@
= ${1:f}.hidden_field :${2:attribute}
+1
View File
@@ -0,0 +1 @@
= ${1:f}.label :${2:attribute}
+1
View File
@@ -0,0 +1 @@
= ${1:f}.password_field :${2:attribute}
+1
View File
@@ -0,0 +1 @@
= ${1:f}.radio_button :${2:attribute}, :${3:tag_value}
+1
View File
@@ -0,0 +1 @@
= ${1:f}.submit "${2:Submit}"
+1
View File
@@ -0,0 +1 @@
= ${1:f}.text_area :${2:attribute}
+1
View File
@@ -0,0 +1 @@
= ${1:f}.text_field :${2:attribute}
+2
View File
@@ -0,0 +1,2 @@
- fields_for :${1:model}, @$1 do |${2:f}|
${3}
+2
View File
@@ -0,0 +1,2 @@
- for ${1:item} in ${2:items}
${3}
+2
View File
@@ -0,0 +1,2 @@
= form_tag(:action => "${1:update}") do
${2}
+2
View File
@@ -0,0 +1,2 @@
- if ${1}
${2}
+3
View File
@@ -0,0 +1,3 @@
- if ${1}
${2}
- else
+1
View File
@@ -0,0 +1 @@
= image_tag "${1}"
+1
View File
@@ -0,0 +1 @@
= javascript_include_tag ${1::all}, :cache => ${2:true}
+1
View File
@@ -0,0 +1 @@
= javascript_include_tag "${1}"
+1
View File
@@ -0,0 +1 @@
= link_to "${1:link text}", :action => "${2:index}"
+1
View File
@@ -0,0 +1 @@
= link_to "${1:link_text}", :action => "${2:edit}", :id => ${3:@item}
+1
View File
@@ -0,0 +1 @@
= link_to "${1:link text}", :controller => "${2:items}"
+1
View File
@@ -0,0 +1 @@
= link_to "${1:link text}", :controller => "${2:items}", :action => "${3:index}"
+1
View File
@@ -0,0 +1 @@
= link_to "${1:link text}", :controller => "${2:items}", :action => "${3:edit}", :id => ${4:@item}
+1
View File
@@ -0,0 +1 @@
= link_to ${1:model}.${2:name}, $1_path($1)
+1
View File
@@ -0,0 +1 @@
= link_to "${1:link text}", ${2:parent}_${3:child}_path(@$2, @$3)
+1
View File
@@ -0,0 +1 @@
= link_to "${1:link text}", ${2:parent}_${3:child}_path(@$2)
+1
View File
@@ -0,0 +1 @@
= link_to "${1:link text}", ${2:model}_path(${3:@instance})
+1
View File
@@ -0,0 +1 @@
= link_to "${1:link text}", ${2:model}s_path
+1
View File
@@ -0,0 +1 @@
= link_to "${1}", ${2:dest}
+1
View File
@@ -0,0 +1 @@
= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${4:[selected_value]}
+1
View File
@@ -0,0 +1 @@
= render :file => "${1:file}"${2}
+1
View File
@@ -0,0 +1 @@
= render :partial => "${1:file}"${2}
+1
View File
@@ -0,0 +1 @@
= render :template => "${1:file}"${2}
+1
View File
@@ -0,0 +1 @@
= stylesheet_link_tag ${1::all}, :cache => ${2:true}
+1
View File
@@ -0,0 +1 @@
= stylesheet_link_tag "${1}"
+1
View File
@@ -0,0 +1 @@
= submit_tag "${1:Save changes}"
+3
View File
@@ -0,0 +1,3 @@
- unless ${1}
${2}
+4
View File
@@ -0,0 +1,4 @@
-if ${1}
${2}
-else