R
rajasekar98
Hi,
I'm just a beginner in Ruby.
Have just installed Rails and Gems.
I am using SQLite3 as the db.
When going thro the "CookBook" tutorial.
after creating the recipes table in the sqlite3 database.
and changing the config file - database.yml as
development:
adapter: sqlite3
dbfile: db/test.db
test:
adapter: sqlite3
dbfile: db/test.db
production:
adapter: sqlite3
dbfile: db/test.db
and when trying to scaffold the recipe table from the browser using -
http://localhost:3000/recipe/new
I'm getting the following error
<Error>
ActiveRecord::StatementInvalid in RecipeController#new
ActiveRecord::StatementInvalid
RAILS_ROOT: ./script/../config/..
Show session dump
---
flash: !map:ActionController::Flash::FlashHash {}
Response
Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}
</error>
Could anybody tell me, where i am going wrong??
Thanks in advance.
Raj
I'm just a beginner in Ruby.
Have just installed Rails and Gems.
I am using SQLite3 as the db.
When going thro the "CookBook" tutorial.
after creating the recipes table in the sqlite3 database.
and changing the config file - database.yml as
development:
adapter: sqlite3
dbfile: db/test.db
test:
adapter: sqlite3
dbfile: db/test.db
production:
adapter: sqlite3
dbfile: db/test.db
and when trying to scaffold the recipe table from the browser using -
http://localhost:3000/recipe/new
I'm getting the following error
<Error>
ActiveRecord::StatementInvalid in RecipeController#new
ActiveRecord::StatementInvalid
RAILS_ROOT: ./script/../config/..
Show session dump
---
flash: !map:ActionController::Flash::FlashHash {}
Response
Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}
</error>
Could anybody tell me, where i am going wrong??
Thanks in advance.
Raj