Map.connect - redirect with 302?


#1

Is it possible to write map.connect rules in route.rb
that externally redirect (HTTP 302) to other actions?

thanks
csn


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


#2

Yep, I thought of that ;). I was just curious if
something like this was possible:

map.connect ‘/a/:b’, redirect_to :controller=>‘c’,
:action=>‘d’

csn

— Nick S. removed_email_address@domain.invalid wrote:



Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


#3

Well you could have action that does it for you. Just map what you
want the action and have that do the redirect. Would that cover what
you need? The user would still see the same effect as they don’t see
anything happening with the mapping rules themselves.

-Nick