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...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Using a result as a constant object?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password