fully working example Ruby on Rails application, with elasticsearch integration (ES template)