Closed ghost closed 12 years ago
Did you try adding
require 'routing_filter'
or maybe just
require 'routing_filter/filter'
before defining your Country filter?
Requiring 'routing_filter' doesn't resolve the issue for me. Any ideas?
I'm pretty sure it has something to do with your app or the load paths. I just created a new rails 2.3.14 app, took the country filter from a few comments above, stuck it into lib/routing_filter/country.rb and could use it in the routes file without any error.
Works on 3.1.4 and 3.2.3 as well, closing this as it's not reproducible. Please re-open if there is a documented way to show this error.
When I use bundler with the latest code on rails 2.3.11 it gives me the following error.
Here is my sample filter /lib/routing_filter.rb:
And my /config/routes.rb: