I’ve been working on adding a simple search feature to my code for about 10 hours now and I have no idea what I’m doing wrong. I have a project I am making where I have a main page of cars and I can click on each car and click on a page to get a listing of multiple models of the car that are stored in the database.
The problem is when I search on the “listing” page I get an error “ActiveRecord::StatementInvalid in Listings#index” and I have no idea how to resolve it.
I’ll venmo $10 to the first person to help me solve this. I’m desperate! Thank you. Code is public and can be found here: https://github.com/erika-kuntar/SomethingCarRelated