search for: mysql_host2

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

Did you mean: mysql_host
2009 Jan 13
9
Updating multiple databases at the same time
...a product on my website. Here is the controller: def update_product_name product = Product.find(params[:id]) product.name = params[:name] product.save #Say I want to save this to 3 other databases #can I do this with activerecord? #PSUEDO CODE... I know it cant do this product.save(mysql_host2) product.save(mysql_host3) product.save(mysql_host4) end Any ideas? Alternative ways to do this? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal...