jtrupiano / rack-rewrite

A web server agnostic rack middleware for defining and applying rewrite rules. In many cases you can get away with Rack::Rewrite instead of writing Apache mod_rewrite rules.
http://github.com/jtrupiano/rack-rewrite
MIT License
837 stars 80 forks source link

Can this be used with rails 5? #87

Open tj8295 opened 7 years ago

tiagoamaro commented 7 years ago

@tj8295 this should work fine with Rails 5. I'm using it right now.

Rails is not related to this gem at all, since this is just a Rack middleware. You could use this with any Rack based framework (e.g.: Sinatra). This gem only provides a new middleware to stack above/below the middleware of your choice (as described here: https://github.com/jtrupiano/rack-rewrite#sample-usage-in-a-rails-app).