How to install Ruby…

how to install ruby and get it runnin’ on windows with rails…with sqlite3
install ruby (should work) one click installer…

gem install rails --include-dependencies
gem install sqlite3-ruby (for windows, choose number 2:sqlite3-ruby 1.2.1 mswin32

now go to sqlite and download sqlite3 “dll without tcl bindings” and “executable” for sqlite3, copy sqlite3.exe, sqlite3.dll to ruby\bin directory
Then if the app is already developed:


rake migrate

now rock and roll.

If it is not ready then edit config\database.yml and change it to say something similar to:

adapter: sqlite3
database: db/podCastBlender_development

# Warning: The database defined as ‘test’ will be erased and
# re-generated from your development database when you run ‘rake’.
# Do not set this db to the same as development or production.

adapter: sqlite3
database: db/podCastBlender_test

adapter: sqlite3
database: db/podCastBlender_production
And you are done!

2 thoughts on “How to install Ruby…”

  1. How to install rails in windows:
    install the “ruby bundle” that comes with everything. This will automatically add Ruby to your path, and also install gems. Phew!
    Next (from command line) gem install rails –include-dependencies (say yes to everything).

    Should work. “rails project name” or what not and it works.

    sqlite3 dbname


    notice the “db/” part–tells it where to put the directory

    adapter: sqlite3
    dbfile: db/dev.db

    adapter: sqlite3
    dbfile: db/test.db

    adapter: sqlite3
    dbfile: db/prod.db

  2. how to get your migrations to work in windows:
    create them:
    ruby script\\generate migrations myName
    rake db:loadschema (or something)
    rake migrate

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.