Forum: Ruby on Rails Redirect without creating a new action

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.
Tim C. (Guest)
on 2008-11-28 15:26
Hi, I want to redirect /join to /signup
Signup is defined as:
  map.signup '/signup', :controller => 'users', :action => 'new'

If i define join in the same way then the same content is displayed but
it is technically a different page (different URI)
  map.join '/join', :controller => 'users', :action => 'new'

I want /join to redirect to /signup.  Is this possible without creating
a join action just to contain the redirect?

I could just do the following but it is not RESTful and seems a bit
silly to be creating an exception just to do that.  Am i missing
def join
  redirect_to signup_path
This topic is locked and can not be replied to.