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
vim/snippets/haml/conf.snippet Executable file
View File

@@ -0,0 +1,3 @@
- content_for :${1:yield_label_in_layout} do
${2}

1
vim/snippets/haml/cs.snippet Executable file
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
vim/snippets/haml/ff.snippet Executable file
View File

@@ -0,0 +1,2 @@
= form_for @${1:model} do |f|
${2}

1
vim/snippets/haml/ffcb.snippet Executable file
View File

@@ -0,0 +1 @@
= ${1:f}.check_box :${2:attribute}

3
vim/snippets/haml/ffe.snippet Executable file
View File

@@ -0,0 +1,3 @@
= form_for @${1:model} do |f|
= f.error_messages
${2}

1
vim/snippets/haml/ffff.snippet Executable file
View File

@@ -0,0 +1 @@
= ${1:f}.file_field :${2:attribute}

1
vim/snippets/haml/ffhf.snippet Executable file
View File

@@ -0,0 +1 @@
= ${1:f}.hidden_field :${2:attribute}

1
vim/snippets/haml/ffl.snippet Executable file
View File

@@ -0,0 +1 @@
= ${1:f}.label :${2:attribute}

1
vim/snippets/haml/ffpf.snippet Executable file
View File

@@ -0,0 +1 @@
= ${1:f}.password_field :${2:attribute}

1
vim/snippets/haml/ffrb.snippet Executable file
View File

@@ -0,0 +1 @@
= ${1:f}.radio_button :${2:attribute}, :${3:tag_value}

1
vim/snippets/haml/ffs.snippet Executable file
View File

@@ -0,0 +1 @@
= ${1:f}.submit "${2:Submit}"

1
vim/snippets/haml/ffta.snippet Executable file
View File

@@ -0,0 +1 @@
= ${1:f}.text_area :${2:attribute}

1
vim/snippets/haml/fftf.snippet Executable file
View File

@@ -0,0 +1 @@
= ${1:f}.text_field :${2:attribute}

View File

@@ -0,0 +1,2 @@
- fields_for :${1:model}, @$1 do |${2:f}|
${3}

2
vim/snippets/haml/for.snippet Executable file
View File

@@ -0,0 +1,2 @@
- for ${1:item} in ${2:items}
${3}

2
vim/snippets/haml/ft.snippet Executable file
View File

@@ -0,0 +1,2 @@
= form_tag(:action => "${1:update}") do
${2}

2
vim/snippets/haml/if.snippet Executable file
View File

@@ -0,0 +1,2 @@
- if ${1}
${2}

3
vim/snippets/haml/ife.snippet Executable file
View File

@@ -0,0 +1,3 @@
- if ${1}
${2}
- else

1
vim/snippets/haml/it.snippet Executable file
View File

@@ -0,0 +1 @@
= image_tag "${1}"

1
vim/snippets/haml/jit.snippet Executable file
View File

@@ -0,0 +1 @@
= javascript_include_tag ${1::all}, :cache => ${2:true}

1
vim/snippets/haml/jsit.snippet Executable file
View File

@@ -0,0 +1 @@
= javascript_include_tag "${1}"

1
vim/snippets/haml/lia.snippet Executable file
View File

@@ -0,0 +1 @@
= link_to "${1:link text}", :action => "${2:index}"

1
vim/snippets/haml/liai.snippet Executable file
View File

@@ -0,0 +1 @@
= link_to "${1:link_text}", :action => "${2:edit}", :id => ${3:@item}

1
vim/snippets/haml/lic.snippet Executable file
View File

@@ -0,0 +1 @@
= link_to "${1:link text}", :controller => "${2:items}"

1
vim/snippets/haml/lica.snippet Executable file
View File

@@ -0,0 +1 @@
= link_to "${1:link text}", :controller => "${2:items}", :action => "${3:index}"

View File

@@ -0,0 +1 @@
= link_to "${1:link text}", :controller => "${2:items}", :action => "${3:edit}", :id => ${4:@item}

1
vim/snippets/haml/lim.snippet Executable file
View File

@@ -0,0 +1 @@
= link_to ${1:model}.${2:name}, $1_path($1)

1
vim/snippets/haml/linp.snippet Executable file
View File

@@ -0,0 +1 @@
= link_to "${1:link text}", ${2:parent}_${3:child}_path(@$2, @$3)

View File

@@ -0,0 +1 @@
= link_to "${1:link text}", ${2:parent}_${3:child}_path(@$2)

1
vim/snippets/haml/lip.snippet Executable file
View File

@@ -0,0 +1 @@
= link_to "${1:link text}", ${2:model}_path(${3:@instance})

1
vim/snippets/haml/lipp.snippet Executable file
View File

@@ -0,0 +1 @@
= link_to "${1:link text}", ${2:model}s_path

1
vim/snippets/haml/lt.snippet Executable file
View File

@@ -0,0 +1 @@
= link_to "${1}", ${2:dest}

View File

@@ -0,0 +1 @@
= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${4:[selected_value]}

1
vim/snippets/haml/rf.snippet Executable file
View File

@@ -0,0 +1 @@
= render :file => "${1:file}"${2}

1
vim/snippets/haml/rp.snippet Executable file
View File

@@ -0,0 +1 @@
= render :partial => "${1:file}"${2}

1
vim/snippets/haml/rt.snippet Executable file
View File

@@ -0,0 +1 @@
= render :template => "${1:file}"${2}

1
vim/snippets/haml/slt.snippet Executable file
View File

@@ -0,0 +1 @@
= stylesheet_link_tag ${1::all}, :cache => ${2:true}

1
vim/snippets/haml/sslt.snippet Executable file
View File

@@ -0,0 +1 @@
= stylesheet_link_tag "${1}"

1
vim/snippets/haml/st.snippet Executable file
View File

@@ -0,0 +1 @@
= submit_tag "${1:Save changes}"

View File

@@ -0,0 +1,3 @@
- unless ${1}
${2}

View File

@@ -0,0 +1,4 @@
-if ${1}
${2}
-else