[Rails] form_remote_tag

Bob
2006-07-27T19:16:41Z

How can I get a name/id for a form using the remote form tag?
<%= form_remote_tag :url => { :action => :add_to_cart, :id =>
timecard }
%>

gives me:
<form action="/timecard/add_to_cart/4"
       method="post"
       onsubmit="new
Ajax.Request(''/timecard/add_to_cart/4'',
          {asynchronous:true, evalScripts:true,
          parameters:Form.serialize(this)});
           return false;">

But there is no form ID in there.  I''ve tried putting ":id =>
timecard"
before and after the :url assignment, but it never actually shows up.

In the mean time I''ve gotten rid of those tags and just created the
form
myself.  Anyone know what the ''ruby way'' to do this?


--
Posted via http://www.ruby-forum.com/.