On 26 November 2010 23:54, JK <[email protected]> wrote: > So I would like to add time as an attribute of my Submission using > scaffolding. What is the code I should use to replace ???? part? > > rails generate scaffold Submission title:string describtion:text > email:string category:string time:??????
I would advise against a field name of time, it is in the reserved word list at http://wiki.rubyonrails.org/rails/pages/ReservedWords. In practice you may be ok with lower case time but I would still advise against it. If you need more than the default created_at and updated_at fields provided by rails then you can use the :datetime column type. Colin -- 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.

