There seems to be a bug with skip_before_filter using the :only or
:except conditionals.
Or am I using them completely wrong?
I have this code:
The result is that :test_filter is skipped for both index, and
index_no_filter.
application.rb
# Filters added to this controller will be run for all controllers in
the application.
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
before_filter :test_filter
def test_filter
flash[:notice] = "The filter was called"
end
end
test_controller.rb
class TestController < ApplicationController
skip_before_filter :test_filter, :only => :index_no_filter
def index
end
def index_no_filter
end
end
--
Posted via http://www.ruby-forum.com/.