diff --git a/app/controllers/venues_controller.rb b/app/controllers/venues_controller.rb index c368d81..2087ddc 100644 --- a/app/controllers/venues_controller.rb +++ b/app/controllers/venues_controller.rb @@ -1,11 +1,11 @@ class VenuesController < ApplicationController def index @q = Venue.ransack(params[:q]) - @venues = @q.result(:distinct => true).includes(:bookmarks, :neighborhood, :fans, :specialties).page(params[:page]).per(10) + @venues = @q.result(:distinct => true).includes(:bookmarks, :neighborhood, :fans, :specialties).page(params[:page]).per(100) @location_hash = Gmaps4rails.build_markers(@venues.where.not(:address_latitude => nil)) do |venue, marker| marker.lat venue.address_latitude marker.lng venue.address_longitude - marker.infowindow "
Narrow results:
+Narrow results:
-Name | -Address | -Neighborhood | -Actions | -
---|---|---|---|
<%= venue.name %> | -<%= venue.address %> | -- <% if venue.neighborhood.present? %> - - <%= venue.neighborhood.name %> - - <% end %> - | -- Show - Edit - Delete - | -