PageRenderTime 41ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 19ms app.codeStats 0ms

/ruby-mode/Ruby on Rails/Controller/controller.rjext.2

http://github.com/ridgetang/snippets
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | 3ffc46650ca5bce944b91bcb003c8949 MD5 | raw file
1#name : render :json => ... .to_ext_json save
2#key : rjext.2
3#group : rails.controller
4#condition : (rails/controller?)
5# --
6render :json => @${1:`(singularize-string (rails/cur-res-title))`}.to_ext_json(:success => @$1.save)