Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (20 sloc) 0.652 kB
Refinery::Core::Engine.routes.draw do
namespace :inquiries, :path => '' do
get '/contact', :to => 'inquiries#new', :as => 'new_inquiry'
resources :contact,
:only => :create,
:as => :inquiries,
:controller => 'inquiries' do
get :thank_you, :on => :collection
end
namespace :admin, :path => 'refinery' do
resources :inquiries, :only => [:index, :show, :destroy] do
get :spam, :on => :collection
get :toggle_spam, :on => :member
end
scope :path => 'inquiries' do
resources :settings, :only => [:edit, :update]
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.