fix some indentation in resource.rb