Merge pull request #287 from pleary/paths

Fixed issue with will_paginate and .to_a.total_entries, commented