Ruby on Rails Wednesday, September 29, 2010

Have you had any luck w this? I am effectively doing the same thing.

I can get my Credit Card form to appear in with in my Order form,
however if the form doesn't validate, all my Credit Card info is lost
and the user has to re-type it in. I believe it has something to do with
the my Order class (which extends Activerecord::Base) does not:
accepts_nested_attributes_for :credit_card

therefore the input names aren't being created correctly, etc.

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

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment