Does Paperclip automatically clean up filenames?
问题 I'm using Thoughtbot's Paperclip gem to handle file uploads. I'm finding that when I upload a file with spaces in the filename, it gets stored with the spaces replaced with underscores. That's good. I also tried uploading a file with special characters like ~ and so on and they all got replaced with underscores. Great. Exactly what I want. But why is it happening? All I'm doing in my model is... has_attached_file( file_somefile, :path => ":rails_root/public/system/other/path/elements/