class WelcomeController < ApplicationController
  skip_before_filter :authenticate_user!, only: [:index]

  def index
  end

  def secure_page
  end
end

class WelcomeController < ApplicationController
  skip_before_action :authenticate_user!, only: [:index]

  def index
  end

  def secure_page
  end
end

Fix Rails 5 deprecation warning for skip_before_action
Fix Rails 5 deprecation warning for skip_before_action

DEPRECATION WARNING:

`skip_before_filter` is deprecated and will be removed in Rails 5.1. Use
`skip_before_action` instead.
