title: Ruby on Rails Titleize Underscore,Hyphenated and Single Quote Name
body: <p>Rails titleize method removes hyphen and underscore, and capitalize method does not capitalize the word comes after hyphen and underscore. I wanted to do something like following:</p>
  
  <pre class="lang-none prettyprint-override"><code>sam-joe denis-moore      → Sam-Joe Denis-Moore
  sam-louise o'donnell     → Sam-Louise O'Donnell
  arthur_campbell john-foo → Arthur_Campbell John-Foo"
  </code></pre>
  
  <p>What is pattern that need to use on gsub below for this:</p>
  
  <pre><code>"sam-joe denis-moore".humanize.gsub(??) { $1.capitalize }
  # =&gt; "Sam-Joe Denis-Moore"
  </code></pre>
  
  <p>Any help is really appreciated</p>