Sha256: f576c23e47ae780c12f27ba95e3c026fa66651dac59f38300b540b6c01712ec2

Contents?: true

Size: 423 Bytes

Versions: 3

Compression:

Stored size: 423 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

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mercury-rails-0.1.2 app/controllers/mercury_controller.rb
mercury-rails-0.1.1 app/controllers/mercury_controller.rb
mercury-rails-0.1.0 app/controllers/mercury_controller.rb