Medium badge



Badge holders have demonstrated a working understanding of the JSON API RB / Rails gems.


Quentin Guillaume


Awarded badge on December 28, 2018

Medium couentine

Endorsements & Feedback


Well done!

This looks great.
Small couentine couentine About 2 years ago

Badge Portfolio

Learning Resources

Evidence visible to group members and anyone with the link
Share the learning resources which were the most useful to you during your process. More Info

I have try to watch as many videos as possible but lot of them where not interesting

Drifting Ruby

Episode 50 - Rails API - Active Model Serializer

class ApplicationSerializer < ActiveModel::Serializer include Rails.application.routes.url_helpers default_url_options[:host] = '' end class UserSerializer < ApplicationSerializer attributes :id, :first_name, :last_name, :show attribute :email, if: :current_user attribute :edit_link, if: :current_user_is_owner has_many :phones def show UsersController.render(:show, assigns: { user: object}, layout: false ).squish end def edit_link edit_user_url(object) end def current_user_is_owner scope == object end end class PhoneSerializer < ApplicationSerializer attributes :name, :phone_number end