Ruby on Rails - Can't seem to figure out how to write/modify files on the live site


#1

This works fine in my dev environment:

File.open(RAILS_ROOT + '\public\stylesheets\colors.css', 'w') do |w| w.puts 'some_text' end

But when I move it to production, nothing is actually ever changed or written. I even set the permissions to ‘777’ on the file (it already exists) but nothing gets modified. Any ideas?


#2

has to switch ‘’ to ‘/’