I’m building an app where users can submit a URL, and I want to find out how many of a specific URL have been submitted on the site in total, and then arrange them in a list ordered by the number of times they’ve been submitted.
Any ideas? Using Rails 3.0.6
If you’re allowing duplicate urls, and assuming you have a
Urlclass with aurlcolumnIf you have unique urls and a join table between urls and users (which is what you should be doing):