Category: Ruby
-
Fixing ActiveRecord::NoDatabaseError in Rails
If you get this error: rails aborted! ActiveRecord::NoDatabaseError: FATAL: database "students_development" does not exist while trying to run rails db:migrate or create a scaffold, remember to run: $ rails db:create before going on
-
Fixing an error installing Rails with PostgreSQL on Ubuntu
Today while installing Ruby on Rails with PostgreSQL for a personal project, I incurred in this error: Installing pg 0.18.4 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. … An error occurred while installing pg (0.18.4), and Bundler cannot continue. Make sure that `gem install pg -v ‘0.18.4’` succeeds before bundling. As […]