[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: Using a result as a constant object?

Phy Prabab

10/19/2008 6:23:00 PM

Sjoerd,

Thanks much for the clarification. Indeed this works well. Appreciate the help!

Cheers,
Phy



--- On Sun, 10/19/08, Sjoerd Andringa <andringa@quicknet.nl> wrote:

> From: Sjoerd Andringa <andringa@quicknet.nl>
> Subject: Re: Using a result as a constant object?
> To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
> Date: Sunday, October 19, 2008, 6:08 AM
> Sjoerd Andringa wrote:
> > Sjoerd Andringa wrote:
> >> ar.model.find(120)
> > Should be: ar_model.find(120)
>
> Be aware that 'constantize' is a method added by
> ActiveSupport, no
> problem if you're using Rails, but you need to require
> it manually
> otherwise.
> --
> Posted via http://www.ruby-....

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail...