mirror of
https://github.com/amix/vimrc
synced 2025-01-05 00:18:48 +00:00
9 lines
159 B
Text
9 lines
159 B
Text
|
def new
|
||
|
@${1:model_class_name} = ${2:ModelClassName}.new
|
||
|
|
||
|
respond_to do |wants|
|
||
|
wants.html # new.html.erb
|
||
|
wants.xml { render :xml => @$1 }
|
||
|
end
|
||
|
end${3}
|