Update views_generator.rb

remove unnecessary code