How did I turn off params[]?

I am trying to create an input form where subsets of the input data goes
into separate rows of the table (events).

I have created a proxy object (CompoundEvent) to hold all of the data,
and overridden its “save” method to create the several tuples.

This was almost working late last night when I did something that
stopped the params[] hash from getting any information from the post
except for {“action”=>“main”, “controller”=>“test”}

I have created a sham table compound_events, but that has not helped.

I have tried using text_field_tag, but that has not helped.

Sniffing the HTTP traffic, I see all the input values as they appear on
the page
(e.g.POSTDATA=compound_event%5Bhappened_at%281i%29%5D=2006&compound_event%5Bhappened_at%282i%29%5D=7&compound_event%5Bhappened_at%283i%29%5D=6&compound_event%5Bhappened_at%284i%29%5D=08&compound_event%5Bhappened_at%285i%29%5D=03&compound_event%5Bblood_amount%5D=
…)

What did I do to stop params[] from getting the POSTDATA ?

Thanks

On 7/6/06, Richard [email protected] wrote:

I have created a sham table compound_events, but that has not helped.

I have tried using text_field_tag, but that has not helped.

Sniffing the HTTP traffic, I see all the input values as they appear on
the page

What did I do to stop params[] from getting the POSTDATA ?

You probably didn’t do anything really, sounds like it might just be a
late night. One thing you can do is go into the breakpointer and play
around directly to see what’s there; the @instance_variables command
should help a ton.

If you’re in a view or a model though you may find that you need to
gyrate a little bit to find the params. I’ve not done an extensive
study of it but I’m sure it’s just my lack of understanding regarding
ruby (started learning rails rather than ruby which was a huge mistake
in my case).

Eventually I came to the realization that the model isn’t supposed to
muck with the params and gave up, but it can if you really try hard
enough. If you step back and look at it you may find that what you’re
doing is overly complex; it happened to me about 30 times before I
learned :slight_smile:

If you want to post some of your code we may be able to take a look
and advise a little better.

Cheers,
Chuck V.