rails skip_filter not working

230 views Asked by At

I'm trying to use Devise and HighVoltage on a very simple test project. On development runnign rails server HighVoltage works fine, but, on a remote server runing in production using passenger going to the same url redirects to the login screen.

This is the code:

class ApplicationController < ActionController::Base
  before_action :authenticate_user!, except: ['home']


class PagesController < HighVoltage::PagesController
    skip_filter :authenticate_user!

I, [2015-11-10T23:57:21.491566 #27644]  INFO -- : Processing by HighVoltage::PagesController#show as HTML
I, [2015-11-10T23:57:21.491656 #27644]  INFO -- :   Parameters: {"id"=>"testpage"}
I, [2015-11-10T23:57:21.500450 #27644]  INFO -- : Completed 401 Unauthorized in 9ms (ActiveRecord: 0.0ms)

What could be the reason? there is no changes in code between one version an the other, also, gems are the same. I tested removing the before_action and it works fine. So it make me think that the problem is that the skip_filter method is not working.

0

There are 0 answers