I'm working on a social movie app in Rails. I do not wish to start from scratch on a database of movie info, so I've found a free and community-maintained movie database called The Movie Database (TMDB). It has a good API and documentation.
How would I design a Rails model that could be fully associated with my user model that can use a local record from my movies table, but if that record isn't there, make an API call to get the info?
I did a little research and it sounds like ActiveResource might do part of what I want, but it doesn't really offer associations with ActiveRecord.