2 lines
104 B
Ruby
2 lines
104 B
Ruby
json.extract! post, :id, :title, :body, :created_at, :updated_at
|
|
json.url post_url(post, format: :json)
|