Basically, I have an RPG-type Rails application. I’m storing skills in a skills database with the following fields: name, min_level, skill_type, formula
My formula is stored as a String, currently. The idea is to have it say something like “1000*min_level” and somehow run it to calculate the skill damage.
Is there any good way to do this?
While it would probably be best to keep application logic in the application itself, this would be a simple matter of using eval().