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

This works fine in my dev environment: + '\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?

has to switch ‘’ to ‘/’