Open a rails console and enter code that illustrates the problem.
Then copy/paste that here.
If it seems to work in the console then the contents of your variables
may not be what you expect. Use ruby-debug to break into the code,
then you can inspect the data and follow the flow to see what is going
wrong. Have a look at the Rails Guide on debugging to see how to use
ruby-debug if necessary.
Colin
> THis line of code gets called multiple times and creates a hash:
Before I try to figure it out further, something smells.
You pass in an arg called "code", and often refer to ":code". This
sort of "shadowing" is Very Confusing. If they are supposed to be the
same thing, you've got some colons to remove (or maybe add and an arg
to dump), else you've got an arg to rename.
-Dave
--
LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages.
Where: Northern Virginia, Washington DC (near Orange Line), and remote work.
davearonson.com (main) * codosaur.us (programing) * dare2xl.com (excellence)
Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson)