Ruby on Rails Friday, November 26, 2010

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 <jngh...@gmail.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment