I have a problem with ruby on rails validation
<%= text_field ‘book1’, ‘title1’ %>
<%= text_field ‘book2’, ‘title2’ %>
I want to validate these text_field so user can’t insert same title.
However, I was stuck how to do it.
Or maybe you have another way how to do it.
Any suggestion, please?
Thank you so much.