Rectangle 27 0

File upload with Rails 4, Strong Parameters and Carrierwave?

params.permit( ..., :photos_attributes => ['id', 'title', 'image', '_destroy'])

But looks like either Carrierwave or Nested Form should be updated for Rails 4 first. It simply tries to save an empty image all the time which I kinda eliminated with :reject_if, but still it is not 100 working.

This worked with the nested attributes: