Serialize associations to replace params e.g. posts/:post_id/comments needs comment.post.id