Hi there,

I am trying to work through this book as a complete novice so I hope someone can help. I'm at p103 and am trying to create the story.class but I get an error telling me that the table I created on the previous page is not there.

I checked that it was created using the '.tables' cmd and got 'STORIES' but looks like the console can't find it... Error message below... have also checked that my database is in sqlite3... Please help



C:\InstantRails\rails_apps\shovell>ruby script/console
Loading development environment (Rails 2.0.2)
>> class Story<ActiveRecord::Base; end
=> nil
>> story = Story.new
ActiveRecord::StatementInvalid: Could not find table 'stories'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/connection_adapters/sqlite3_adapter.rb:29:in `table_structure'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib
/active_support/core_ext/object/misc.rb:28:in `returning'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/connection_adapters/sqlite3_adapter.rb:28:in `table_structure'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/connection_adapters/sqlite_adapter.rb:189:in `columns'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/base.rb:1080:in `columns'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/base.rb:2363:in `attributes_from_column_definition_without_lock'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/locking/optimistic.rb:55:in `attributes_from_column_definition'
from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/base.rb:1922:in `initialize'
from (irb):2:in `new'
from (irb):2
>>