How to install sqlite or postgresql on windows 8 for a ruby on rails setup?

天涯浪子 提交于 2019-12-06 01:11:46

You need to use the pre release of pg.

  1. Install

    gem install pg -v 0.18.0.pre20141117110243 --pre
    
  2. Add to your Gem file

    gem 'pg', '~> 0.18.0.pre20141117110243'
    
  3. Update with Bundle

    bundle update
    

If you want to use PostgreSQL you'll need to do 2 things:

  1. Install PostgreSQL on Windows using these instructions

  2. Configure your rails project to use PostgreSQL this way:

rails new todo --database=postgresql

On the related note, if you want to do web development with Ruby on Rails, I recommend you to install Ruby, Gems, Git, Rails and IDE. All instructions are in the Start Programming Now book

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!