search for: create_and_subscrib

Displaying 1 result from an estimated 1 matches for "create_and_subscrib".

Did you mean: create_and_subscribe
2010 May 21
0
Multiple Models one form and validations ... no transactions(mongo)
...User sitting in the db when the form re-renders "new" and they click save again then they will get a error about "username already exists" blah blah blah. Right now i am creating everything via the User model with all the extra fields on attr_accessor and a method called "create_and_subscribe". Is that the best practice for this? and if so how do i still get back the validations from the other model like Studio. Since i don''t have transactions the best i could think of was this at the head of "create_and_subscribe" def create_and_subscribe(product_id) studi...