Rails 3.1 throws a Errno::ENOTDIR if files are put in assets directories #2324

merged 1 commit into from Aug 1, 2011

2 participants



We were writing documentation for the Toronto Ruby Hack Fest for Rails 3.1 when I noticed that putting a file in any assets/ directory will display an error as Sprockets is expecting a directory.

After further inspection, Rails only checks if the file exists and not if they are directories.

I've modified the code and tested to make sure that Rails only adds directories to Sprockets.


@spastorino spastorino merged commit 1711731 into rails:3-1-stable Aug 1, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment