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 viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to