Forum: Ruby on Rails how to "break action"

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.
F0f816437222a5266dd38fa9d87d9764?d=identicon&s=25 Feng (Guest)
on 2007-05-29 20: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 ?
(direct_to?)

thanks


-Feng
Efe398b3b5436b0a8d4430090e8f86ea?d=identicon&s=25 seth b. (subimage)
on 2007-05-29 21:03
(Received via mailing list)
From a controller method...

render and return

...or...

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

On 5/29/07, Feng <rails-mailing-list@andreas-s.net> wrote:
>
>
> -Feng
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>


--
--------------------
seth at subimage interactive
-----
http://www.subimage.com
http://sublog.subimage.com
-----
http://www.getcashboard.com
http://dev.subimage.com/projects/substruct
This topic is locked and can not be replied to.