Better (scoped) rails engines routing
Rails engines are really great, but they are missing one thing - putting in router scope. Fortunately, this can be easily fixed.
Instead of engine`s config/routes.rb file put all router stuff in lib/engine.rb like that:
And now it is possible to add scope:
Done!
Example gist