And here's what params[:attachment] looks like for log/journal/attachment: {"attachment"=>"random.jpg", "comment"=>"asdf"}
You need a multi-part form. Add :multipart=> true to your form_tag.
And here's what params[:attachment] looks like for log/journal/attachment: {"attachment"=>"random.jpg", "comment"=>"asdf"}
You need a multi-part form. Add :multipart=> true to your form_tag.