Sha256: b24a04561b1a82ecfa3e1eaf035f2c04aaa067b6f8d2cee4285deefc8fe44ed3
Contents?: true
Size: 770 Bytes
Versions: 3
Compression:
Stored size: 770 Bytes
Contents
Refinery::Core::Engine.routes.draw do # Frontend routes namespace :<%= namespacing.underscore %> do resources :<%= plural_name %><%= ", :path => ''" if namespacing.underscore == plural_name %>, :only => [:index, :new, :create] do collection do get :thank_you end end end # Admin routes namespace :<%= namespacing.underscore %>, :path => '' do namespace :admin, :path => "#{Refinery::Core.backend_route}" do resources :<%= plural_name %> do <% if include_spam? %> collection do get :spam end member do get :toggle_spam end <% end %> end scope :path => '<%= plural_name %>' do resources :settings, :only => [:edit, :update] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems