search for: studio_param

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

Did you mean: studio_params
2010 May 21
0
Multiple Models one form and validations ... no transactions(mongo)
...t 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) studio = Studio.new(studio_params) return unless self.valid? && studio.valid? ..... ..... end that way i at least know they are valid then i actually create them if the call to Chargify is successful. Thanks for any help this has been driving me nuts. Ps.I wonder if this is better suited to the mongo form s...