search for: new_model

Displaying 2 results from an estimated 2 matches for "new_model".

Did you mean: new_mode
2007 Apr 04
4
joining across databases in a find statement with include (legacy db)
...:Base establish_connection(old) end class NewModel < ActiveRecord::Base has_one :old_model end a = OldModel.find :first NewModel.find(:all, :include => :old_model) will give an error like Mysql::Error: Table ''new_db.old_models'' doesn''t exist: SELECT ... FROM new_models LEFT OUTER JOIN old_models ON ... WHERE ... Obviously a performance hit without the join. MySQL does support joins you specify the database first (ex old_db.old_models). I can hack it by doing the join manually but that doesn''t sound like the rails way. Any ideas? -Andrew Roth --~...
2004 Oct 25
1
Rails 0.8: Just shy of 100 additions, changes, tweaks, and fixes!
...rn 50% of the gross profits are going to help further Rails. Read more on: http://www.rubyonrails.org/show/TextDriveHosting Rails 0.8.0: Multi-word classes are now welcome, WEBrick binding ================================================================ * Removed custom_table_name option for new_model now that the Inflector is as powerful as it is * Changed the default rake action to just do testing and separate API generation and coding statistics into a "doc" task. * Fixed WEBrick dispatcher to handle missing slashes in the URLs gracefully [alexey] * Added user option for al...