Response.End / Exit equivalent in Ruby?
If the user types in junk, I'd like to return the user to the original
Can't seem to do it. How is this typically handled?
def getBody url
open(url) do |file|
@body = file.read
flash[:notice] = 'Check failed. This may be a bug but
its probably just your fault.'
render :action => 'new'
###STOP THE BOAT HERE!!!!
Posted via http://www.ruby-forum.com/.
Re: Response.End / Exit equivalent in Ruby?
On 5/27/07, Sy Ys <firstname.lastname@example.org> wrote:
> If the user types in junk, I'd like to return the user to the original
> 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 Ziegler * email@example.com * http://www.halostatue.ca/
* firstname.lastname@example.org * http://www.halostatue.ca/feed/
|All times are GMT. The time now is 06:44 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.