Forum: Ruby on Rails how to "break action"

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.
Feng (Guest)
on 2007-05-29 22:47
hi all,

if i want to "return or exit" (Like C language) in a action(function) ,
and maybe translate control to another function ,how can it do ?


seth b. (Guest)
on 2007-05-29 23:03
(Received via mailing list)
From a controller method...

render and return


redirect_to :controller => 'my_controller', :action => 'some_action' and

On 5/29/07, Feng <removed_email_address@domain.invalid> wrote:
> -Feng
> --
> Posted via
> >

seth at subimage interactive
This topic is locked and can not be replied to.