diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-07 12:40:14 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-07 12:40:14 +0000 |
commit | c40b1a4a67ccaa3be31edb13399d93da0c628567 (patch) | |
tree | 2c943fc5485bb29617911afd8da56bd269103bee /actionpack/examples/debate_controller.cgi | |
parent | a3b045a73e729e44719713084462825ef98f8bc0 (diff) | |
download | rails-c40b1a4a67ccaa3be31edb13399d93da0c628567.tar.gz rails-c40b1a4a67ccaa3be31edb13399d93da0c628567.tar.bz2 rails-c40b1a4a67ccaa3be31edb13399d93da0c628567.zip |
Deprecate direct usage of @params. Update ActionView::Base for instance var deprecation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/examples/debate_controller.cgi')
-rwxr-xr-x | actionpack/examples/debate_controller.cgi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/examples/debate_controller.cgi b/actionpack/examples/debate_controller.cgi index b82ac6259d..dbe022568b 100755 --- a/actionpack/examples/debate_controller.cgi +++ b/actionpack/examples/debate_controller.cgi @@ -25,19 +25,19 @@ class DebateController < ActionController::Base end def topic - @topic = @debate.find_topic(@params["id"]) + @topic = @debate.find_topic(params[:id]) end # def new_topic() end <-- This is not needed as the template doesn't require any assigns def create_topic - @debate.create_topic(@params["topic"]) + @debate.create_topic(params[:topic]) redirect_to :action => "index" end def create_reply - @debate.create_reply(@params["reply"]) - redirect_to :action => "topic", :path_params => { "id" => @params["reply"]["topic_id"] } + @debate.create_reply(params[:reply]) + redirect_to :action => "topic", :path_params => { "id" => params[:reply][:topic_id] } end private @@ -54,4 +54,4 @@ begin DebateController.process_cgi(CGI.new) if $0 == __FILE__ rescue => e CGI.new.out { "#{e.class}: #{e.message}" } -end
\ No newline at end of file +end |