def create
@diary = Diary.find(params[:diary_id])
@diary_page = @diary.diary_pages.create(params[:diary_page].permit(:text))
redirect_to diary_path(@diary)
end
嗨,上面是我的控制器方法创建。它给了我以下错误。
diary_pages_controller.rb:20: syntax error, unexpected end-of-input ����@diary = Diary.find(params[:diary_id]) ^
有人可以帮忙吗?