Hi all,
I'm currently writing an app that pulls all the tweets from twitter with links in them and puts them into our searchable database.
Our database tables look like this:
Tweets content tweet_id Links url title count User username user_image
We'd like to be able to search through the tweet.content column for a search term and have the results ordered by the link.count
What is the best way to set up the model associations to accomplish this? And what is the best way to perform the search? I've looked into acts_as_ferret, but I don't know how I would sort the results.
Thanks, Daniel Erickson