Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Rolling with Ruby on Rails Revisited
Subject:   I am getting below issues while using InstantRails-2.0-win on windows XP.
Date:   2008-07-29 11:12:37
From:   Rajeswar
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.

Full Threads Oldest First

Showing messages 1 through 5 of 5.

  • I am getting below issues while using InstantRails-2.0-win on windows XP.
    2009-04-09 08:32:20  ganesh kumar [View]

    Exactly i am getting the same type of problem,
    Please help me to fix these issues.

  • I am getting below issues while using InstantRails-2.0-win on windows XP.
    2009-04-09 08:29:46  ganesh kumar [View]

    • I am getting below issues while using InstantRails-2.0-win on windows XP.
      2009-04-09 11:13:45  Bill Walton | [View]

      Hi Genesh,

      Please see the response directly below your post. This tutorial is not intended for use with Rails 2.x.

      Best regards,
      Bill
  • I am getting below issues while using InstantRails-2.0-win on windows XP.
    2008-07-30 08:20:28  Bill Walton | [View]

    Hi,

    As noted at the very top of Page 1, "NOTE TO READER: This tutorial is intended for use with Rails 1.2.6. It has not yet been updated to support Rails 2.x."

    I'd suggest you download / use the 1.7 version of Instant Rails.

    Best regards,
    Bill
    • I am getting below issues while using InstantRails-2.0-win on windows XP.
      2008-07-30 11:23:53  Rajeswar [View]

      Hi Bill,


      Thanks a lot.
      It is working fine with Instant Rails 1.7

      may i know what is the difference between rails-1.2.6 and 2.X

      With Regards,
      Rajeswar