Skip to content

Instantly share code, notes, and snippets.

@bkenny
Last active December 14, 2015 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkenny/5031375 to your computer and use it in GitHub Desktop.
Save bkenny/5031375 to your computer and use it in GitHub Desktop.
Grab products where tag like
@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