Last active
December 14, 2015 04:49
-
-
Save bkenny/5031375 to your computer and use it in GitHub Desktop.
Grab products where tag like
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@products = Product.where(:source => params[:vendor], :city => params[:location]).includes(:tags).where(['tags.title LIKE ?', @tag.title]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment