Sha256: 87eebd71c70cda31674872e2a521bb1fc1df8b8bbebc682b83d1e440a3ac71af
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 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]}/preview", :layout => false end def test_page render :text => params end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mercury-rails-0.2.3 | app/controllers/mercury_controller.rb |