aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-07 07:47:25 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-03-07 07:47:25 -0800
commit7039fdd836e2f66741d47cdfa7fb863d532f0208 (patch)
tree6382ff79e2af1b555eaf1a34066a34d44d44c421
parent7a32495e60c7480351d6b87b1c168f18b016e3ec (diff)
parent239f0d0ffd2ff6bbf51b4242c5069904a58d1030 (diff)
downloadrails-7039fdd836e2f66741d47cdfa7fb863d532f0208.tar.gz
rails-7039fdd836e2f66741d47cdfa7fb863d532f0208.tar.bz2
rails-7039fdd836e2f66741d47cdfa7fb863d532f0208.zip
Merge pull request #9595 from senny/remove_non_breaking_spaces
replace non-breaking spaces with normal spaces [ci skip]
-rw-r--r--guides/code/getting_started/app/controllers/comments_controller.rb4
-rw-r--r--guides/code/getting_started/app/controllers/posts_controller.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/guides/code/getting_started/app/controllers/comments_controller.rb b/guides/code/getting_started/app/controllers/comments_controller.rb
index 0082e9c8ec..0e3d2a6dde 100644
--- a/guides/code/getting_started/app/controllers/comments_controller.rb
+++ b/guides/code/getting_started/app/controllers/comments_controller.rb
@@ -1,7 +1,7 @@
class CommentsController < ApplicationController
-  http_basic_authenticate_with name: "dhh", password: "secret", only: :destroy
-
+ http_basic_authenticate_with name: "dhh", password: "secret", only: :destroy
+
def create
@post = Post.find(params[:post_id])
@comment = @post.comments.create(params[:comment].permit(:commenter, :body))
diff --git a/guides/code/getting_started/app/controllers/posts_controller.rb b/guides/code/getting_started/app/controllers/posts_controller.rb
index 0398395200..6aa1409170 100644
--- a/guides/code/getting_started/app/controllers/posts_controller.rb
+++ b/guides/code/getting_started/app/controllers/posts_controller.rb
@@ -1,7 +1,7 @@
class PostsController < ApplicationController
-  http_basic_authenticate_with name: "dhh", password: "secret", except: [:index, :show]
-
+ http_basic_authenticate_with name: "dhh", password: "secret", except: [:index, :show]
+
def index
@posts = Post.all
end