Permalink
Browse files

revises a metal example

  • Loading branch information...
1 parent 33643bc commit e99e859a045d9241e7297499beb100c7e59e3820 @fxn fxn committed Feb 2, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/lib/action_controller/metal.rb
@@ -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!

0 comments on commit e99e859

Please sign in to comment.