Skip to content

Instantly share code, notes, and snippets.

@lantins
Created June 17, 2013 20:50
Show Gist options
  • Select an option

  • Save lantins/5800265 to your computer and use it in GitHub Desktop.

Select an option

Save lantins/5800265 to your computer and use it in GitHub Desktop.
scope 'hosting/*hostname', :format => false do
resource :email, :only => [:edit, :update], :controller => 'email/service' do
get '', :controller => 'email/service', :action => :show, :as => :service
resources :catchall, :controller => 'email/catchall'
resource :relay, :controller => 'email/relay' do
resources :allow, :only => [:index, :new, :create, :delete, :destroy], :controller => 'email/relay_allow'
end
resources :forwards, :controller => 'email/forwards' do
resources :to, :controller => 'email/forward_tos'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment