1 2 3 4
if @foo.update_attributes(params[:foo]) and @foo.bar.update_attributes(params[:bar]) redirect_to foo_url(@parent) else ...
Ruby Saving multiple models in o...
What's the best way to save...
1 2 3 4
if @foo.update_attributes(params[:foo]) and @foo.bar.update_attributes(params[:bar]) redirect_to foo_url(@parent) else ...
What's the best way to save...
Hello,
I have a 'people'...