Pardon me for this basic question; but what is the purpose of colon-id in rails’ restful api? August 31, 2015 by musicomet In Rails' docs I see this: /photos/:id Why not just: /photos/id Thanks 🙂
it shows that it is an argument (a variable). if it was /photos/id then the route /photos/19273464 wouldn’t match, only /photos/id Reply
it shows that it is an argument (a variable). if it was /photos/id then the route /photos/19273464 wouldn’t match, only /photos/id