Fixed! The view: /app/views/users/upload_profile_photo.html.haml ChangngProcess still fails with a rollback, but I'm working on that. More to follow.
thx! On Oct 26, 1:25 pm, Bruno Bornsztein <bruno.bornszt...@gmail.com> wrote: > Yeah; that looks like an attachment_fu attribute. What view template is this > coming from? You should check that the form is passing the file upload to > the 'photo' attribute (see users/edit.html.haml for an example). Thanks, > Bruno > > > > > > > > On Wed, Oct 26, 2011 at 2:46 PM, d00n <mike.muld...@gmail.com> wrote: > > Hello all! > > > When uploading a profile photo via > > UsersController#upload_profile_photo, this warning causes the upload > > to fail: > > > WARNING: Can't mass-assign protected attributes: uploaded_data > > > There is no 'uploaded_data' attribute for user or photo. It's defined > > in the form used to handle the upload: > > > Started PUT "/users/testtest2/upload_profile_photo" for 127.0.0.1 at > > 2011-10-26 12:40:48 -0700 > > Processing by UsersController#upload_profile_photo as HTML > > Parameters: {"utf8"=>"✓", "authenticity_token"=>"cbygWvM/hQt/ > > w8BRGxZH8gHy8cO5HndMwA48y0PYA9I=", > > "photo"=>{"uploaded_data"=>#<ActionDispatch::Http::UploadedFile: > > 0xac39f4c @original_filename="1.jpg", @content_type="image/jpeg", > > @headers="Content-Disposition: form-data; name=\"photo[uploaded_data] > > \"; filename=\"1.jpg\"\r\nContent-Type: image/jpeg\r\n", > > @tempfile=#<File:/tmp/RackMultipart20111026-23909-vookc4>>}, > > "commit"=>"Save Changes", "id"=>"testtest2"} > > > Is this a paperclip issue? Any suggestions? > > > thx! > > Mike > > > -- > > You received this message because you are subscribed to the Google Groups > > "CommunityEngine" group. > > To post to this group, send email to communityengine@googlegroups.com. > > To unsubscribe from this group, send email to > > communityengine+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/communityengine?hl=en. -- You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to communityengine@googlegroups.com. To unsubscribe from this group, send email to communityengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/communityengine?hl=en.