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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---