@Fred,

Thanks man. I agree, that could be the problem. However, to test it out, 
I commented out everything inside the if part of the 'criminal if-else' 
and no exception is raised. For example, the new code that works is:

def calculate

      #Check if request is from a linked URL or direct request from site
      puts "before if statement"
      puts params[:entity_selection]

      if params[:id]
        #puts "in if statement"
        #@query = Query.where(:id => params[:id])
        #params = eval(@query[0].queryString).to_options
        #params[:query_end_date].to_options!
        #params[:query_start_date].to_options!
      else
        puts "in else"
        puts params[:entity_selection]
      end

So if it were the case that the params hash being mentioned could 
overwrite it, then this version of the code would fail, right?

I appreciate the help. I'll continue to try to figure this out. If this 
doesn't work, it could be anarchy out there. I'm worried.

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to