Cannot save user_id

I thought I wanted to implement a nice feature, but before that I thought I didn't associate a post with a user_id
An error occurs when trying to link user_id to a post referring to.

Error message
NameError in CommentsController # create
uninitialized constant Comment :: Like
Sample code
class CommentsController  []})
class UserController
class User
class Comment

If i search with an error message, you cannot read the defined class.
Confirmed models/user as follows.

  • Answer # 1

    Isn't model like being made?

Related articles