Hello,
time:date or time:datetime, depends on which type of data do you want
to hold in your database.
Check also how to create a migration whihc change your model and
database structure:
http://guides.rubyonrails.org/migrations.html
Preferabyl go through a tutorial, you wwill know the differences
between generators also, now only scaffolding. And check the files
which created by scaffold generator.
cheers,
Zoltán
On nov. 26, 23:54, 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