I have hirb
in my Gemfile, bundle installed it, edited irbrc file according to the document I found online, even tried installing it from the console, but it still doesn't work. I also did gem list
and know for a fact that gem 'hirb'
is in there. I'm very new to being a programmer. Can anyone help? Thanks :)
Asked
Active
Viewed 421 times
0

kimmo
- 19
- 6
-
Are you using mongoid? – Kumar Jun 10 '16 at 06:31
-
I'm using ActiveRecord. – kimmo Jun 10 '16 at 06:34
-
Did you do `require 'hirb'` & `Hirb.enable` ? – Kumar Jun 10 '16 at 06:36
-
Yeah, I did. And it always returns the following: `[1] pry(main)> require 'hirb'` `=> false` `[2] pry(main)> Hirb.enable` `=> true` `[3] pry(main)>` – kimmo Jun 10 '16 at 06:37
-
Then what did you run in your console to confirm hirb is not working? What output did you get? – Kumar Jun 10 '16 at 06:45
-
I did `User.all` and it didn't come out pretty :( – kimmo Jun 10 '16 at 09:17
-
Its hard to tell if you're not getting any errors. There is another gem called `awesome_print`, which does something similar, but not tabular display. You can use till you figure out what's the issue. – Kumar Jun 10 '16 at 09:45
-
Thanks for your reply, I've actually tried awesome_print too, but it didn't work. And this is what happened: `Successfully installed awesome_print-1.7.0 Parsing documentation for awesome_print-1.7.0 Installing ri documentation for awesome_print-1.7.0 Done installing documentation for awesome_print after 0 seconds 1 gem installed km-mbp13:slime km$ rails c Loading development environment (Rails 4.2.5) [1] pry(main)> require 'awesome_print' LoadError: cannot load such file -- awesome_print` – kimmo Jun 10 '16 at 12:48
-
I hope you've added it to your Gemfile and did a `bundle install`. Right? – Kumar Jun 10 '16 at 13:33
-
Yup, I did that too. – kimmo Jun 11 '16 at 05:54
-
Okay, you so you don't need to require `awesome_print`. You simple do `ap User.all`. I wonder what could be wrong. – Kumar Jun 11 '16 at 07:04
-
Wow, I did that but not sure what that is, it showed a bunch of stuff. – kimmo Jun 12 '16 at 02:20