<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>generators/authenticated/templates/activation.html.erb</filename>
    </added>
    <added>
      <filename>generators/authenticated/templates/login.html.erb</filename>
    </added>
    <added>
      <filename>generators/authenticated/templates/signup.html.erb</filename>
    </added>
    <added>
      <filename>generators/authenticated/templates/signup_notification.html.erb</filename>
    </added>
    <added>
      <filename>lib/restful_authentication/rails_commands.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,8 +2,7 @@ Restful Authentication Generator
 ====
 
 This is a basic restful authentication generator for rails, taken 
-from acts as authenticated.  Currently it requires Rails 1.2 (or 
-edge).
+from acts as authenticated.  Currently it requires Rails 1.2.6 or above.
 
 To use:
 
@@ -29,23 +28,12 @@ http://www.vaporbase.com/postings/stateful_authentication
 
 You can pass --skip-migration to skip the user migration.
 
-From here, you will need to add the resource routes in 
-config/routes.rb.  
-
-  map.resources :users
-  map.resource  :session
-
 If you're using acts_as_state_machine, define your users resource like this:
 
 	map.resources :users, :member =&gt; { :suspend   =&gt; :put,
                                      :unsuspend =&gt; :put,
                                      :purge     =&gt; :delete }
 
-If you're on rails 1.2.3 you may need to specify the controller name
-for the session singular resource:
-
-  map.resource :session, :controller =&gt; 'sessions'
-
 Also, add an observer to config/environment.rb if you chose the 
 --include-activation option
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,8 @@
+require 'restful_authentication/rails_commands'
 class AuthenticatedGenerator &lt; Rails::Generator::NamedBase
+  default_options :skip_migration =&gt; false,
+                  :include_activation =&gt; false
+                  
   attr_reader   :controller_name,
                 :controller_class_path,
                 :controller_file_path,
@@ -160,14 +164,14 @@ class AuthenticatedGenerator &lt; Rails::Generator::NamedBase
 
 
       # Controller templates
-      m.template 'login.rhtml',  File.join('app/views', controller_class_path, controller_file_name, &quot;new.rhtml&quot;)
-      m.template 'signup.rhtml', File.join('app/views', model_controller_class_path, model_controller_file_name, &quot;new.rhtml&quot;)
+      m.template 'login.html.erb',  File.join('app/views', controller_class_path, controller_file_name, &quot;new.html.erb&quot;)
+      m.template 'signup.html.erb', File.join('app/views', model_controller_class_path, model_controller_file_name, &quot;new.html.erb&quot;)
 
       if options[:include_activation]
         # Mailer templates
         %w( activation signup_notification ).each do |action|
-          m.template &quot;#{action}.rhtml&quot;,
-                     File.join('app/views', &quot;#{file_name}_mailer&quot;, &quot;#{action}.rhtml&quot;)
+          m.template &quot;#{action}.html.erb&quot;,
+                     File.join('app/views', &quot;#{file_name}_mailer&quot;, &quot;#{action}.html.erb&quot;)
         end
       end
 
@@ -176,6 +180,9 @@ class AuthenticatedGenerator &lt; Rails::Generator::NamedBase
           :migration_name =&gt; &quot;Create#{class_name.pluralize.gsub(/::/, '')}&quot;
         }, :migration_file_name =&gt; &quot;create_#{file_path.gsub(/\//, '_').pluralize}&quot;
       end
+      
+      m.route_resource  controller_singular_name
+      m.route_resources model_controller_plural_name
     end
 
     action = nil
@@ -186,13 +193,6 @@ class AuthenticatedGenerator &lt; Rails::Generator::NamedBase
         puts (&quot;-&quot; * 70)
         puts &quot;Don't forget to:&quot;
         puts
-        puts &quot;  - add restful routes in config/routes.rb&quot;
-        puts &quot;    map.resources :#{model_controller_file_name}&quot;
-        puts &quot;    map.resource  :#{controller_singular_name.singularize}&quot;
-        puts
-        puts &quot; Rails 1.2.3 may need a :controller option for the singular resource:&quot;
-        puts &quot;  - map.resource :#{controller_singular_name.singularize}, :controller =&gt; '#{controller_file_name}'&quot;
-        puts
         if options[:include_activation]
           puts &quot;    map.activate '/activate/:activation_code', :controller =&gt; '#{model_controller_file_name}', :action =&gt; 'activate'&quot;
           puts</diff>
      <filename>generators/authenticated/authenticated_generator.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>generators/authenticated/templates/activation.rhtml</filename>
    </removed>
    <removed>
      <filename>generators/authenticated/templates/login.rhtml</filename>
    </removed>
    <removed>
      <filename>generators/authenticated/templates/signup.rhtml</filename>
    </removed>
    <removed>
      <filename>generators/authenticated/templates/signup_notification.rhtml</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>1a50c0479e77c202372b441b0f4935d35bbf1f2f</id>
    </parent>
  </parents>
  <author>
    <name>rick</name>
    <email>technoweenie@gmail.com</email>
  </author>
  <url>http://github.com/dcrec1/restful-authentication-i18n/commit/0e31b9f417d1f48e45701a5d4cb0f80a90ef7b16</url>
  <id>0e31b9f417d1f48e45701a5d4cb0f80a90ef7b16</id>
  <committed-date>2008-01-04T15:38:46-08:00</committed-date>
  <authored-date>2008-01-01T14:31:53-08:00</authored-date>
  <message>update for rails 2.0: generate routes, use current template names [Paul Mucur]</message>
  <tree>a5d15974723b86abdf8ab61113f212b31993fe18</tree>
  <committer>
    <name>rick</name>
    <email>technoweenie@gmail.com</email>
  </committer>
</commit>
