[Rails] Re: Does a method string.to_class exist?

2008-12-02 Thread Frederick Cheung
On Dec 2, 8:31 pm, Richard Schneeman [EMAIL PROTECTED] s.net wrote: I have A Definition model, is it possible to do something like this in Rails 2.1.0, Ruby 1.8.6 : Have a look at constantize. Fred foo = Definition @definition = foo.to_class.find(:all) -- Posted

[Rails] Re: Does a method string.to_class exist?

2008-12-02 Thread Richard Schneeman
As always, your advice worked like a charm!! Don't know how i missed that method the first time over...anywhoo thanks again! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups