Enviat des del meu iPad
El 9 Apr 2011, a les 01:11, Bruce Wilson <[email protected]> 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 [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.

