From 2399a223c35622178ea58db6629cfd26f2230d60 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 7 Aug 2006 06:11:56 +0000 Subject: Deprecation! @session and @flash will be removed after 1.2. Use the session and flash methods instead. You'll get printed warnings during tests and logged warnings in dev mode when you access either instance variable directly. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4699 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/examples/blog_controller.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/examples/blog_controller.cgi') diff --git a/actionpack/examples/blog_controller.cgi b/actionpack/examples/blog_controller.cgi index e64fe85f0c..b0c14033a2 100755 --- a/actionpack/examples/blog_controller.cgi +++ b/actionpack/examples/blog_controller.cgi @@ -14,7 +14,7 @@ class BlogController < ActionController::Base render_template <<-"EOF" - <%= @flash["alert"] %> + <%= flash["alert"] %>

Posts

<% @posts.each do |post| %>

<%= post.title %>
<%= post.body %>

@@ -50,4 +50,4 @@ begin BlogController.process_cgi(CGI.new) if $0 == __FILE__ rescue => e CGI.new.out { "#{e.class}: #{e.message}" } -end \ No newline at end of file +end -- cgit v1.2.3