I have this URL in a Sinatra-based application:
<li><a href="/blog/<%= blog.title.tr(' ', '-') %>/<%= blog.slug %>"
Given that you started with:
The slash is not part of the title, but simply the character in red. Replace it with - in the code: