Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Teemu Leisti's Profile

GitHub User: leisti

Comments by Teemu Leisti

Avatar

@psingh: starting at 6:30, the cast explains that if you add "filter_resource_access" to a controller declaration, the gem will automatically take care of that for you.

Avatar

Because you should avoid premature optimization and premature refactoring. Maybe you'll need it, maybe you won't. In the former case, you can do it when you need it. In the latter case, you'll have wasted effort by doing premature work.