Sinatra like routes in Rails controllers A proof of concept of having Sinatra like routes inside your controllers. How to use Since the router is gone, feel free to remove config/routes.rb. Then add the file below to lib/action_controller/inline_routes.rb inside your app.