refraction icon indicating copy to clipboard operation
refraction copied to clipboard

Exception NoMethodError in application (super: no superclass method `path')

Open glennfu opened this issue 15 years ago • 2 comments

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?

glennfu avatar Sep 03 '10 17:09 glennfu

More notes: Running Rails 2.3.8. Works properly with Passenger + nginx, so it seems to be isolated to apache.

glennfu avatar Sep 03 '10 20:09 glennfu

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.

kakra avatar Mar 14 '11 10:03 kakra