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

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.
B7cc91e39d4f8a581b181bc89a8b9ec2?d=identicon&s=25 Surendra Singhi (Guest)
on 2007-02-23 14:11
(Received via mailing list)
Hello,
  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 =>
'post')

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?

Thanks.
Surendra
This topic is locked and can not be replied to.