Hi Jeremy, > ... so the model shown is all you need.
Thanks. I was hoping I'd discover something of "The Rails Way". Best wishes Richard On Dec 15, 11: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. > > --Jeremy > > On Mon, Dec 15, 2008 at 10:03 AM, RichardOnRails > > > > <[email protected]> wrote: > > > Hi, > > > I ran: > > ruby script/generate scaffold Csv filename:string created:date > > modified:date imported:date > > rake db:migrate > > sqlite3 db\development.sqlite3 > > .dump csvs (database columns displayed as expected) > > type app\models\csv.rb (which displayed only: > > class Csv < ActiveRecord::Base > > end > > with no field names) > > > I'm inclined to just populate the latter with: > > �...@filename, �...@created, �...@modified, �...@imported > > > Is this the way to go, or is there some "Ruby Way"? > > > I'm running: > > ruby 1.8.6 > > Rails 2.2.1 > > > Thanks in Advance, > > Richard > > --http://jeremymcanally.com/http://entp.com/http://omgbloglol.com > > My books:http://manning.com/mcanally/http://humblelittlerubybook.com/(FREE!) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

