Pass parameter to post method with link_to_remote


#1

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