Update preview.rb