Class: MercuryController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- MercuryController
- Defined in:
- app/controllers/mercury_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
- #edit ⇒ Object
- #post ⇒ Object
- #resource ⇒ Object
- #snippet_options ⇒ Object
- #snippet_preview ⇒ Object
Instance Method Details
#edit ⇒ Object
4 5 6 |
# File 'app/controllers/mercury_controller.rb', line 4 def edit render :text => '', :layout => 'mercury' end |
#post ⇒ Object
20 21 22 |
# File 'app/controllers/mercury_controller.rb', line 20 def post render :json => params end |
#resource ⇒ Object
8 9 10 |
# File 'app/controllers/mercury_controller.rb', line 8 def resource render :action => "/#{params[:type]}/#{params[:resource]}", :layout => false end |
#snippet_options ⇒ Object
12 13 14 |
# File 'app/controllers/mercury_controller.rb', line 12 def render :action => "/snippets/#{params[:name]}_options", :layout => false end |
#snippet_preview ⇒ Object
16 17 18 |
# File 'app/controllers/mercury_controller.rb', line 16 def snippet_preview render :action => "/snippets/#{params[:name]}", :layout => false end |