‘Learn Ruby on Rails’ Updated for Rails 5.1

I’ve completed the Rails 5.1 update for Book Two of my book series Learn Ruby on Rails.

It’s important to have an accurate and up-to-date tutorial for beginners getting started with Rails. I’ve updated all the code examples in the book for Rails 5.1.

The book shows how to integrate Bootstrap with Rails for layout and styling. Rails 5.1 drops jQuery which is required by Bootstrap so I’ve updated the book to show how to add a jQuery gem and modify the application.js manifest.

In previous editions of the book, I used the SimpleForm gem because I liked the elegance and simplicity of the form helpers in SimpleForm. It made forms a little easier for beginners. However the release of Rails 5.1 broke SimpleForm and it took a few weeks for a new release of SimpleForm to resolve the Rails 5.1 issues. I’ve decided to eliminate the dependency on SimpleForm, so the new edition of the book uses the new form_with helper.

The updates to the Learn Ruby on Rails book were made possible by contributors to my recent Kickstarter campaign for Rails Composer.