On Mon, Jun 15, 2009 at 7:38 PM, Misiek Sz <[email protected]
> wrote:

>
> Hello,
> Is there is a simple way to convert string to model name?
> Thanks
>

"Model".constantize
http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/String/Inflections.html#M001341

Andrew Timberlake
http://ramblingsonrails.com

http://MyMvelope.com - The SIMPLE way to manage your savings

--~--~---------~--~----~------------~-------~--~----~
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