Sha256: c1361600ee088ae4576c27332913e3f7acfd8f44038ad30547869daacb7f94e3
Contents?: true
Size: 1.04 KB
Versions: 10
Compression:
Stored size: 1.04 KB
Contents
class ErrorsController < ApplicationController include Trackman::Scaffold::ContentSaver after_filter :save_content if Rails.env.development? # ContentSaver defines two class methods for filtering the ouput of your pages # # Note that it uses nokogiri to parse the output. # You can call the methods multiples times if you need, it will stack the calls. # edit selector, &block # pass a css or xpath selector and a block that will get executed for each result # ie: # edit "//link[contains(@src 'http://127.0.0.1:3000'))" do |node| # node['src'] = "http://www.production.com" # end # remove selector, [optional]&predicate # pass a css or xpath selector. You can also pass an optional predicate # to refine the scan instead of trying to make the perfect selector. # ie: # remove 'script' do |node| # node['src'].include?('/assets') && !node['src'].include?('application') # end <%= route_doc true %> def not_found end def error end def maintenance end def maintenance_error end end
Version data entries
10 entries across 10 versions & 1 rubygems