In less than ten years, with fanatical support of a veritable army of open source contributors, Ruby on Rails has forcefully taken its place as the dominant king of web frameworks. It has conquered developer mindshare at startups and enterprises alike with its focus of simplicity, convention and clean, maintainable code. The latest version, Rails 4, continues the tradition of enhanced performance, security and developer productivity, with improvements that enable professional developers to focus on what matters most: delivering business value quickly and consistently.
The Rails™ 4 Way is the only comprehensive, authoritative guide to delivering production-quality code with Rails 4. Pioneering Rails expert Obie Fernandez and his team of leading Rails experts illuminate the entire set of Rails APIs, along with the idioms, design approaches, and libraries that make developing applications with Rails so powerful. Drawing on their unsurpassed experience and track record, they address the real challenges development teams face, showing how to use Rails to maximize your productivity.
Using numerous detailed code examples, the author systematically cover Rails key capabilities and subsystems, making this book a reference that you depend on everyday. He presents advanced Rails programming techniques that have been proven effective in day-to-day usage on dozens of production Rails systems and offers important insights into behavior-driven development and production considerations such as scalability. Dive deep into the subtleties of the asset pipeline and other advanced Rails topics such as security and scalability. The Rails 4 Way is your best guide for making Rails do exactly what you want it to do.
“The Rails 4 Way”, is a great reference book that covers most of what a Rails developer is likely to need on a daily basis. It covers the various DSLs and idioms (i.e. route definition, controller filter declaration, ActiveModel association and validations, etc) without getting into the details of Rails internals and how those features are implemented. The explanations are clear and the code examples relevant.
Just like Rails itself, “The Rails 4 Way” is opinionated and occasionally differs from the omakase way; Most notoriously, but hardly controversial, using Haml as a template engine and Rspec for testing.
Most of the book can be read cover-to-cover or used as a reference on particular topics. The exception is section about rails helpers (Chapter 11) which, as the author themselves point out, is really just an alphabetical listing of the methods available, like the one usually found on appendices or online documentation.
I recommend this book to new Rails developers (maybe after trying out an online tutorial) and for experienced Rails developers who are still working on Rails 3 (or 2!) and are expecting to make the jump to Rails 4 in the near future.
This book's description and its reviews led me to believe that it would discuss more of the bigger ideas behind how Rails is designed, those ideas that underlie the Rails conventions. The back cover, for example, promises that the reader will "discover why Rails is designed as it is."
But no such thing happens. Instead of discussing ideas or motivations, the book is mostly just a survey of Rails functionality. The vast majority of the book can be found in the Rails online documentation.
"The Rails 4 way" by Fernandez and Faustino is a great read about Ruby on Rails that goes through its various parts (Active Record, Action Pack and MVC, Routing, Testing & RSpec, JavaScript integration, Queues & ActiveJob, utilities & Active Support, Assets, and plenty others..).
It introduces the chapters progressively - but still requires a certain level of familiarity and background in the framework - covering the usage, concepts, API, practices, "Rails golden path(s)" so to speak, and even diving into the internal implementation occasionally.
You would read the book in order. choose the chapters that interests you the most, or keep it as a reference to any topic you want to revise later.
"Rails Guides" is a nice complementary resource with the book which also helps to catch up with the new release of Rails 5 ..
Before starting to read the book, being familiar with the Rails style guide at - https://github.com/bbatsov/rails-styl... , would set you up with the right attitude towards the book and safely skip chapters "Chapter 5 Working with ActiveRecord" and "Chapter 6 ActiveRecord migrations".
If you're time boxed, but also gain the most from the book regarding advanced Rails knowledge, go for chapters:
* Session Management, * Caching and Performance, * Background Processing, * Ajax on Rails (I personally never use the built-in AJAX functionality in Rails), * Asset Pipeline (it's better to know your enemy sooner than later), * RSpec (good intro, but you should check out "Rails 4 Test Prescriptions: Build a Healthy Codebase" at some point)
The very interesting book about Ruby on Rails framework. I have the edition of 2007 in one month. Covered mostly 70% of the book. But without practice it looks like a pure philosophy. Then applied in practice obtained theory and it worked. But anyway to practice Ruby on Rails you are to use API, good debugger like a pry, of course keep a Ruby handbook at your desktop, try TDD it really works, writing code and then covering it with tests quickly tests your understanding upon a subject, and thus you look at your code from different of views.