1.1.5 Upgrade and config.load_path not working

Hey,

I am trying to upgrade to 1.1.5 and rails no longer finds my controllers
the
live outside app/controllers. I was on 1.1.2 previously and here is my
setup

In environment.rb

config.load_paths += [File.join(File.expand_path(RAILS_ROOT),
“rails_shared/controllers”) ]
config.load_paths += [File.join(File.expand_path(RAILS_ROOT),
“rails_shared/helpers”) ]
config.load_paths += [File.join(File.expand_path(RAILS_ROOT),
“rails_shared/lib”) ]

And within rails_shared/controllers I have a login_controller. When I
hit
the stie I see this:

Routing Error

Recognition failed for “/login/login_form”

I had previously tried to use controller_paths but that had never worked
for
me.

Anyone have any ideas?

Thanks,

Dave

I have confirmed that moving from 1.1.4 to 1.1.5 caused my error. Guess
it
is time for me to look at the source of the change.

Dave

Thank god for open source. The security fix itself caused the problem
and I
am working around it. I won’t spill the beans though. :wink:

Dave

On 8/10/06, David C. [email protected] wrote:

Thank god for open source. The security fix itself caused the problem and I
am working around it. I won’t spill the beans though. :wink:

Can you give me a hint as to what you are doing? As I posted in a
separate email to this list, our Web service URLs are screwed up. We
are on 1.1.2 as well. Both the single 1.1.2 security patch and the
upgrade to 1.1.5 caused the same problems: formerly recognized URLs
don’t work any more.

Thanks,

Dave

Jim

On 8/10/06, Jim M. [email protected] wrote:

don’t work any more.
So I have found two things between 1.1.2 and 1.1.6

  1. The security fix restricts your load path for controllers. They must
    be
    under RAILS_ROOT/app lib or components. So if you are doing anything
    weird
    with your load paths you will need to re think this.

  2. The other thing I found was that I had some links under an admin
    module
    that pointed to :controller => admin/users and :controller =>
    admin/groups. With the latest code this expands to admin/admin/users
    and
    admin/admin/groups. So I needed to fully qualify it. :controller =>
    /admin/users. Which is actually what you would expect.

Hope that helps.

Dave