Update rest.rb