Hi Friends,
I am getting below issues while using InstantRails-2.0-win on windows XP.
1)While running
ruby script\generate scaffold recipe recipe
I am getting wrong number of arguments (1 for 2) error,
if I run command
ruby script\generate scaffold recipe
it is working fine (Ref: SreenShot-1) ---------Please clarify me, which command I need to use (I used second command).
2) When I use http://localhost:3000/category/ , it is displaying below Routing error.
No route matches "/category/" with {:method=>:get}
3) When I use http://localhost:3000/categories , it is giving different errors.
ActiveRecord::StatementInvalid in CategoriesController#index
SQLite3::SQLException: no such table: categories: SELECT * FROM "categories"
RAILS_ROOT: C:/RUBYGE~1/INSTAN~1.0-W/rails_apps/cookbook2
Application Trace | Framework Trace | Full Trace
C:/RUBYGE~1/INSTAN~1.0-W/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract_adapter.rb:147:in `log'
C:/RUBYGE~1/INSTAN~1.0-W/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/sqlite_adapter.rb:132:in `execute'
C:/RUBYGE~1/INSTAN~1.0-W/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/sqlite_adapter.rb:360:in `catch_schema_changes'
C:/RUBYGE~1/INSTAN~1.0-W/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/sqlite_adapter.rb:132:in `execute'
C:/RUBYGE~1/INSTAN~1.0-W/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/sqlite_adapter.rb:263:in `select'
C:/RUBYGE~1/INSTAN~1.0-W/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'
C:/RUBYGE~1/INSTAN~1.0-W/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:59:in `select_all'
C:/RUBYGE~1/INSTAN~1.0-W/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:80:in `cache_sql'
C:/RUBYGE~1/INSTAN~1.0-W/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:59:in `select_all'
C:/RUBYGE~1/INSTAN~1.0-W/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:582:in `find_by_sql'
C:/RUBYGE~1/INSTAN~1.0-W/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1341:in `find_every'
C:/RUBYGE~1/INSTAN~1.0-W/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:536:in `find'
app/controllers/categories_controller.rb:5:in `index'
4)in database.yml i found below entire
development:
adapter: sqlite3
database: db/development.sqlite3
timeout: 5000
But i am unable to find db/development.sqlite3 file in the application.
Please help me to resolve these issues.
|
Please help me to fix these issues.