Skip to content

Instantly share code, notes, and snippets.

@lporras
Created January 13, 2011 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lporras/778722 to your computer and use it in GitHub Desktop.
Save lporras/778722 to your computer and use it in GitHub Desktop.
How to user Hirb gem in rails 3
1. add to gemfile:
gem 'hirb'
2. run bundle command
3. open the rails console
4. input: require 'hirb'
5. Enable the use of hirb on rails console: Hirb.enable
6. view the database log info: ActiveRecord::Base.logger = Logger.new(STDOUT)
7. To disable hirb: Hirb.disable
@Nextafari
Copy link

Thanks for this.

@lporras
Copy link
Author

lporras commented Sep 18, 2019

@Nextafari Your welcome 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment