title: Ruby/Rails working with gsub and arrays
body: <p>I have a string that I am trying to work with in using the gsub method in Ruby. The problem is that I have a dynamic array of strings that I need to iterate through to search the original text for and replace with.</p>
  
  <p>For example if I have the following original string (This is some sample text that I am working with and will hopefully get it all working) and have an array of items I want to search through and replace.</p>
  
  <p>Thanks for the help in advance!</p>