Enviat des del meu iPad
El 9 Apr 2011, a les 01:11, Bruce Wilson
<bwilsonnow-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> va
escriure:> Should
>
> $ rails generate model Article
>
> create
>
> t.string :title
> t.text :body
> t.datetime :published_at
>
> in the 20110408172635_create_articles.rb file?
Nope. In order to have them generated you need to specify them in the command
line:
rails g model Article title:string body:text published_at:datetime
Note that in the command line the name goes to the left of the type, while in
the modern DSL they read the other way around.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.