An application controller method requires two arguments generate_municipal_withins(municipal, radius) but in a separate controller action, calling this method is yielding
ArgumentError (wrong number of arguments (given 1, expected 2)):
from
@municipals.each do |municipal|
generate_municipal_withins(municipal: municipal, radius: 70)
My assumption is that it is the former for if this is modified to generate_municipal_withins(municipal: municipal, 70) the same error is generated.
Thus it appears the member of the collection is not being passed as an argument. How should the syntax be fixed?