Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
Lessons:22Length:2.7 hours
  • Overview
  • Transcript

2.4 Before_action

This lesson shows one of the key philosophical points that makes Rails such a great ecosystem. In Rails 3 there is a `before_filter` method that allows you to run a method before a common set of actions in your controller is executed. In Rails 4 that method has changed to `before_action` to accommodate its true meaning and purpose.