Having a problem with a Paperclip upload in Rails 4 - failing on ForbiddenAttributesError (strong parameters validation). Have the latest paperclip gem and latest rails 4 g
I understand what happened here now - and will leave this up in the hope it helps someone else. I was porting code from a rails 3 project and missed the line that created the image:
@image = current_user.images.new(params[:image])
In rails 4 this is incorrect (I beleive). I updated to
@image = current_user.images.new(image_params)
and that solved my problem.