json.extract! suggestion, :id, :subject, :body, :sent, :created_at, :updated_at json.url suggestion_url(suggestion, format: :json)