提交 e99e859a 编写于 作者: X Xavier Noria

revises a metal example

上级 33643bcf
......@@ -86,17 +86,17 @@ def build(action, app=nil, &block)
#
# class HelloController < ActionController::Metal
# include ActionController::Redirecting
# include Rails.application.routes.url_helpers
#
# def index
# redirect_to "http://www.example.com"
# redirect_to root_url
# end
# end
#
# == Other Helpers
#
# You can refer to the modules defined in ActionController to see
# the other features in <tt>ActionController::Base</tt> that you can bring
# into your metal controller.
# You can refer to the modules included in <tt>ActionController::Base</tt> to see
# other features you can bring into your metal controller.
#
class Metal < AbstractController::Base
abstract!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册