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-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
>
> 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
>
> --
> 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---