Search form directly to results

Hi Guys,

I’m really new to rails, so I apologize if this is a dumb question.

I’m using the autocomplete plugin to search record titles. When a user
selects the appropriate title, and clicks “go” I’d like them to be
brought right to that title. If they enter a title which currently
doesn’t have a record, I’d like them to be forwarded to a page to added
the record.

whats the best way to go about doing this?

Thanks!
Elliot