[Rails] ConnectionNotEstablished when using connection on AR::Base abstract subclass

2012-03-02 Thread Michael L. Artz
I'm using AR outside of Rails and calling establish_connection on an ActiveRecord::Base abstract_class subclass (to protect my connection in case anyone else is using AR). It was working just fine with AR 3.0.9, but I recently attempted to upgrade to AR 3.2.2. Now, when I hit a "nested" query fro

[Rails] Namespaces that are controllers?

2010-03-22 Thread Michael L. Artz
I'm checking out the new router in Rails 3, and was looking to create an '/admin' section of a website with several namespaced resources, however I'd like the top level '/admin' to also route to a controller. Here's my current setup: match 'admin' => 'admin#index', :as => 'admin' namespace :admin