Rails and file upload

software development



I have a brand new rails app with a form allowing users to upload files. It works great on my local machine (Windows, unfortunately), but it doesn’t on dreamhost. I call FileUtils.mkdir_p:
FileUtils.mkdir_p "public/records/player#{player_id}"
to create a path under public but that path is never created. I have no idea why. I tried changing the permissions on the records directory but the problem remains.

Any idea would be greatly appreciated!