mirror of
https://github.com/amix/vimrc
synced 2025-07-08 18:04:59 +08:00
renamed sources_non_forked folder to bundle
This commit is contained in:
8
bundle/snipmate-snippets/ruby-rails/defshow.snippet
Normal file
8
bundle/snipmate-snippets/ruby-rails/defshow.snippet
Normal file
@ -0,0 +1,8 @@
|
||||
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}
|
Reference in New Issue
Block a user