Skip to content

Instantly share code, notes, and snippets.

@DiveInto DiveInto/where.rb
Created Apr 15, 2012

Embed
What would you like to do?
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
You can’t perform that action at this time.