[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Response.End / Exit equivalent in Ruby?

subsume@gmail.com

5/27/2007 2:42:00 PM

If the user types in junk, I'd like to return the user to the original
page.

Can't seem to do it. How is this typically handled?



def getBody url
begin
open(url) do |file|
@body = file.read
end
rescue SystemCallError
flash[:notice] = 'Check failed. This may be a bug but
its probably just your fault.'
render :action => 'new'
###STOP THE BOAT HERE!!!!
end
end

--
Posted via http://www.ruby-....

1 Answer

Austin Ziegler

5/27/2007 4:09:00 PM

0

On 5/27/07, Sy Ys <subsume@gmail.com> wrote:
> If the user types in junk, I'd like to return the user to the original
> page.
>
> Can't seem to do it. How is this typically handled?

This seems like a Rails question. You may want to ask on a Rails forum instead.

-austin
--
Austin Ziegler * halostatue@gmail.com * http://www.halo...
* austin@halostatue.ca * http://www.halo...feed/
* austin@zieglers.ca