ruby - Sinatra error when handling .php routes -
i'm creating sinatra app replace legacy php based app.
get '/page.php' # ... end
i'm trying define route "sinatra doesn't know ditty." error page.
at top of page, have this
configure mime_type :php, 'text/html' end
any idea how tell sinatra use whole path including file extension part of it?
Comments
Post a Comment