Sha256: da8f75c1669f288fa11b47efadedf88e662dcb033397e22e7d8acd2bf04b20bf
Contents?: true
Size: 425 Bytes
Versions: 30
Compression:
Stored size: 425 Bytes
Contents
require "open-uri" module CabooseRets class OpenHousesController < ApplicationController # get /open-houses def index @open_houses = OpenHouse.where("open_house_type = 'PUB' and open_house_date > '#{DateTime.now.strftime("%F")}'").reorder("open_house_date, start_time").all end # get /open-houses/:id def details @open_houses = OpenHouse.find(params[:id]) end end end
Version data entries
30 entries across 30 versions & 1 rubygems