Notifying a view if a given values exists in a table

Hi - I want to enter a unique_id (string) into an input box in a view and then for it to return an output showing if this id exists in a given table in the dbase. How would I code this in controller and view. Regards

I created a sample app to answer your question: GitHub - djmolny/rails-search-demo

I’ve surrounded the source code that implements the search with comments that say RAILS-SEARCH-DEMO.

Hi

Thanks for this – much appreciated.

Yet to test it out in my environment and will let you know how I get on.

Regards