Instead of creating id and routes manually, use the helpers that Rails provides in order to do this for us.