Rails 4 model returns always nil

后端 未结 3 808
不知归路
不知归路 2021-01-14 03:02

I am going crazy with the following error. I have a User class and two of its attributes (birthday & created_at => datetime) returns always nil besides it has a value on

3条回答
  •  爱一瞬间的悲伤
    2021-01-14 03:40

    I found the problem.

    Some days ago I changed the config/application.rb file adding the following configuration to solve some issues with timezones:

    config.time_zone and config.active_record.default_timezone
    

    I've just removed them and all is working fine again.

提交回复
热议问题