1
0
Fork 0
mirror of synced 2024-11-05 08:58:59 -05:00
ultimate-vim/bundle/snipmate-snippets/ruby-rails/defshow.snippet
2014-05-09 21:28:39 +02:00

8 lines
175 B
Text

def show
@${1:model_class_name} = ${2:ModelClassName}.find(params[:id])
respond_to do |wants|
wants.html # show.html.erb
wants.xml { render :xml => @$1 }
end
end${3}