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.38 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.37 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.36 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.35 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.34 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.33 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.32 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.31 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.30 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.29 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.28 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.27 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.26 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.25 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.24 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.22 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.21 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.20 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.19 app/controllers/caboose_rets/open_houses_controller.rb
caboose-rets-0.0.18 app/controllers/caboose_rets/open_houses_controller.rb