Wednesday, 7 August 2013

How to return appropriate header for Tire search results?

How to return appropriate header for Tire search results?

If you go to www.leapfm.com and make a search for lets say "Dubstep" it
will return all of the dubstep songs. However, the header is still listed
as "Top songs"
I'd like it to instead change to something like Search results for
"Dubstep" 5 when a search is made.
I tried a hacky solution like this but it didn't work
<% if Tire.search.results %>
<h6>Search results:</h6>
<% else %>
<h6>Top ranked songs</h6>
<% end %>
Any ideas?
I'm using this gem

No comments:

Post a Comment