Specify which controllers to exclude from before_filter

In the controller where you want to skip a before filter specified in an inherited controller, you can tell rails to skip the filter

class ApplicationController
  before_filter :authenticate_user!
end

class SessionsController < ApplicationController
  skip_before_filter :authenticate_user!
end

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)