Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address current sqlite3 gem incompatibility #1257

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions source/projects/blogger.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ You'll see the Rails' "Welcome Aboard" page. Click the "About your application

If you see an error here, it's most likely related to the database. You are probably running Windows and don't have either the SQLite3 application installed or the gem isn't installed properly. Go back to [Environment Setup]({% page_url topics/environment/environment %}) and use the Rails Installer package. Make sure you check the box during setup to configure the environment variables. Restart your machine after the installation and give it another try.

Update - February 13th, 2019. The sqlite3 gem was updated to version 1.4.0 on February 4th. If you experience a LoadError stating that there was an error loading 'sqlite3' Active Record Adatper due to a missing gem, you may need to edit the project Gemfile (line 9) from "gem 'sqlite3'" to "gem 'sqlite3', '~> 1.3.6'". After this change is made, run the following:

{% terminal %}
$ bundler update
$ bundler install
{% endterminal %}

Be sure to restart your rails server.

### Creating the Article Model

Our blog will be centered around "articles," so we'll need a table in the database to store all the articles and a model to allow our Rails app to work with that data. We'll use one of Rails' generators to create the required files. Switch to your terminal and enter the following:
Expand Down