Save 36% for Black Friday! Learn more

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

Reply
Join the discussion
Create an account Log in

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

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

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