Class: CaptainOveur::Routes
- Inherits:
-
Object
- Object
- CaptainOveur::Routes
- Defined in:
- lib/captain_oveur/routes.rb
Class Method Summary collapse
-
.draw(map) ⇒ Object
In your application’s config/routes.rb, draw CaptainOveur’s Routes right after Clearance’s routes:.
Class Method Details
.draw(map) ⇒ Object
In your application’s config/routes.rb, draw CaptainOveur’s Routes right after Clearance’s routes:
11 12 13 14 15 16 17 |
# File 'lib/captain_oveur/routes.rb', line 11 def self.draw(map) map.namespace :admin do |admin| admin.resources :users, :controller => 'captain_oveur/users', :member => { :activate_admin => :put, :deactivate_admin => :put } end end |