Skip to content

Instantly share code, notes, and snippets.

@KamaKAzii
Created June 29, 2010 06:51
Show Gist options
  • Save KamaKAzii/456888 to your computer and use it in GitHub Desktop.
Save KamaKAzii/456888 to your computer and use it in GitHub Desktop.
def index
@bookings = Booking.all
@booking = Booking.all(:condition => Date.today <= bookingdate < Date.today + 7)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment