>>> @csv = Csv.new > => #<Csv id: nil, filename: nil, created: nil, modified: nil, > imported: nil, created_at: nil, updated_at: nil> One other thing that might be noteworthy...
Notice how your "created" and "modified" attributes are redundant with "created_at" and "modified_at." You might want to consider using the ones provided by Rails by default. This way you have no additional work in updating these standard fields. Rails with take care of them for you. Then you also have the "imported" attribute. Since this is also a date field you might want to follow the Rails convention for naming date and time fields by appending "_at" or "_on" so you could have "imported_on" if you want a date only or "imported_at" if you want to also record the time along with the date. Also note that the default attributes added by "t.timestamps" in your migration will use date and time, but you can always format your view to show date only if you want. And, of course, you will need to update the value of "imported_at" yourself since it not something Rails can do automatically. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

