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

View File

@@ -0,0 +1 @@
<% ${1} -%>

View File

@@ -0,0 +1 @@
<% ${1} %>

View File

@@ -0,0 +1 @@
<%= ${1} -%>

View File

@@ -0,0 +1 @@
<%= ${1} %>

View File

@@ -0,0 +1 @@
<%=h ${1} %>

View File

@@ -0,0 +1,3 @@
<% content_for :${1:yield_label_in_layout} do %>
${2}
<% end %>

View File

@@ -0,0 +1 @@
<%= collection_select ${1:object}, ${2:method}, ${3:collection}, ${4:value_method}, ${5:text_method}${6:,options} %>${7}

View File

@@ -0,0 +1 @@
<%= content_tag '${1:DIV}', ${2:content}${3:, options} %>

View File

@@ -0,0 +1 @@
<% ${1} -%>

View File

@@ -0,0 +1 @@
<% end -%>

View File

@@ -0,0 +1,2 @@
<% end -%>
${1}

View File

@@ -0,0 +1 @@
<%= ${1} %>

View File

@@ -0,0 +1,3 @@
<%= form_for @${1:model} do |f| %>
${2}
<% end %>

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1 @@
<%= ${1:f}.label :${2:attribute}, '${3:$2}' %>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,3 @@
<%- for ${2:item} in ${1:list} -%>
${3}
<%- end -%>

View File

@@ -0,0 +1,3 @@
<% form_tag(${1:'url'}) do -%>
${2}
<% end -%>

View File

@@ -0,0 +1,3 @@
<% form_tag(:action => "${1}", {:{$2:id} => "${3}"${4:,}}) do %>
${5}
<% end %>

View File

@@ -0,0 +1 @@
I18n.t('${1:type.key}')${2}

View File

@@ -0,0 +1 @@
<%= image_tag "${1}"${2} %>

View File

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

View File

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

View File

@@ -0,0 +1,5 @@
<% javascript_tag do -%>
$(function () {
${1}
});
<% end -%>

View File

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

View File

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

View File

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

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 => <+@<+item+>+> %>

View File

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

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) %>

View File

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

View File

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

View File

@@ -0,0 +1 @@
<%= link_to "${1:name}", ${2:dest} %>

View File

@@ -0,0 +1 @@
<%= link_to_remote "${1:name}", ${2:options} %>

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1 @@
<%= submit_to_remote ${1:name}, ${2:value} %>

View File

@@ -0,0 +1,6 @@
<% semantic_form_for @${1:object} do |f| -%>
<% f.inputs ${2:do} -%>
<%= f.input :${3:name} -%>
<% end -%>
<%= f.buttons %>
<% end -%>

View File

@@ -0,0 +1,4 @@
<% semantic_form_for @${1:object} do |f| -%>
<%= f.inputs %>${2:}
<%= f.buttons %>
<% end -%>

View File

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

View File

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

View File

@@ -0,0 +1 @@
<%= submit_tag "${1:Save changes}"<+, :id => "<+submit+>"+><+, :name => "<+submit+>"+><+, :class => "<+form_name+>"+><+, :disabled => <+false+>+><+, :disable_with => "<+Please wait+>"+> %>