Rails 在 Controller 中选择要显示的 View

2014-12-28 0 178
Rails 在 Controller 中选择要显示的 View
class HelloController < ApplicationController
  def there
     if Time.now.hour == 12
      render(:action => :here)
     end
  end
  
  def here

  end
  
end

遇见资源网 ruby Rails 在 Controller 中选择要显示的 View http://www.ox520.com/16210.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务