Topic: Validation with the use of validates_uniqueness_of
I have a small question. After a validation by validates_uniqueness_of method in Active Record I would like to create a link to a specific record if it already exists (so, if I get false during this validation). Do You have any aproaches, ideas how to do this the best? I am thinking about doing this during validation process, maybe in model and then send this link via validation message (which I show later via flash method in the view)? Is it possible? Thank You in advance for any ideas and help!