1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

replace non-breaking spaces with normal spaces [ci skip]

This commit is contained in:
Yves Senn 2013-03-07 16:05:32 +01:00
parent 173e0e086f
commit 239f0d0ffd
2 changed files with 4 additions and 4 deletions

View file

@ -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))

View file

@ -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