public
Description: Generates common user authentication code for Rails/Merb, with a full test/unit and rspec suite and optional Acts as State Machine support built-in.
Homepage: http://weblog.techno-weenie.net
Clone URL: git://github.com/technoweenie/restful-authentication.git
Click here to lend your support to: restful-authentication and make a donation at www.pledgie.com !
looks like it's plural routes
Sean O'Brien (author)
Wed May 28 15:35:08 -0700 2008
commit  26f4cbfd75f6bfaf6edc44ed9d7d6666ff7bafe5
tree    83b26d8e8ff6dc08cd827b76b4831d77bbbc6205
parent  5e292e7ac802bf0373d355bdfab29c98b3c2a2e1
...
227
228
229
230
 
231
232
233
234
235
 
 
236
237
238
...
227
228
229
 
230
231
232
233
 
 
234
235
236
237
238
0
@@ -227,12 +227,12 @@ class AuthenticatedGenerator < Rails::Generator::NamedBase
0
         }, :migration_file_name => "create_#{file_path.gsub(/\//, '_').pluralize}"
0
       end
0
       unless options[:skip_routes]
0
-        m.route_resource  controller_singular_name
0
+        m.route_resource  controller_plural_name
0
         m.route_resources model_controller_plural_name
0
         m.route_name('signup', '/signup', {:controller => model_controller_plural_name, :action => 'new'})
0
         m.route_name('register', '/register', {:controller => model_controller_plural_name, :action => 'create'})
0
-        m.route_name('login', '/login', {:controller => controller_singular_name, :action => 'new'})
0
-        m.route_name('logout', '/logout', {:controller => controller_singular_name, :action => 'destroy'})
0
+        m.route_name('login', '/login', {:controller => controller_plural_name, :action => 'new'})
0
+        m.route_name('logout', '/logout', {:controller => controller_plural_name, :action => 'destroy'})
0
       end
0
     end
0
 

Comments