Answers the question posed at: https://discuss.rubyonrails.org/t/notifying-a-view-if-a-given-values-exists-in-a-table/85665
Most code in this sample application was generated using rails new
and rails g scaffold
. Code specific to the
question at hand is surrounded by comments that say RAILS-SEARCH-DEMO
.