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,16 @@
# -*- mode: snippet -*-
# key: cla
# contributor: Translated from TextMate Snippet
# name: Create controller class
## condition: "source.ruby"
# --
class ${1:Model}Controller < ApplicationController
before_filter :find_${2:model}
$0
private
def find_${2}
@$2 = ${3:$1}.find(params[:id]) if params[:id]
end
end