before_filter is deprecated and will removed in Rails 5. Use before_action instead.