KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
When a user tries to create a record with a name that already exists, I want to show an error message like: name "some name" has already been taken I have been trying to do: validates_uniqueness_of :name, :message => "#{name} has already been taken" but this outputs the table name instead of the value of the name attribute
Tags (comma-separated)
Save Edits
Cancel