I created a new Rails 3.0.9 project. Among other things in the Gemfile, it includes:
gem 'sqlite3'
# gem 'sqlite3-ruby', :require => 'sqlite3'
I know that the second line shown is commented out by default, but why is it included and when should it used?
I read the announcement that:
This announcement is to let you know that the sqlite3-ruby gem is being renamed to (drum roll please) “sqlite3”.
Based on this announcement, I am guessing that the second line—referencing the sqlite3-ruby gem—is included for legacy purposes, but I am not certain as I’m a Ruby and Rails newbie.
As per the announcement
Therefore, using either one will essentially result in
sqlite3being installed. If it appears assqlite3-rubyin your gemset go take a look at yourGemfile.lockand I’m sure it’ll have a dependencysqlite3.P.S. since you mentioned that you’re a newbie, you might be wondering what I mean by “gemset”. Ruby Version Manager (RVM) is a must – you can read all about in my blog post.