title: Shrine 2.1.0

Improvements

Backwards compatibility

form_for @photo do |f|
  f.hidden_field :cached_image_data
  f.file_filed :image
end

The recommended and correct way now to build forms is by keeping the #<attachment>= setter:

form_for @photo do |f|
  f.hidden_field :image, value: @photo.cached_image_data, id: nil
  f.file_filed :image
end