# Routing problem?

**URL:** <https://www.ruby-forum.com/t/routing-problem/157522>\
**Category:** Rails\
**Created:** [January 12, 2009, 4:27pm UTC](https://www.ruby-forum.com/t/routing-problem/157522 "2009-01-12T16:27:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [January 12, 2009, 4:27pm UTC](https://www.ruby-forum.com/t/routing-problem/157522/1 "2009-01-12T16:27:25Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [January 12, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/routing-problem/157522/2 "2009-01-12T16:30:22Z")

</div>

> I just posted this and am wondering why it was taken down

it was not:  
[http://groups.google.de/group/rubyonrails-talk/browse\_thread/thread/ec58225eb0def81e?hl=de](http://groups.google.de/group/rubyonrails-talk/browse_thread/thread/ec58225eb0def81e?hl=de)

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [January 12, 2009, 10:13pm UTC](https://www.ruby-forum.com/t/routing-problem/157522/3 "2009-01-12T22:13:18Z")

</div>

My apologies.
