Forum: Ruby on Rails Redirect without creating a new action

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.
9ceeb190da20a2917644da86dbcd2322?d=identicon&s=25 Tim Conner (plump)
on 2008-11-28 14: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
something?
def join
  redirect_to signup_path
end
This topic is locked and can not be replied to.