# 1.1.5 Upgrade and config.load\_path not working

**URL:** <https://www.ruby-forum.com/t/1-1-5-upgrade-and-config-load-path-not-working/64667>\
**Category:** Rails\
**Created:** [August 15, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/1-1-5-upgrade-and-config-load-path-not-working/64667 "2006-08-15T14:14:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [August 15, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/1-1-5-upgrade-and-config-load-path-not-working/64667/1 "2006-08-15T14:14:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [August 15, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/1-1-5-upgrade-and-config-load-path-not-working/64667/2 "2006-08-15T14:14:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [August 15, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/1-1-5-upgrade-and-config-load-path-not-working/64667/3 "2006-08-15T14:15:32Z")

</div>

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. 😉

Dave

---

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/1-1-5-upgrade-and-config-load-path-not-working/64667/4 "2006-08-15T14:20:42Z")

</div>

On 8/10/06, David C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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. 😉

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

---

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [September 4, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/1-1-5-upgrade-and-config-load-path-not-working/64667/5 "2006-09-04T14:45:34Z")

</div>

On 8/10/06, Jim M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
