I am trying to render the number of rows found in a table in my view but for some reason I am unable to get the output I expected. The pluralization is working because there are 2 rows counted but I cannot seem to get the number two to show up. The ouput from the cod below is
0 locations and it should be 2 locations
Here is what I have:
#In my controller:
@locations = Location.count(:all, :conditions => ['user_id =?'
#in my view
<%= pluralize(@locations, 'location') %>