3 ms·
I wish that routes weren't stuck within strings like `/artist/:id`, but instead used some kind of pattern matching like `['artist' :id]`. It's better to use Ru
by davexunit 12y ago
I wish that routes weren't stuck within strings like `/artist/:id`, but instead used some kind of pattern matching like `['artist' :id]`. It's better to use Ruby syntax instead of a quoted string of characters that can't be manipulated or verified as easily.
- jeremyevans 12y agoYou can do r.on('artist', :id) instead of r.on('artist/:id') if that is your style preference, both work in Roda.