codeforboston / legalhousing

MIT License
10 stars 27 forks source link

Added Listing.date range method #104

Closed smithWEBtek closed 7 years ago

smithWEBtek commented 7 years ago

Listing.date_range, polls the PhraseListing table, for listings with 'listed_at' date within dates passed in. Defaults are currently hard coded to include the years 2015 to 2018, if no dates are passed in. Returns an array of listings: @listings_in_range or Returns "No listings found....msg"