Forum: Ruby on Rails Error handleing with redirect_to

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.
140c065a9604b5321768cbe02e91ef30?d=identicon&s=25 Anton Aylward (Guest)
on 2007-02-15 23:52
(Received via mailing list)
I'm sketching out a error handler, something like

if cando = false
   redirect_to( :controller => Oops,
                :action     => 'accessdenied',
                :type       => 'alarm',
                :message    => 'no_permission_to_view',
                :return_to  => saved_url,

Is this an internal redirection or does it immedate send that url to the
browser as


What I want is the message sent to the user with a view custom for the
action parameter.  It would be nice it if it was a popup rather than a
new page, but I'll live with that.

Am I on the wrong track here?
I seem to be getting problems with routing.

The bitterness of poor quality lingers long after the sweetness of
meeting schedules is forgotten.
   --Kathleen Byle, Sandia National Laboratories
This topic is locked and can not be replied to.