hi, how to pass values when using a link_to with method => post? regards. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jean-sébastien Jney wrote:> hi, > how to pass values when using a link_to with method => post? > > regards.Seems like a slightly odd thing to do, but I''m sure it can be done. I suppose you could use link_to_function with "this.form.submit()" as the function. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I guess the quick and dirty way is just add it as part of your url link.
Example:
link_to ''name'', {..., :param => ''test''},
:method => :post
-----Original Message-----
From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
[mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of
MenDAKE
Sent: 27 April 2007 10:32
To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: [Rails] Re: link_to :method => post
Jean-sébastien Jney wrote:> hi,
> how to pass values when using a link_to with method => post?
>
> regards.
Seems like a slightly odd thing to do, but I''m sure it can be done. I
suppose you could use link_to_function with "this.form.submit()" as
the
function.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
i just find this ticket : http://dev.rubyonrails.org/ticket/8106. it seems what i want to do isn''t possible yet. On Apr 27, 4:48 am, "Herryanto Siatono" <herrya...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I guess the quick and dirty way is just add it as part of your url link. > > Example: > > link_to ''name'', {..., :param => ''test''}, :method => :post > > -----Original Message----- > From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of MenDAKE > Sent: 27 April 2007 10:32 > To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Subject: [Rails] Re: link_to :method => post > > Jean-sébastien Jney wrote: > > hi, > > how to pass values when using a link_to with method => post? > > > regards. > > Seems like a slightly odd thing to do, but I''m sure it can be done. I > suppose you could use link_to_function with "this.form.submit()" as the > function. > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---