Hi Hassan, > ... opening your Rails console and ...
Excellent addition. It’s so much better to have proof than relying on faith.! Just to prove your effort wasn’t wasted on me: K:\_Projects\Ruby\_Rails_Apps\PayrollSysAnew>ruby script/console Loading development environment (Rails 2.2.0) >> @csv = Csv.new => #<Csv id: nil, filename: nil, created: nil, modified: nil, imported: nil, created_at: nil, updated_at: nil> Many thanks, Richard On Dec 15, 11:21 am, "Hassan Schroeder" <[email protected]> wrote: > On Mon, Dec 15, 2008 at 8:12 AM, Jeremy McAnally > > <[email protected]> wrote: > > > ActiveRecord automatically discovers the fields in your model's table > > and creates accessor methods for you at runtime, so the model shown is > > all you need. > > Exactly, and > > >> ruby script/generate scaffold Csv filename:string created:date > >> modified:date imported:date > > ..probably worth mentioning that you can easily confirm something > like this by opening your Rails console and entering e.g. > �...@csv = Csv.new > and viewing the output. > > FWIW, > -- > Hassan Schroeder ------------------------ [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

