Forum: Ruby on Rails Routing problem?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Bryan (Guest)
on 2009-01-12 17:27
(Received via mailing list)
I just posted this and am wondering why it was taken down

I'm relatively new to Rails, so the solution to this might be more
trivial than I think However, I am working on an app, and everything
was working fine until just recently. The problem is I'm not sure
*when* I might have screwed up, hence my not knowing where the problem

I'm running Rails 2.1.2

All routes in routes.rb were working fine, but for some reason, a few
stopped working.  Here is my routes code:

ActionController::Routing::Routes.draw do |map|
  # See how all your routes lay out with "rake routes"
  map.connect '', :controller => 'site'

  map.resources :questions, :has_many => [:replies], :collection =>
{:search => :get}
  map.resources :passwords
  map.resources :users, :has_one => [:password], :has_many =>
  map.resource :session
  map.resources :beta_invitations

  map.new_contact '/contact/new', :controller => 'contact', :action =>
'new', :conditions => { :method => :get } '/contact', :controller => 'contact', :action =>
'new', :conditions => { :method => :get } '/contact', :controller => 'contact', :action =>
'create', :conditions => { :method => :post }

  map.home ':action', :controller => 'site'
  map.signup '/signup', :controller => 'users', :action => 'new'
  map.signin  '/signin', :controller => 'sessions', :action =>
  map.signout '/signout', :controller => 'sessions', :action =>
  map.questions '/questions', :controller => 'site', :action =>
  map.privacy '/privacy', :controller => 'site', :action =>
  map.terms '/terms', :controller => 'site', :action =>
  map.about '/about', :controller => 'site', :action => 'about'
  map.graphs '/graphs', :controller => 'graphs', :action => 'stats'

  # Install the default routes as the lowest priority.
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'

  # Custom handle 404/500 errors
  map.notfound '*args', :controller => 'site', :action => 'custom404'


Just recently, the signup, signout, privacy, and terms paths stopped
working.  The controllers and models seem to be as they were before
they stopped working and the files names haven't changed, so I'm not
sure where to fix the problem.

If more is needed to assess the problem, please let me know.  Thanks!
MaD (Guest)
on 2009-01-12 17:30
(Received via mailing list)
> I just posted this and am wondering why it was taken down

it was not:
Bryan (Guest)
on 2009-01-12 23:13
(Received via mailing list)
My apologies.
This topic is locked and can not be replied to.