Link_to :method => post

hi,
how to pass values when using a link_to with method => post?

regards.

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.

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

i just find this ticket : http://dev.rubyonrails.org/ticket/8106.
it seems what i want to do isn’t possible yet.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs