I have this error in Rails 4.1.4, but I can't see where should be the problem: syntax error, unexpected end-of-input, expecting keyword_end
class PostsController < ApplicationController
def index
@posts = Post.all
end
def show
@post = Post.find(params[:id])
end
def new
@post = Post.new
end
def create
@post= Post.new(post_params)
if @post.save
redirect_to posts_path
else
render "new"
end
end
def edit
end
def update
end
def destroy
end
private
def post_params
params.require(:post).permit(:title, :content)
end
end