Article:
  Rolling with Ruby on Rails
Subject:   Help A ROR Rookie!
Date:   2008-01-01 19:25:11
From:   bhansel
Hi,


I'm learning ROR and am in the beginning of the tutorial. When I try to test the controller this is the error I get:


MissingSourceFile in My testController#index
no such file to load -- sqlite3
RAILS_ROOT: C:/rails/cookbook


then...


This error occurred while loading the following files:
sqlite3


I have edited the controller to add the index with hello world but can't get past this problem.


Any help is much appreciated!
Beth

Full Threads Oldest First

Showing messages 1 through 5 of 5.

  • Help A ROR Rookie!
    2008-10-31 17:01:01  talk2vc [View]

    sqllite3 also requires nmake to run. Found the following info at http://wiki.rubyonrails.com/rails/pages/Tutorial which allows me to continue using mysql.

    Rails-2.0.2 changed the default database settings, now it starts new project on sqlite-3. If you still want mysql, you have to type

    rails -d mysql cookbook
  • Help A ROR Rookie!
    2008-01-14 19:27:27  jxuan [View]

    If you have installed iTune, try copy sqlite3.dll from
    C:\Program Files\Common Files\Apple\Mobile Device Support\bin
    to
    C:\ruby\bin

    If it still does not work, please try
    http://rbazinet.wordpress.com/2007/12/20/setting-up-sqlite3-for-ruby-on-rails-development/
  • Help A ROR Rookie!
    2008-01-04 20:06:57  bjr2101 [View]

    I am having the same problem. It happens when I try to load http://127.0.0.1:3000/My_Test/

    I'm a rookie too and would really appreciate some help.
    • Help A ROR Rookie!
      2008-02-17 15:30:19  a.s [View]

      i believe you have to read the error message which says sqlite3.dll not found. so you have to find that file (online) and put it in ruby/bin i believe (the other posts have more detailed urls/ and explanations
    • Help A ROR Rookie!
      2008-01-09 03:27:10  gauravgaur [View]

      I guess you don't have sqlite3 & 'sqlite3 ruby gem' installed but your database.yml file points to that.

      For installing the same follow this article
      http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite

      I guess after that it should work.