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

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -