Img source: agilewarrior.wordpress.com

You may need attributes in your views or in your JSON response which may not be part of your models. In these situations, you may use virtual attributes that you may only use in your particular cases, and not bother to add many new attributes in your database table that are not that much relevant for that model.

Continue reading