Sha256: 5fbcb1f8edc3002bc74a905ed96a582575901d3d65e2042ca7d75fd624e660a7

Contents?: true

Size: 484 Bytes

Versions: 6

Compression:

Stored size: 484 Bytes

Contents

class ContentController < Spree::BaseController
  rescue_from ActionView::MissingTemplate, :with => :render_404

  def show
    render :action => params[:path].join('/')
  end
  
  def cvv
    render "cvv", :layout => false
  end  

  protected
  def render_404(exception)
    respond_to do |type|
      type.html { render :file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found" }
      type.all  { render :nothing => true, :status => "404 Not Found" }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree-0.8.4 app/controllers/content_controller.rb
spree-0.8.5 app/controllers/content_controller.rb
spree-0.8.0 app/controllers/content_controller.rb
spree-0.8.1 app/controllers/content_controller.rb
spree-0.8.2 app/controllers/content_controller.rb
spree-0.8.3 app/controllers/content_controller.rb