diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-03-07 16:05:32 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-03-07 16:05:32 +0100 |
commit | 239f0d0ffd2ff6bbf51b4242c5069904a58d1030 (patch) | |
tree | 6eafdc0e383e01e491a7d19aee93386fbba33474 /guides | |
parent | 173e0e086f7ea88e052ec04e6cc22ee3b6193dca (diff) | |
download | rails-239f0d0ffd2ff6bbf51b4242c5069904a58d1030.tar.gz rails-239f0d0ffd2ff6bbf51b4242c5069904a58d1030.tar.bz2 rails-239f0d0ffd2ff6bbf51b4242c5069904a58d1030.zip |
replace non-breaking spaces with normal spaces [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/code/getting_started/app/controllers/comments_controller.rb | 4 | ||||
-rw-r--r-- | guides/code/getting_started/app/controllers/posts_controller.rb | 4 |
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 |