Ruby on Rails implementation of Barview