post.pretty_url ||= ....  will allow changing the url from the admin. and if its not defined then will be generated.