title: How to replace dash with a space from an Array
body: <p>How can I replace dashes with a spaces &amp; underscores with a commas at the same time?</p>
  
  <p>I was able to replace underscores with commas, but when I tried to reiterate through the array again it gave some funky results.</p>
  
  <p>Controller</p>
  
  <pre><code>  def activity_by_all_city
        @cities = ['Abilene_Texas','Akron_Ohio','Albuquerque_New-Mexico','Baton-Rouge_Louisiana']
    end 
  </code></pre>
  
  <p>View</p>
  
  <pre><code>&lt;% @cities.each do |city|%&gt;
      &lt;%= link_to city.gsub!(/_/, ', '), 'activities-'+city.parameterize %&gt;&lt;br&gt;
  &lt;% end %&gt;
  </code></pre>