[Implementing tagging function using form object]
Enter all the required items and press the Sell button.
↓
Then NoMethodError
Cause of error [Conclusion] It seems that the cause is inclusion, which is a validation option! !! !!
Reason: The include method cannot be used in the ActiveModel specifications
[Solution] Change the way validation is written ((Like this ↑))
If you want to know more, please see below ↓↓↓
[Verification to clarify the cause of the error that occurred first]
~ Verification ~ Apply binding.pry to create on the controller.
Hypothesis ① Played by validation Hypothesis ② Played due to price
Change the price validation to solve it! ↓
[Supplement] It seems that you can change to this description! !! !!
Recommended Posts