Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: Pro Episodes xControllers x
Service Objects
Episode #398Dec 18, 201253 comments

Service Objects

Models can quickly become a grab-bag of unrelated methods if behavior is constantly being pushed from the controller. Here I show how to refactor this using Concerns and Service Objects. (12 minutes)
Action Controller Walkthrough
Episode #395Dec 02, 201212 comments

Action Controller Walkthrough

Do you ever wonder what goes on behind the scenes when a Rails controller handles a request? What do the "render" and "redirect_to" methods do exactly? This and more covered as we walk through the code of ActionController::Base. (11 minutes)