Trailblazer: A New Architecture for Rails

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Trailblazer is a thin layer on top of Rails and brings a high-level application architecture, decent encapsulation and a new code structure. Here are the main features.

Logicless models solely focusing on persistence.
Skinny controllers working as endpoints, only.
Domain objects for your business logic, known as operations.
Form objects for deserialisation and validation.
View models to introduce a widget architecture.
Representers that parse and render documents for APIs.
Twin objects for decorating models.
This book takes you for an adventure trip from Rails code jungle to Trailblazer beach. Were building a complete Rails application using all of Trailblazers goodies while exploiting the Rails Way where it helps us.

What we build here is not just a simple 5-minutes blog, but a full-blown commenting application with complex forms, composed views, signed-in users and admin, authentication rules, polymorphic views and operatoins, a document-based JSON API, and more. We have a strong focus on testing, object design and structuring the code using Trailblazers concept-oriented framework.

Author(s): Nick Sutterer
Publisher: Leanpub
Year: 2015

Language: English
Pages: 259
Tags: Библиотека;Компьютерная литература;Ruby / RoR;