Search code examples
ruby-on-railspapercliprubymine

RubyMine doesn't recognize directory created by Paperclip gem


I am using the Paperclip gem to upload images. When I upload an image, Paperclip uses its default upload location which is at /public/system. I can navigate to the directory on Mac OSX and see the uploaded image and plus the image is successfully displayed on web page. However, RubyMine does not show the directory or image:

enter image description here

Why doesn't RubyMine recognize the directory that Paperclip created?


Solution

  • You probably need to refresh the directory tree. The IDE probably doesn't know about the directory because you didn't create the directory in the IDE; another application created the directory.

    Another possibility is that the public/system directory is in your gitignore file and RubyMine might ignore files that are in that. I'm not positive about that because I'm not that familiar with RubyMine.