How to "break action"


#1

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


#2

From a controller method…

render and return

…or…

redirect_to :controller => ‘my_controller’, :action => ‘some_action’ and
return

On 5/29/07, Feng removed_email_address@domain.invalid 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