evendis / mandrill-rails

Webhook processing and event decoration to make using Mandrill with Rails just that much easier
MIT License
288 stars 36 forks source link

undefined method `original_url' for #<ActionDispatch::Request #7

Closed wooki closed 10 years ago

wooki commented 10 years ago

HI, I'm getting a very strange error when I send a test from Mandrill - I get a 500 error in my app. Checking the log I can see the correct controller being used and the data coming in from the test, but then get this...

Completed 500 Internal Server Error in 6ms

NoMethodError (undefined method `original_url' for #ActionDispatch::Request:0x007f1060a07ef0):

I've checked the docs and Request seems to have a method original_url in current rails v4 and in my apps rails v3. SO I don't see how this can be happening. Any suggestions?

tardate commented 10 years ago

That is very curious! The error is telling you it is an ActionDispatch::Request instance, which should have an original_url method.

Which version of rails are you running exactly? Is there anything else in your controller or rack stack that could be messing with the request?

PS: do you have the stack trace to the line with the error?

tardate commented 10 years ago

@wooki did you get to the bottom of the problem? I'm going to close the issue, but just reply/re-open if it's not solved