Skip to content
This repository
Browse code

Fixed docs for scaffolding generator #1303 [thijs@vandervossen.net]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit b3fcf2fa3c55584c6cb23d2195fbdc2647cc84cd 1 parent 7ec91d4
David Heinemeier Hansson authored May 19, 2005
2  activerecord/lib/active_record/validations.rb
@@ -297,8 +297,6 @@ def validates_confirmation_of(*attr_names)
297 297
       # * <tt>on</tt> - Specifies when this validation is active (default is :save, other options :create, :update)
298 298
       # * <tt>accept</tt> - Specifies value that is considered accepted.  The default value is a string "1", which
299 299
       # makes it easy to relate to an HTML checkbox.
300  
-      #
301  
-
302 300
       def validates_acceptance_of(*attr_names)
303 301
         configuration = { :message => ActiveRecord::Errors.default_error_messages[:accepted], :on => :save, :allow_nil => true, :accept => "1" }
304 302
         configuration.update(attr_names.pop) if attr_names.last.is_a?(Hash)
2  railties/lib/rails_generator/generators/components/scaffold/USAGE
@@ -25,7 +25,7 @@ Example:
25 25
     database and browse to http://localhost/bank/ -- voila, you're on Rails!
26 26
 
27 27
 Modules Example:
28  
-    ./script/generate controller 'admin/credit_card' suspend late_fee
  28
+    ./script/generate scaffold CreditCard 'admin/credit_card' suspend late_fee
29 29
 
30 30
     This will generate a CreditCard model and CreditCardController controller
31 31
     in the admin module.

0 notes on commit b3fcf2f

Please sign in to comment.
Something went wrong with that request. Please try again.