Skip to content

Instantly share code, notes, and snippets.

@bkenny
Last active December 14, 2015 04:49
Show Gist options
  • Select an option

  • Save bkenny/5031375 to your computer and use it in GitHub Desktop.

Select an option

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