On Thursday, July 21, 2011 11:14:03 PM UTC-6, Rajinder Yadav wrote:
>
> $ rails g scaffold title:string description:test
>
>        invoke  active_record
> /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/generators/base.rb:266:in
>  
>
> `const_defined?': wrong constant name Title:string (NameError)
>          from 
>
>
You left off the name of the resource to generate and went straight into the 
field definitions.

$ rails g scaffold <name> title:string description:test

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/IEGvM_xBfJQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to