Also make the url to be automatically generated in the model. You can use the `before_save` callback