ActiveRecord not saving any attributes, saving default values

后端 未结 1 2026
野的像风
野的像风 2021-02-08 09:54

I have a User model with some attributes, call them foo and bar. So my model looks like this:

class User < ActiveRecor         


        
相关标签:
1条回答
  • 2021-02-08 10:48

    attr_accessor is overriding the rails attributes. Try removing it and it should work.

    0 讨论(0)
提交回复
热议问题