Forum: Ruby on Rails AJAX form Parameters jumbled.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
rails (Guest)
on 2005-11-12 12:49
(Received via mailing list)
Sorry for the repost but I originally posted this as a response to
another thread.  I have a text field called 'phrase' but the
parameter values always come up as nil and when I check the
parameters dumped in the error message I do not get the normal hash
you'd expect.  Instead of something like


I get:

{"jim"=>"", "_"=>""}

Here is the code for the form:
stonelists (Guest)
on 2005-11-12 12:49
(Received via mailing list)
Just a wild guess...I haven't used the observe_field method and don't
know what it's for but from the params you are getting it would seem the
:phrase is not known. Try replacing :phrase with "phrase".

Someone please correct me if I'm wrong.


On 11/9/05, Jim Jeffers <> wrote:
> <tr><td><label>search:</label></td>
> -----------------------------------
> RAILS_ROOT: ./script/../config/..
> Any advice?
> - Jim
> _______________________________________________
> Rails mailing list

Andrew Stone
rails (Guest)
on 2005-11-12 12:49
(Received via mailing list)

I have had no luck.  Changing that makes no difference.  In fact if I
take the raw post I get 'jim&_=' so no matter what value you type in
there is an '&_=' appended to it.  Any ideas as to whats going on here?

- Jim
t.fuchs (Guest)
on 2005-11-12 12:49
(Received via mailing list)
&_= is a workaround for a Safari bug, and gets added by Prototype
(some versions of Safari are truncating POST data on Ajax calls).


Am 10.11.2005 um 07:06 schrieb Jim Jeffers:
This topic is locked and can not be replied to.