Forum: Ruby on Rails link_to :method => post

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.
4b87f676cb6c4d648d71000681823693?d=identicon&s=25 Jean-sébastien Jney (jney)
on 2007-04-26 22:05
(Received via mailing list)
hi,
  how to pass values when using a link_to with method => post?

regards.
3df897745c664e3add6f047daa5835d1?d=identicon&s=25 MenDAKE (Guest)
on 2007-04-27 04:31
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.
41c16e2bd2dd7efcbb7981e433471fda?d=identicon&s=25 Herryanto Siatono (jugend)
on 2007-04-27 04:49
(Received via mailing list)
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
4b87f676cb6c4d648d71000681823693?d=identicon&s=25 Jean-sébastien Jney (jney)
on 2007-04-27 05:35
(Received via mailing list)
i just find this ticket : http://dev.rubyonrails.org/ticket/8106.
it seems what i want to do isn't possible yet.
This topic is locked and can not be replied to.