1
0
Fork 0
mirror of synced 2024-07-01 04:51:10 -04:00
ultimate-vim/bundle/snipmate-snippets/ruby-rails/defnew.snippet
2014-05-09 21:28:39 +02:00

9 lines
159 B
Plaintext

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}