Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed hardcoding of controller names (my bad)

  • Loading branch information...
commit 5e292e7ac802bf0373d355bdfab29c98b3c2a2e1 1 parent d36c27a
Sean O'Brien authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.