I'm quite new to ruby and so have no idea to to approach this...please be kind.
I have a config file that I need to read and replace 2 values...
The block I need to update is:
rails_root = File.expand_path('../..', __FILE__)
if %w(development test).include?(ENV['RAILS_ENV'])
worker_processes 2
else
worker_processes 100
end
...snip...
I need to replace the values for "worker_processes" with new values...say 20 and 50 respectively...any help greatly appreciated. Thanks in advance!