Sha256: 4e9e7c11bfc65dd31c8be37398e16cdf2f969dd186804fa5a712dafc1c3f27c9
Contents?: true
Size: 1.07 KB
Versions: 13
Compression:
Stored size: 1.07 KB
Contents
class <%= controller_name.camelize %>Controller < ApplicationController include Trackman::Scaffold::ContentSaver after_filter :render_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
13 entries across 13 versions & 1 rubygems