Exploding 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"

Author(s): Ryan Bigg
Edition: 2019-03-29
Publisher: Leanpub
Year: 2018-2019

Language: English
Pages: 169

Introduction
Where did this book come from?
Who is this book for?
Acknowledgements
Preface
Where Rails falls down
The problems with Active Record Models
Getting started with ROM
Introducing ROM
Let there be ROM
Repository in the middle
Summary
Rails, meet ROM
Generating our first ROM-powered relation, migration, repository and model
Connecting a Rails controller with ROM
Showing a particular project
Validating projects during creation
A small interlude about that contributors method
Creating a validator
Let’s talk about service objects
Building our first transaction class
Integrating the Projects::Create class with the controller
Refactoring the transaction class one step further
Adding tickets and users
Creating a tickets repository, relation, model and migration
Creating all the parts for users
The contributors method
Epilogue
Tidbits
Homework
Finish the CRUD actions for the ProjectsController
Add a TicketsController
Add Devise to the application
Notes