can I post data with link_to_remote(),
link_to() has special option :post => true and viola
Thanks in advance
can I post data with link_to_remote(),
link_to() has special option :post => true and viola
Thanks in advance
You can serialize form elements by adding the :with => “Form.serialize(
‘form_id’ )” attribute to your link_to_remote tag. I’m sure there’s a
way
of serializing additional data, but I’m not sure what it is. You can
specify additional attributes in the :url => { :action => }
section,
but I’m a total newb and am not sure if those are sent via GET or POST
(I am
guessing they are sent via GET since they are associated with the URL
attribute).
-Will
Hi,
On 1/17/06, Szczepan F. [email protected] wrote:
can I post data with link_to_remote(),
link_to() has special option :post => true and viola
link_to_remote makes a POST request by default. If you want a GET
request, just specify :method => :get.
–
sam
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs