From 2b722d78c458915d03736fce7b468d234d099e27 Mon Sep 17 00:00:00 2001 From: Uday Kadaboina Date: Thu, 14 Jul 2016 14:20:59 -0400 Subject: [PATCH 1/2] users need to put the gem in Gemfile to do require --- README.rdoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index 5dc5ccd..49058e2 100644 --- a/README.rdoc +++ b/README.rdoc @@ -36,6 +36,8 @@ fields from an array of arrays. See {here}[http://tagaholic.me/2009/10/15/boson-and-hirb-interactions.html#hirbs_handy_tables] for examples. == Rails Example +Add the gem to the Gemfile like: + gem 'hirb' Let's load and enable the view framework: $ rails console @@ -97,7 +99,7 @@ At any time you can disable Hirb if you really like irb's lovely echo mode: == Views: Anytime, Anywhere While preconfigured tables are great for database records, sometimes you just want to create tables/views for any output object: - + #These examples don't need to have Hirb::View enabled. >> Hirb.disable => nil From c57eb2ee7eb7d83f366cffba9904bc8468d009d3 Mon Sep 17 00:00:00 2001 From: Uday Kadaboina Date: Thu, 14 Jul 2016 14:36:04 -0400 Subject: [PATCH 2/2] no need of requiring hirb if added to Gemfile --- README.rdoc | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.rdoc b/README.rdoc index 49058e2..274c1c2 100644 --- a/README.rdoc +++ b/README.rdoc @@ -42,8 +42,6 @@ Add the gem to the Gemfile like: Let's load and enable the view framework: $ rails console Loading local environment (Rails 3.0.3) - >> require 'hirb' - => true >> Hirb.enable => nil