Added <% if @business['hours'] == nil %> in `places#show page
So if the restaurant has no listed hours there will not be an error and the hours will show on the pages that contain hours
I realized that the previous commit to solve this resulted in no hours ever being shown
Added <h1>Top Ten Restaurants close by </h1> to index
<% if @business['hours'] == nil %>
in `places#show page So if the restaurant has no listed hours there will not be an error and the hours will show on the pages that contain hoursI realized that the previous commit to solve this resulted in no hours ever being shown
<h1>Top Ten Restaurants close by </h1>
to indexmodified: app/views/places/index.html.erb modified: app/views/places/show.html.erb modified: lib/sample.rb modified: lib/yelp_helper.rb