first commit of a million rails snippets, conditions missing, command implementation missing...

This commit is contained in:
capitaomorte
2009-11-16 07:09:38 +00:00
parent ead36b2544
commit 96b5606d66
213 changed files with 1592 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: lia
# contributor: Translated from TextMate Snippet
# name: link_to (action)
## condition: "text.html.ruby, text.haml"
# --
<%= link_to "${1:link text...}", :action => "${2:index}" %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: liai
# contributor: Translated from TextMate Snippet
# name: link_to (action, id)
## condition: "text.html.ruby, text.haml"
# --
<%= link_to "${1:link text...}", :action => "${2:edit}", :id => ${3:@item} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: lic
# contributor: Translated from TextMate Snippet
# name: link_to (controller)
## condition: "text.html.ruby, text.haml"
# --
<%= link_to "${1:link text...}", :controller => "${2:items}" %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: lica
# contributor: Translated from TextMate Snippet
# name: link_to (controller, action)
## condition: "text.html.ruby, text.haml"
# --
<%= link_to "${1:link text...}", :controller => "${2:items}", :action => "${3:index}" %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: licai
# contributor: Translated from TextMate Snippet
# name: link_to (controller, action, id)
## condition: "text.html.ruby, text.haml"
# --
<%= link_to "${1:link text...}", :controller => "${2:items}", :action => "${3:edit}", :id => ${4:@item} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: linpp
# contributor: Translated from TextMate Snippet
# name: link_to (nested path plural)
## condition: "text.html.ruby, text.haml"
# --
<%= link_to ${1:"${2:link text...}"}, ${3:${10:parent}_${11:child}_path(${12:@}${13:$10})} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: linp
# contributor: Translated from TextMate Snippet
# name: link_to (nested path)
## condition: "text.html.ruby, text.haml"
# --
<%= link_to ${1:"${2:link text...}"}, ${3:${12:parent}_${13:child}_path(${14:@}${15:$12}, ${16:@}${17:$13})} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: lipp
# contributor: Translated from TextMate Snippet
# name: link_to (path plural)
## condition: "text.html.ruby, text.haml"
# --
<%= link_to ${1:"${2:link text...}"}, ${3:${4:model}s_path} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: lip
# contributor: Translated from TextMate Snippet
# name: link_to (path)
## condition: "text.html.ruby, text.haml"
# --
<%= link_to ${1:"${2:link text...}"}, ${3:${12:model}_path(${13:@}${14:$12})} %>

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: lim
# contributor: Translated from TextMate Snippet
# name: link_to model
## condition: "text.html.ruby, text.haml"
# --
<%= link_to ${1:model}.${2:name}, ${3:${4:$1}_path(${14:$1})} %>