Class: CaptainOveur::Routes

Inherits:
Object
  • Object
show all
Defined in:
lib/captain_oveur/routes.rb

Class Method Summary collapse

Class Method Details

.draw(map) ⇒ Object

In your application’s config/routes.rb, draw CaptainOveur’s Routes right after Clearance’s routes:

Examples:

map.resources :posts
Clearance::Routes.draw(map)
CaptainOveur::Routes.draw(map)


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