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: mapca
# contributor: Translated from TextMate Snippet
# name: map.catch_all
## condition: "meta.rails.routes"
# --
${1:map}.catch_all "*${2:anything}", :controller => "${3:default}", :action => "${4:error}"

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: map
# contributor: Translated from TextMate Snippet
# name: map.named_route
## condition: "meta.rails.routes"
# --
${1:map}.${2:connect} '${3::controller/:action/:id}'

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# key: mapr
# contributor: Translated from TextMate Snippet
# name: map.resource
## condition: "meta.rails.routes"
# --
${1:map}.resource :${2:resource}${10: do |${11:$2}|
$0
end}

View File

@@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# key: maprs
# contributor: Translated from TextMate Snippet
# name: map.resources
## condition: "meta.rails.routes"
# --
${1:map}.resources :${2:resource}${10: do |${11:$2}|
# mirror for $11
$0
end}

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# key: mapwo
# contributor: Translated from TextMate Snippet
# name: map.with_options
## condition: "meta.rails.routes"
# --
${1:map}.with_options :${2:controller} => '${3:thing}' do |${4:$3}|
$0
end