From 098fa943565e06dafa67ca59ccf433939d2941b4 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 7 Feb 2005 14:15:53 +0000 Subject: Fixed documentation snafus #575, #576, #577, #585 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/scaffolding.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'actionpack/lib/action_controller/scaffolding.rb') diff --git a/actionpack/lib/action_controller/scaffolding.rb b/actionpack/lib/action_controller/scaffolding.rb index 49b35b37df..9c1311efa3 100644 --- a/actionpack/lib/action_controller/scaffolding.rb +++ b/actionpack/lib/action_controller/scaffolding.rb @@ -44,7 +44,7 @@ module ActionController # def create # @entry = Entry.new(@params["entry"]) # if @entry.save - # flash["notice"] = "Entry was succesfully created" + # flash["notice"] = "Entry was successfully created" # redirect_to :action => "list" # else # render "entry/new" @@ -61,7 +61,7 @@ module ActionController # @entry.attributes = @params["entry"] # # if @entry.save - # flash["notice"] = "Entry was succesfully updated" + # flash["notice"] = "Entry was successfully updated" # redirect_to :action => "show/" + @entry.id.to_s # else # render "entry/edit" @@ -123,7 +123,7 @@ module ActionController def create#{suffix} @#{singular_name} = #{class_name}.new(@params["#{singular_name}"]) if @#{singular_name}.save - flash["notice"] = "#{class_name} was succesfully created" + flash["notice"] = "#{class_name} was successfully created" redirect_to :action => "list#{suffix}" else render "#{singular_name}/new#{suffix}" @@ -140,7 +140,7 @@ module ActionController @#{singular_name}.attributes = @params["#{singular_name}"] if @#{singular_name}.save - flash["notice"] = "#{class_name} was succesfully updated" + flash["notice"] = "#{class_name} was successfully updated" redirect_to :action => "show#{suffix}/" + @#{singular_name}.id.to_s else render "#{singular_name}/edit#{suffix}" -- cgit v1.2.3