You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
ActiveModel::Serializersとは Railsなどで簡単で素早くjsonを作れるgemです。 ActiveModel::Serializersより、 ActiveModel::Serializers brings convention over configuration to your JSON generation. 実際に試してはないですが、ActiveModelに依存しているだけなのでSinatraなどでも使えるはずです。 なぜActiveModel::Serializersを使うのか 簡単で速いので使ってます。 簡単 Railsではjbuilderを使うことが多いですが、記法が直感的じゃなくて多少憶えにくいかな思ってます。 json.(@message, :content, :author) => {content: 'hello', author: 'kakk
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く