Sha256: 4c0dd5c81f9b1186957b4a8ccda38a34169b9031f7313ba9918d40128a17fb05
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
class MercuryController < ActionController::Base protect_from_forgery def edit render :text => '', :layout => 'mercury' end def resource render :action => "/#{params[:type]}/#{params[:resource]}", :layout => false end def snippet_options render :action => "/snippets/#{params[:name]}_options", :layout => false end def snippet_preview render :action => "/snippets/#{params[:name]}", :layout => false end def post render :json => params end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mercury-rails-0.2.0 | app/controllers/mercury_controller.rb |