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:
parent
173e0e086f
commit
239f0d0ffd
2 changed files with 4 additions and 4 deletions
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue