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

Version Path
caboose-rets-0.0.16 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.15 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.14 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.13 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.12 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.11 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.10 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.9 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.8 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.7 app/controllers/caboose_rets/open_houses_controller.rb