Sha256: 278e7ffec2e0c49ce12e4764b08bb348a61aa27cc2af05dfa91adfe93eb653cb
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
# Redefine clear! method to do nothing (usually it erases the routes) class << ActionController::Routing::Routes;self;end.class_eval do define_method :clear!, lambda {} end ActionController::Routing::Routes.draw do |map| map.namespace :rich, :path_prefix => "" do |rich| rich.cms_root "cms", :controller => "cms", :action => "show" %w(hide login logout update).each do |action| rich.send "cms_#{action}", "cms/#{action}", :controller => "cms", :action => action end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rich_cms-1.0.0 | lib/config/routes.rb |