Cover of Crafting Rails 4 Applications

Crafting Rails 4 Applications

Get ready to see Rails as you've never seen it before. Learn how to extend the framework, change its behavior, and replace whole components to bend it to your will. Eight different test-driven tutorials will help you understand Rails' inner workings and prepare you to tackle complicated projects with solutions that are well-tested, modular, and easy to maintain.

Read more

This second edition of the bestselling Crafting Rails Applicationshas been updated to Rails 4 and discusses new topics such as streaming, mountable engines, and thread safety.

Rails is one of the most extensible frameworks out there. This pioneering book deep-dives into the Rails plugin APIs and shows you, the intermediate Rails developer, how to use them to write better web applications and make your day-to-day work with Rails more productive.

Rails Core developer Jose Valim guides you through eight different tutorials, each using test-driven development to build a new Rails plugin or application that solves common problems with these APIs. You'll learn how the Rails rendering stack works and customize it to read templates from the database while you discover how to mimic Active Record behavior, such as validations, in any other object. You'll find out how Rails integrates with Rack, the different ways to stream data from your web application, and how to mix Rails engines and Sinatra applications into your Rails apps, so you can choose the most appropriate tool for the job. In addition, you'll improve your productivity by customizing generators and responders.

This book will help you understand Rails' inner workings, including generators, template handlers, internationalization, routing, and responders. With the knowledge you'll gain, you'll create well-tested, modular, and robust solutions for your next project.

What You Need

This book requires previous experience with Ruby on Rails.

Audience
adult
Length
medium · 200 pages

Click a tag to see books like this one that share it. Point at it (on a phone, tap it) for less of it instead.

Read it? Sign in to help tag it.

Liked Crafting Rails 4 Applications? Here’s where I’d start.

These suit anyone who liked Crafting Rails 4 Applications. Sign in and mark a few books for picks shaped around your own taste.

  1. Rails Recipes Shares ruby, programming, rails
  2. Rails Antipatterns: Best Practice Ruby on Rails Refactoring Shares programming, ruby, rails
  3. The Rails 3 Way Shares ruby, programming, rails
  4. The Rails Way Shares programming, ruby, rails

“If you want more of the same (science about technology), start with these.”

  1. HTML5 Games: Creating Fun with HTML5, CSS3, and WebGL
  2. Spring Boot in Action
  3. ZooKeeper: Distributed process coordination
  4. Refactoring: Ruby Edition

“If it was the programming that hooked you, try one of these.”

  1. Objects on Rails
  2. The RSpec Book
  3. The Rails View
  4. Advanced Rails Recipes

“These start from a similar idea, even if they go somewhere else with it.”

  1. Ruby on Rails 3 Tutorial: Learn Rails by Example (Addison-Wesley Professional Ruby Series)
  2. Ruby on Rails Tutorial: Learn Web Development with Rails (Addison-Wesley Professional Ruby Series)
  3. Agile Web Development with Rails: A Pragmatic Guide
  4. Developing Backbone.js Applications