1 thought on “Pardon me for this basic question; but what is the purpose of colon-id in rails’ restful api?”

  1. 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

Leave a Comment