Forum: Ruby on Rails AJAX form Parameters jumbled.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B614e42d18c609ac4585d0aa0b13d856?d=identicon&s=25 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

{"phrase"=>"jim"}

I get:

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

Here is the code for the form:
18d8b0c948dd7b3d39c9667cfd4e817c?d=identicon&s=25 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
really
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.

thanks,
andy

On 11/9/05, Jim Jeffers <rails@donttrustthisguy.com> wrote:
>
> <tr><td><label>search:</label></td>
> -----------------------------------
> RAILS_ROOT: ./script/../config/..
>
> Any advice?
>
> - Jim
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>



--
Andrew Stone
B614e42d18c609ac4585d0aa0b13d856?d=identicon&s=25 rails (Guest)
on 2005-11-12 12:49
(Received via mailing list)
Nope,

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
E813e9cc70159e103a64a5237c0d3ee2?d=identicon&s=25 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).

Thomas


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