Sha256: 15727984f60d711beba043bec4250666dc8cb350718b3481552821be568fe401
Contents?: true
Size: 810 Bytes
Versions: 2
Compression:
Stored size: 810 Bytes
Contents
Rails.application.routes.draw do # users for optimacms devise_for :cms_admin_users, Optimacms::Devise.config # usual devise_for :users get 'hello.html', to: 'my#hello', as: 'hello' # debug get '/debug/:action', to: 'debug#action', as: 'debug' # extend admin area scope '/'+Optimacms.main_namespace+'/'+Optimacms.admin_namespace, module: "optimacms" do namespace :admin do resources :news do collection do post 'search' end end end end # the last!!! mount Optimacms::Engine => '/'+Optimacms.main_namespace # root to: 'home#index' # all pages #scope module: 'optimacms' do # match '*path', :to => 'pages#show', via: :all #end #, format: false # , constraints: -> (req) { !(req.fullpath =~ /^\/assets\/.*/) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
optimacms-0.3.29 | spec/dummy/config/routes.rb |
optimacms-0.3.23 | spec/dummy/config/routes.rb |