Class: MercuryController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/mercury_controller.rb

Direct Known Subclasses

ImagesController

Instance Method Summary collapse

Instance Method Details

#editObject



4
5
6
# File 'app/controllers/mercury_controller.rb', line 4

def edit
  render :text => '', :layout => 'mercury'
end

#postObject



20
21
22
# File 'app/controllers/mercury_controller.rb', line 20

def post
  render :json => params
end

#resourceObject



8
9
10
# File 'app/controllers/mercury_controller.rb', line 8

def resource
  render :action => "/#{params[:type]}/#{params[:resource]}", :layout => false
end

#snippet_optionsObject



12
13
14
# File 'app/controllers/mercury_controller.rb', line 12

def snippet_options
  render :action => "/snippets/#{params[:name]}_options", :layout => false
end

#snippet_previewObject



16
17
18
# File 'app/controllers/mercury_controller.rb', line 16

def snippet_preview
  render :action => "/snippets/#{params[:name]}", :layout => false
end