search for: magic_multi_connections

Displaying 3 results from an estimated 3 matches for "magic_multi_connections".

2011 Sep 08
1
Magic Multi Connections gem + Rails 3.1
...rom /Users/nopik/.rvm/gems/ruby-1.9.2-p180@christmas/gems/ activerecord-3.1.0/lib/active_record/base.rb:1325:in `compute_type'' from /Users/nopik/.rvm/gems/ruby-1.9.2-p180@christmas/gems/ activerecord-3.1.0/lib/active_record/reflection.rb:173:in `klass'' from /Users/nopik/Warsztat/magic_multi_connections/lib/ magic_multi_connections/connected.rb:60:in `block in create_class'' from /Users/nopik/Warsztat/magic_multi_connections/lib/ magic_multi_connections/connected.rb:51:in `each'' from /Users/nopik/Warsztat/magic_multi_connections/lib/ magic_multi_connections/connected.rb:51:in `c...
2009 Nov 01
9
Dynamic Database Connections
...past this hiccup I''m afraid I''ll have to use PHP or Java. Ugh. The application needs to have a database-per-customer model. So when I do a Product.find(:all) I need to make sure i''m connecting to say acme.products and not xyz_company.products. I toyed around with the magic_multi_connections gem but I''m having trouble getting it to work without knowing the connection up front. In the examples it shows how to connect when you know which db you''ll need ... in their example :Private. I attempted to look at the code, but there is some meta programming stuff in there tha...
2009 Apr 16
0
Magic multi connections with association problem
...=> "A::Testrslt", :foreign_key => "testrslt_reqno" end class Testrslt < ActiveRecord::Base set_table_name "testrslt" belongs_to :request, :class_name => "A::Request", :foreign_key => "testrslt_reqno" end Part of my gem list magic_multi_connections (1.2.1) rails (2.2.2) Please advise. Many thanks Valentino -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send...