Sha256: 71fe46ec767a5353dbc5dca5c9264f9a91c38e4b42b3c4a55ab1bbcb1114e556
Contents?: true
Size: 750 Bytes
Versions: 6
Compression:
Stored size: 750 Bytes
Contents
Refinery::Core::Engine.routes.draw do # Frontend routes namespace :<%= namespacing.underscore %> do resources :<%= plural_name %><%= ", :path => ''" if namespacing.underscore == plural_name %>, :only => [: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}/<%= namespacing.underscore %>" do resources :<%= plural_name %>, :path => '' <% if @includes_spam %> do collection do get :spam end member do get :toggle_spam end end<% end %> resources :settings, :only => [:edit, :update] end end end
Version data entries
6 entries across 6 versions & 1 rubygems