[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: using active support without rails

Giles Bowkett

6/12/2007 6:38:00 PM

On 6/12/07, shawn bright <nephish@gmail.com> wrote:
> hello there all,
> a few weeks ago, i asked about how i may use active record in ruby scripts,
> now i want to be able to use some of the helpers from Active Support.
> how would i go about being able to access those classes like i would be able
> to in a rails app?
> thanks.
> shawn

it's easy, just require the gem:

<giles-computer:giles> [06-12 11:36] ~
! irb
>> require 'active_support'
=> true
>> 7.days.from_now
=> Tue Jun 19 11:36:41 -0700 2007

--
Giles Bowkett

Blog: http://gilesbowkett.bl...
Portfolio: http://www.gilesg...