Error, Ruby on Rails: Encoding::UndefinedConversionError in CoursesController#attachment “\xFF” from ASCII-8BIT to UTF-8
问题 I'd like to make a simple file uploader using tag_form on Rails 3.2.8. But when I try to submit a image file, I get an error saying Error Message (when I try to submit a image file) Encoding::UndefinedConversionError in CoursesController#attachment "\xFF" from ASCII-8BIT to UTF-8 I'd appreciate it if you help me with this problem. Here's my codes. app/view/show.html.erb <%= form_tag(attachment_course_path, :action=>'attachment', :multipart => true) do %> <div class="field"> <%= label_tag