Continue extraction into gem.

  * Rails integration