refraction
refraction copied to clipboard
Exception NoMethodError in application (super: no superclass method `path')
Running the following (in refraction_rules.rb lines 1-3):
Refraction.configure do |req|
req.found! '/asdf_test' if req.path == "/asdf"
end
puts this error in my apache's error_log:
*** Exception NoMethodError in application (super: no superclass method `path') (process 833):
from /Users/.../vendor/plugins/refraction/lib/refraction.rb:66:in `path'
from /Users/.../config/initializers/refraction_rules.rb:2
This is running with apache + Passenger on OSX. Running with webrick gives no error. Any idea why this might be?
More notes: Running Rails 2.3.8. Works properly with Passenger + nginx, so it seems to be isolated to apache.
I'm having this problem, too. No matter if it is WEBrick or Mongrel. The issue is with Rails 2.3.2, however the application is not easily upgradeable (there seem to be some essential differences between 2.3.2 and 2.3.11). Using a test application, it seems to work with the latest 2.3.x branch of Rails.