Skip to content

Instantly share code, notes, and snippets.

@DiveInto
Created April 15, 2012 16:25
Show Gist options
  • Save DiveInto/2393688 to your computer and use it in GitHub Desktop.
Save DiveInto/2393688 to your computer and use it in GitHub Desktop.
where rails
@unsold = SellInfo.where("user_id = ? and deal_status != 'sold'", current_user.id)
@sold = SellInfo.where("user_id = ? and deal_status = 'sold'")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment