This works just fine in my dev environment (I am rewriting a css file):
File.open(RAILS_ROOT + '\public\stylesheets\colors.css', 'w') do |w|
w.puts 'some_text'
end
But when I run it in my prod environment (on Dreamhost) nothing happens - the file is not modified - nothing.
What I need to be able to do is to overwrite an existing file, which I can't seem to figure out in production. I even set the chmod to 777 and that didn't change anything, it also doesn't appear that anything is showing up in the logs?
I am a noob in RoR, I appreciate the help.