Rails model to hash, exclude attributes

后端 未结 2 1446
难免孤独
难免孤独 2021-01-02 07:50

I am trying to form a json response that looks like this:

{
  \"user\": {
    \"birthday\": \"2013-03-13\",
    \"email\": \"example@example\",
    \"id\": 1         


        
2条回答
提交回复
热议问题