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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Response.End / Exit equivalent in Ruby?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password