On 19 October 2011 16:08, John Merlino <stoici...@aol.com> wrote:
> thanks for response. I see what you are trying to say, but this line
> right here:
>
> s_code << {unit_id => unit_id_hash}
>
> it just creates a hash like this:
> {unit_id => {}}

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

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to