Wednesday 22 February 2012

A quick Ruby on Rails Paperclip tip here.

If you have setup your model fields avatar_file_name etc but cannot get the model to save. Make sure you have the entry:

:html=>{:multipart => true}

in your form declaration!

No comments:

Post a Comment

Note: only a member of this blog may post a comment.