From e99e859a045d9241e7297499beb100c7e59e3820 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Wed, 2 Feb 2011 23:27:27 +0100 Subject: revises a metal example --- actionpack/lib/action_controller/metal.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb index ab603e40f2..b2c8053584 100644 --- a/actionpack/lib/action_controller/metal.rb +++ b/actionpack/lib/action_controller/metal.rb @@ -86,17 +86,17 @@ module ActionController # # 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 ActionController::Base that you can bring - # into your metal controller. + # You can refer to the modules included in ActionController::Base to see + # other features you can bring into your metal controller. # class Metal < AbstractController::Base abstract! -- cgit v1.2.3