HI,
How do I convert a string value to a variable name? To get the value of the variable. Is the following technique good design?
I have an app that needs to create urls in a bunch of different formats. Below is a simplified example.
http://www.site1.com?firstname=Wayne&lastname=Gretzky http://www.site2.com?fname=Wayne&lname=Gretzky
In my code, I've have variables first_name and last_name. So I put the mappings into a YAML file.