minor, but brackets? respond_to?(:total_entries)  ...given that you chose to use that style few lines above on line 35