I would prefer to make it unintrusive, maybe using a wrapper div and a data-attribute.

e.g.
```ruby
content_tag :div, :data => {:supports_update => @compute_resource.supports_update?} do
   # fields go here
end
```

and then on your javascript
```javascript
$(.form).find('[data-supports-update=false]').attr('disabled', true)
```

not tested at all, and open for feedback.. @abenari ?