Forum: Ruby on Rails Routing problem?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5b0473d73eff5c3e9a07b43e79e93076?d=identicon&s=25 Bryan (Guest)
on 2009-01-12 16: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
lies.

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 =>
[:replies]
  map.resource :session
  map.resources :beta_invitations


  map.new_contact '/contact/new', :controller => 'contact', :action =>
'new', :conditions => { :method => :get }
  map.contact '/contact', :controller => 'contact', :action =>
'new', :conditions => { :method => :get }
  map.contact '/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 =>
'create'
  map.signout '/signout', :controller => 'sessions', :action =>
'destroy'
  map.questions '/questions', :controller => 'site', :action =>
'questions'
  map.privacy '/privacy', :controller => 'site', :action =>
'privacy_policy'
  map.terms '/terms', :controller => 'site', :action =>
'terms_of_service'
  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'

end
--------------

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!
80e4cb97cae5c8d745f72337d93fd8f2?d=identicon&s=25 MaD (Guest)
on 2009-01-12 16:30
(Received via mailing list)
> I just posted this and am wondering why it was taken down

it was not:
http://groups.google.de/group/rubyonrails-talk/bro...
5b0473d73eff5c3e9a07b43e79e93076?d=identicon&s=25 Bryan (Guest)
on 2009-01-12 22:13
(Received via mailing list)
My apologies.
This topic is locked and can not be replied to.