Map.connect - redirect with 302?

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

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. [email protected] wrote:



Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

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