0

Originally, for a signup form on my site, I had this code for the beginning of the form:

<%= form_for(@user)  do |f| %>

When I add this html id in the following code for the beginning of my form:

<%= form_for(@user, :html => { :id => 'payment-form' })  do |f| %>

The form no longer works.

Is there a way to still add the html id I specified above to my form while allowing my form to work? How can I go about doing that? Why doesn't the form actually process when I hit 'submit' after I add the html id.

Thanks so much!

4

1 に答える 1

0

試す<%= form_for(@user, :id => 'payment-form' ) do |f| %>

于 2012-07-08T21:54:08.447 に答える