Topic: Convert String to Variable
I have several methods that would benefit from this. Is there a built-in method in Ruby for converting "string" into @string?
My googling has been fruitless so far.
Edit: I should clarify that I am trying to dynamically set a singular instance variable in my show actions across my application. If the current controller is ArticlesController, I would like my method to return @article
Last edited by pimpmaster (2007-05-07 20:21:25)