Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

5 Extra Information

Dennis Tanaka edited this page Feb 13, 2018 · 2 revisions

This section contains information that is not in the main content to allow us to save some time.

Rails Console - Hirb

Hirb is a package that makes Active Record queries run through the console much more readable. The steps to install it are described below.

Add to Gemfile:

gem 'hirb'

Run:

bundle install --path vendor/bundle

You can enable it every time you use the Rails Console by running the command below:

> Hirb.enable

Rails DB Console

This is not our focus, but just to let you know that you can execute SQL statements directly if you want by using the Rails DB Console:

$ rails dbconsole

Type to exit:

sqlite> .exit
Clone this wiki locally