Open ghost opened 14 years ago
My model:
class MyModel < ActiveRecord::Base ActiveRecord::Base.establish_connection(YAML::load(ERB.new(IO.read("#{RAILS_ROOT}/config/mydbconf.yml")).result)["somenode_in_configfile"])
result: Showing vendor/extensions/share_layouts/app/views/layouts/radiant.rhtml where line #1 raised:
Could not find table 'pages'
can you propose any code to help with this?
When i use a different database-connection, the plugin uses the new (my own) connection for finding pages etc... results in an error.
would be great if there is an easy fix for that.