David Clements
2006-Aug-10 15:44 UTC
[Rails] 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060810/5bf74f4c/attachment.html
David Clements
2006-Aug-10 17:10 UTC
[Rails] Re: 1.1.5 Upgrade and config.load_path not working
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 On 8/10/06, David Clements <digidigo@gmail.com> wrote:> > 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 > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060810/af964713/attachment.html
David Clements
2006-Aug-10 17:57 UTC
[Rails] Re: 1.1.5 Upgrade and config.load_path not working
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 On 8/10/06, David Clements <clements@colorado.edu> wrote:> > 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 > > > On 8/10/06, David Clements <digidigo@gmail.com> wrote: > > > > 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 > > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060810/00d3c1ef/attachment.html
Jim Menard
2006-Aug-10 21:24 UTC
[Rails] Re: 1.1.5 Upgrade and config.load_path not working
On 8/10/06, David Clements <clements@colorado.edu> 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.> > Dave > > On 8/10/06, David Clements <clements@colorado.edu> wrote: > > > > 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 > > > > On 8/10/06, David Clements <digidigo@gmail.com> wrote: > > > > 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, > > > > DaveJim -- Jim Menard, jimm@io.com, jim.menard@gmail.com http://www.io.com/~jimm
David Clements
2006-Aug-11 15:59 UTC
[Rails] Re: 1.1.5 Upgrade and config.load_path not working
On 8/10/06, Jim Menard <jimm@io.com> wrote:> > On 8/10/06, David Clements <clements@colorado.edu> 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.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> > > Dave > > > > On 8/10/06, David Clements < clements@colorado.edu> wrote: > > > > > > 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 > > > > > > > > On 8/10/06, David Clements <digidigo@gmail.com> wrote: > > > > > > 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 > > Jim > -- > Jim Menard, jimm@io.com , jim.menard@gmail.com > http://www.io.com/~jimm <http://www.io.com/%7Ejimm> > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060811/b5ce29bd/attachment-0001.html