Sinatra doesn't know this ditty even when default route is implemented with modular style
When you use the modular style, the Sinatra::Application
app still exists, but usually nothing happens to it. In your config.ru
you are running this (empty) app instead of your own. Simply change run Sinatra::Application
to
run App
Override Sinatra default NotFound error page
Nevermind, found that all routes are matched in order, so after all routes I put get/post/put/delete '*' do ; end
and that solves my problem.
Related Topics
Gem::Loaderror: When Trying to Deploy on Heroku - Rails 4
Count Overlapping Regex Matches in Perl or Ruby
Open Firefox Browser with Ruby Automation Script
Ruby on Rails CSV Upload&Import - File Name Too Long
Hook Before All Delyed Job Success Callback to Save Successfully Completed Jobs
How to Return the Number of Devise Users Currently Logged In
Create a Titleize Method, That Excludes "Little Words"
Recurring Billing with Rails and Activemerchant: Best Practices, Pitfalls, Gotchas
Practical Example of Architecture Using Ebc
How to Enable Auto Completion in Ruby's Irb
Transfer Db from One Heroku App to Another Faster
Writing a Ruby Extension in Go (Golang)
Get Underlined Text with Markdown
Devise Password Reset from Rails Console