Update resource.rb