Mark Reginald James a écrit :
>    :with => 'js_variable'
> 
> which Rails turns into a Prototype Ajax call with option
> 
>    parameter: js_variable

Actually, what Rails does with this is define the name of the HTTP
request parameter that will be used for sending the recently-changed
value of the field/form you're observing.

> and which can be retrieved in the controller as request.raw_post,

Why on Earth wouldn't you use @params[:js_variable]?!

> does not work in the current SVN prototype because an equals
> sign is appended to the post string.

Of course it is, as per docs, specs, and common sense.  There should
also be the field's VALUE sent there, right after the '=' sign.  If the
value is empty at the time, of course there won't be anything.

> Should I submit a patch to Prototype's toQueryString function,

.toQueryString() is perfectly fine, especially on SVN.

What exactly are you trying to do?  You sound like you just don't use
:with properly.  Can you provide us with some context here?

'best,

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Ruby on Rails: Spinoffs" 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-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to