Class reference from parsing a string?

Say I have a model class called Game. I also have a string call 'game'. How can I do some parsing magic on the string to have a reference to the model Game. So I can perform class methods. (Game.find(1))


'game'.camelize.constantize.find 1

-- Ezra Zygmuntowicz-- Lead Rails Evangelist -- -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)

Vary dangerous, you need to be sure what is inside this string. it's like the notorious Eval.