Closed benubois closed 11 years ago
Just wanted to add, stripe_event was working in this same app on Rails 3.2.12, and stripe_event is mounted like:
mount StripeEvent::Engine => '/stripe'
I think I got it. It's because match
needs to specify :via
options. So the fix is to change this:
StripeEvent::Engine.routes.draw do
root :to => 'webhook#event'
end
to this
StripeEvent::Engine.routes.draw do
root :to => 'webhook#event', :via => :post
end
I'll work on putting together a pull request.
@benubois a pull request would be great. Thank you!
@benubois @mattgoldman Thank you again for your help :heart: . I've pushed v0.6.0 with Rails 4 compatibility.
I'm running into some issues when testing stripe_event with Rails 4 Beta 1.
I'm happy to look into this, but I thought I'd ask to see if I could get an idea of where to start looking.
After removing the Rails 3.1 requirement in the gemspec, all posts to the mount point get a 404 not found error: