I am using Ruby on rails with boxr gem to integrate box api and I have a requirement to implement the capability where pdf file should default open in the browser when a user tries to download particular pdf file.
Boxr gem provide a method call download_url, which returns download URL and when User clicks on it, it's force the browser to download file instead of open in the browser default viewer.