Skip to content

Instantly share code, notes, and snippets.

@exviva
Created January 25, 2017 02:12
Show Gist options
  • Save exviva/d27919ce0fc4caa7d1ccc67a68674c28 to your computer and use it in GitHub Desktop.
Save exviva/d27919ce0fc4caa7d1ccc67a68674c28 to your computer and use it in GitHub Desktop.
Shameless querying
rates = Rate.where(hotel_id: 1,
room_type: '1 bed',
check_in_date: Date.today)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment