打印

[问题求助] 怎样中断程序

怎样中断程序

if @strKeyword == ""
   redirect_to :action =>'index.rhtml' 没有跳转! 继续向下执行了!
end
怎样使!在满足if的情况下直接跳到'index.rhtml'画面! if 下面的语句不再执行!
请大家帮帮忙! 不好意思不小心发了两份! 大家见谅!

[ 本帖最后由 liupei520520 于 2008-3-18 10:44 编辑 ]

TOP

怎样中断程序

if @strKeyword == ""
   redirect_to :action =>'index.rhtml'
   return false
  end
多谢大家我朋友帮我解决了!

TOP

为什么要追加false才能成功呢?
本帖最近评分记录

TOP

呵呵! 谢谢! 不用false也可以实现!

TOP

汗~~~
本帖最近评分记录
  • wscc111 R币 +2 不要汗,要发表解决方法! 2008-3-19 12:07

TOP

2008-11-24 00:06 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html) @38.103.63.61