diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-07 06:11:56 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-07 06:11:56 +0000 |
commit | 2399a223c35622178ea58db6629cfd26f2230d60 (patch) | |
tree | 5a3c5fc32560643eb042631a3f23f357eb74ca09 /actionpack/examples/blog_controller.cgi | |
parent | 2bf8f2307e3f13a7b6cf703cdb954cc9a3f5244d (diff) | |
download | rails-2399a223c35622178ea58db6629cfd26f2230d60.tar.gz rails-2399a223c35622178ea58db6629cfd26f2230d60.tar.bz2 rails-2399a223c35622178ea58db6629cfd26f2230d60.zip |
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
Diffstat (limited to 'actionpack/examples/blog_controller.cgi')
-rwxr-xr-x | actionpack/examples/blog_controller.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
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" <html><body> - <%= @flash["alert"] %> + <%= flash["alert"] %> <h1>Posts</h1> <% @posts.each do |post| %> <p><b><%= post.title %></b><br /><%= post.body %></p> @@ -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 |