Rails 在 Controller 中选择要显示的 View

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

class HelloController < ApplicationController
  def there
     if Time.now.hour == 12
      render(:action => :here)
     end
  end
  
  def here

  end
  
end