Browse files

fixed hardcoding of controller names (my bad)

  • Loading branch information...
1 parent d36c27a commit 5e292e7ac802bf0373d355bdfab29c98b3c2a2e1 Sean O'Brien committed May 28, 2008
Showing with 4 additions and 4 deletions.
  1. +4 −4 generators/authenticated/authenticated_generator.rb
View
8 generators/authenticated/authenticated_generator.rb
@@ -229,10 +229,10 @@ def manifest
unless options[:skip_routes]
m.route_resource controller_singular_name
m.route_resources model_controller_plural_name
- m.route_name('signup', '/signup', {:controller => 'users', :action => 'new'})
- m.route_name('register', '/register', {:controller => 'users', :action => 'create'})
- m.route_name('login', '/login', {:controller => 'sessions', :action => 'new'})
- m.route_name('logout', '/logout', {:controller => 'sessions', :action => 'destroy'})
+ m.route_name('signup', '/signup', {:controller => model_controller_plural_name, :action => 'new'})
+ m.route_name('register', '/register', {:controller => model_controller_plural_name, :action => 'create'})
+ m.route_name('login', '/login', {:controller => controller_singular_name, :action => 'new'})
+ m.route_name('logout', '/logout', {:controller => controller_singular_name, :action => 'destroy'})
end
end

0 comments on commit 5e292e7

Please sign in to comment.