you are in: codestackercodes [RSS]hirb example

hirb example Delicious Email

to install:
gem install cldwalker-hirb —source http://gems.github.com

show/hide lines
   1  >> require 'hirb'
   2  => []
   3  >> Hirb.enable
   4  => nil
   5  >> Exam.find(:all, :limit => 5)
   6  +----+----------+----------+----------+----------+---------+----------+------+
   7  | id | title    | exam     | creat... | updat... | user_id | categ... | hits |
   8  +----+----------+----------+----------+----------+---------+----------+------+
   9  | 1  | Simul... | Simul... | 2009-... | 2009-... | 1       | 1        | 152  |
  10  | 2  | Simul... | Simul... | 2009-... | 2009-... | 1       | 1        | 143  |
  11  | 3  | Espec... | Espec... | 2009-... | 2009-... | 1       | 1        | 1089 |
  12  | 4  | Espec... | Espec... | 2009-... | 2009-... | 1       | 1        | 80   |
  13  | 5  | Espec... | Espec... | 2009-... | 2009-... | 1       | 1        | 40   |
  14  +----+----------+----------+----------+----------+---------+----------+------+
  15  5 rows in set
  16  >>
created by leozera — 01 July 2009 — get a short url — tags: gem hirb rails ruby embed

Comments



We dont send spam :)

If checked, it's highlights your comment
simple_captcha.jpg
Are you a human? Type the code from the image