Re: Problem w/ routes.rb

apache05
Wed, 31 Jan 2007 22:43:58 -0000

How did you switch back to 1.1.6 from 1.2.2

Thanks

On Jan 30, 9:08 pm,
"joshua.shap...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<joshua.shap...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> My problem is identical, but occurs only when I graft my rails app
> onto an existing web site with
> a symlink.  If I set the rails app as the document root it work
> fine.
>
> I have switched back to rails 1.1.6 and im working again. Im going to
> wait for rails 1.2.2
>
> On Jan 21, 10:20 pm, "Matthew Hauck"
<mattha...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > Aha!
>
> > I upgraded RubyGems to 0.9.1 and everything works again! =)
>
> > -Matt
>
> > On Jan 21, 5:42 pm, "Matthew Hauck"
<mattha...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > > Greetings!
>
> > > Here is myroutesfile:
> > > ---
> > > ActionController::Routing::Routes.draw do |map|
> > >         map.connect '''', :controller =>
''home''
> > >         map.connect '':controller/:action/:id''
> > > end
> > > ---
>
> > > The blank route works, and I can get to my homepage. The second
route
> > > does not work. I get errors like this: "no route found to
match
> > > "/about" with {:method=>:get}"
>
> > > So, I put the following into a before_filter in application.rb:
> > > ---
> > > ActionController::Routes.reload!
> > > ---
>
> > > And now I get the following error page: (application trace)
> > > ---
> > > LoadError in HomeController#index
> > > Expected /home/ebct/config/routes.rb to defineRoutes
> > > RAILS_ROOT: /home/ebct/public_html/../config/..
>
> > > Application Trace | Framework Trace | Full Trace
> > >
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:250:in
> > > `load_missing_constant''
> > >
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:453:in
> > > `const_missing''
> > >
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:465:in
> > > `const_missing''
> > >
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:261:in
> > > `load_missing_constant''
> > >
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:453:in
> > > `const_missing''
> > >
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:261:in
> > > `load_missing_constant''
> > >
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:453:in
> > > `const_missing''
> > >
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:261:in
> > > `load_missing_constant''
> > >
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:453:in
> > > `const_missing''
> > > #{RAILS_ROOT}/app/controllers/application.rb:32:in
`config_app''
> > > Request
> > > Parameters: None
>
> > > Show session dump
> > > flash: !map:ActionController::Flash::FlashHash {}
>
> > > Response
> > > Headers: {"cookie"=>[],
"Cache-Control"=>"no-cache"}
> > > ---
>
> > > What could it mean by "Expected /home/ebct/config/routes.rb
to define
> > >Routes"???
>
> > > -Matt
>
> > > On Jan 21, 5:18 pm, "Matthew Hauck"
<mattha...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > > > I have the exact sameproblem! It makes absolutely no sense.
>
> > > > When I run the WEBrick server, the routing works fine. In
Apache +
> > > > FCGI, however, it does not.
>
> > > > Any help would be appreciated
>
> > > > -Matt
>
> > > > On Jan 19, 11:53 pm, Will Briggs
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
> > > > wrote:
>
> > > > > I am trying to develop a new webapp using Rails 1.2.1.
I am installing
> > > > > it onto a production web server runningApachew/
fastcgi.  The server
> > > > > already has some older webapps running on it using an
older version of
> > > > > Rails.  The apps are not installed in the document
root; they each have
> > > > > their own subdirectory which is a symlink for
theapachedocument root
> > > > > to the "public" directory of each app; i.e.:
> > > > > https://<myserver>/calendar
> > > > > https://<myserver>/app2
> > > > > https://<myserver>/app3
>
> > > > > When installing the latest webapp, I receive the
following error:
> > > > > ActionController::RoutingError (no route found to match
> > > > > "/technologies/list" with
{:method=>:get}):
>
> > > > > For some reason, ActionController is not recognizing
the default route
> > > > > (i.e., machine
name/<app_root>/<controller>/<action>).  Just for the
> > > > > hell of it, I tried setting up the existing apps to use
the Rails 1.2.1
> > > > > gem, and I receive the same error.
>
> > > > > I have typically only used the defaultroutesand not any
custom ones;
> > > > > has something changed in Rails (I haven''t
upgraded for a while) to
> > > > > require additional customization of theroutes.rb file?
>
> > > > > Any help would be appreciated!
>
> > > > > Thanks,
> > > > > Will
>
> > > > > --
> > > > > Posted viahttp://www.ruby-forum.com/.-Hidequotedtext --
Show quoted text -- Hide quoted text -- Show quoted text -


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com