Forum: Ruby on Rails map.connect - redirect with 302?

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.
81194a50c0f9bd95d7832a77fdf371bd?d=identicon&s=25 CSN (Guest)
on 2006-01-11 21:11
(Received via mailing list)
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
Cb610750ee94ca103aef4b2dc7b1b768?d=identicon&s=25 Nick Stuart (Guest)
on 2006-01-11 21:44
(Received via mailing list)
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
81194a50c0f9bd95d7832a77fdf371bd?d=identicon&s=25 CSN (Guest)
on 2006-01-11 22:03
(Received via mailing list)
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 Stuart <nicholas.stuart@gmail.com> wrote:

>
> > __________________________________________________
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> 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
This topic is locked and can not be replied to.