All threads / Using elasticsearch/searchkick to run a search bar via my navbar and show results in a search.html not index.html? ..
Ask A Question

Notifications

You’re not receiving notifications from this thread.

Using elasticsearch/searchkick to run a search bar via my navbar and show results in a search.html not index.html? ..

alexsunny asked in General

Hello,

I just finished going over Chris's two great railscasts dealing with search. However, I wanted to put my search bar on my navbar so that whenever someone searches the results I will be taken to my search.html.erb within my books folder (similar to how Gorails works). https://chatrandom.live https://topdatingwebsitesx.com/chatrandom https://topdatingwebsitesx.com/camsurf I ran into an issue though, everytime I did a search I was taken to my books page with no results being shown just my standard index showing all my books and was never taken to my search results page. I've listed all my relevant code below. If anyone can help me out would be super grateful.

thanks
alexsunny

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 66,029+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.