issue using rails console building a Rails 5 api

Sandro Palmieri

I'm building an API with rails 5.
When I try to store a user with the Rails console I get the following error:

enter image description here

I cannot figure out what is the problem. I've run the migration

  • set the model

  • added the AMS gem

  • added serializers
  • added mime types

This is my schema

enter image description here

Uzbekjon

In app/models/user.rb file, it must be ApplicationRecord, not applicationRecord.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related