PageRenderTime 22ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

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

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