Studyworx re-write for Rails 3.1