Forum: Ruby on Rails pass parameter to post method with link_to_remote

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Surendra S. (Guest)
on 2007-02-23 15:11
(Received via mailing list)
  I want to create an AJAX request URL which should create a new item
when clicked. I have been trying to do it in the following way

link_to("Add", :url => lists_path(:name => "test object"), :method =>

But this fails because the parameter :name => "test object" is not
passed. What am I doing wrong, and how can I get the desired result?

This topic is locked and can not be replied to.