I have a script(script/seed.rb), working with SCV file. I want to use "update_my_controller_name_path" helper instead of "localhost:3000/update". A simple helpers, such as "root_path" and etc. didn't work. The question is how can I simply get some controller and action, which I want to request instead of "localhost:3000/update" ? Here is my code(script/seed.rb):
require 'rest_client'
require 'csv'
CSV.foreach('data/seed_data.csv', headers: true) do |row|
RestClient.get 'localhost:3000/update', :params => {:temp => row['temp'], :hum => row['hum']}
end