aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/examples/blog_controller.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/examples/blog_controller.cgi')
-rwxr-xr-xactionpack/examples/blog_controller.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/examples/blog_controller.cgi b/actionpack/examples/blog_controller.cgi
index b0c14033a2..3868c306df 100755
--- a/actionpack/examples/blog_controller.cgi
+++ b/actionpack/examples/blog_controller.cgi
@@ -32,7 +32,7 @@ class BlogController < ActionController::Base
end
def create
- @session["posts"].unshift(Post.new(@params["post"]["title"], @params["post"]["body"]))
+ @session["posts"].unshift(Post.new(params[:post][:title], params[:post][:body]))
flash["alert"] = "New post added!"
redirect_to :action => "index"
end