RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: authorization x
Authorization from Scratch Part 2
Episode #386Oct 11, 201297 comments

Authorization from Scratch Part 2

This finishes the series on building authorization from scratch by refactoring the permission logic into a DSL, restricting authorization with attributes, and combining with strong_parameters to protect params. (20 minutes)
Authorization from Scratch Part 1
Episode #385Oct 07, 201282 comments

Authorization from Scratch Part 1

Authorization can be difficult to implement and test because it often involves complex logic that exists throughout the entire app. Here I demonstrate how to test and implement authorization from scratch. (15 minutes)
Model Caching (revised)
Episode #115May 13, 2013426 comments

Model Caching (revised)

Caching at a low level is a great option when the view is too dynamic to cache and you need something flexible that can work anywhere in the application. Here I show a variety of ways to use Rails.cache with Active Record. (12 minutes)
Declarative Authorization
Episode #188Nov 16, 2009114 comments

Declarative Authorization

Declarative authorization provides an advanced and powerful solution for role based authorization. (15 minutes)
Authorization with CanCan
Episode #192Dec 14, 2009114 comments

Authorization with CanCan

CanCan is a simple authorization plugin that offers a lot of flexibility. See how to use it in this episode. (15 minutes)
Handling Exceptions (revised)
Episode #53Apr 20, 2013209 comments

Handling Exceptions (revised)

By default, Rails will render a static error file when an exception occurs in production. Here you will learn how to fully customize this behavior and render dynamic error pages. (11 minutes)
Fast Rails Commands
Episode #412Apr 04, 2013179 comments

Fast Rails Commands

Rails commands, such as generators, migrations, and tests, have a tendency to be slow because they need to load the Rails app each time. Here I show three tools to make this faster: Zeus, Spring, and Commands. (8 minutes)
Strong Parameters
Episode #371Aug 03, 201275 comments

Strong Parameters

The strong_parameters gem is an improvement over attr_accessible to securely handle mass assignment even when you have complex authorization logic. The functionality will likely be added to Rails 4 so it is a good idea to learn how it works. (12 minutes)
Token Fields (revised)
Episode #258May 05, 2012158 comments

Token Fields (revised)

The Chosen plugin makes it easy to turn a many-to-many select menu into a searchable token field. Then see how the jQuery Tokeninput field can help with AJAX loading and creating new records. (10 minutes)
What's New in Rails 4
Episode #400Jan 04, 2013115 comments

What's New in Rails 4

Rails 4.0 is still unfinished, but it is shaping up to become a great release. Here I show how to setup a new Rails 4.0 (edge) application and walk through many of its new features. (20 minutes)