Quick correction
This commit is contained in:
parent
c9ed8b2980
commit
5ab067edf2
@ -10,7 +10,7 @@ class StatsController < ApplicationController
|
||||
end
|
||||
|
||||
def set_local
|
||||
@regions = Event.joins(:region).group(:region, year_grouping).count
|
||||
@regions = Event.joins(:region).group(:region_id, year_grouping).count
|
||||
@city_events = Event.group(:city).having('count(city) > 3')
|
||||
.order('count(city) desc').count
|
||||
end
|
||||
|
@ -11,5 +11,5 @@
|
||||
#{Event.human_attribute_name(:submitter).concat(':').ljust 12 } #{@event.submitter}
|
||||
#{Event.human_attribute_name(:tags).concat(':').ljust 12 } #{@event.tags}
|
||||
#{Event.human_attribute_name(:description).concat(':').ljust 12}
|
||||
= wrap(strip_tags(@event.description)).gsub(/$/, ' ').gsub /^/, ' '
|
||||
= wrap(strip_tags(@event.description).gsub(/ /, '')).gsub /^/, ' '
|
||||
=====================================================
|
||||
|
Loading…
Reference in New Issue
Block a user