いくつかエラー原因はあるかと思いますが、僕の場合は、paramsと[:id]の間にスペースが空いているという事でした。
# スペースが空いている
@post = Post.find(params [:id])
エラーが消えた。
@post = Post.find(params[:id])
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 3 years have passed since last update.
いくつかエラー原因はあるかと思いますが、僕の場合は、paramsと[:id]の間にスペースが空いているという事でした。
# スペースが空いている
@post = Post.find(params [:id])
エラーが消えた。
@post = Post.find(params[:id])
Register as a new user and use Qiita more conveniently
Go to list of users who liked