PageRenderTime 101ms CodeModel.GetById 40ms app.highlight 0ms RepoModel.GetById 40ms app.codeStats 0ms

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

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