Ruby on Rails backend for SMHTML7