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

