added ruby to gemfile
removed ellipsis char from words controller
refactored code for postgresql