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 <email@example.com> 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 * firstname.lastname@example.org * http://www.halostatue.ca/
* email@example.com * http://www.halostatue.ca/feed/
|All times are GMT. The time now is 08:46 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.