well, you should probably check this out:

http://api.rubyonrails.org/classes/ActiveRecord/Timestamp.html

It says: "Active Record automatically timestamps create and update
operations if the table has fields named created_at/created_on or
updated_at/updated_on."

On Nov 26, 6:54 pm, 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:??????

-- 
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.

Reply via email to