Mounting Sinatra app on rails 5
<p>I searched the web and don't know why i am getting this errors...</p>

<p>Im trying to mount a Sinatra app that i have to refactor into a rails app so i can do the transition smoothly, so i created a dummy project to test.</p>

<p>My routes file:</p>

<pre><code>Rails.application.routes.draw do   
  match "/sinatra" =&gt; SinatraApp, :anchor =&gt; false 
end
</code></pre>

<p>Sinatra app:</p>

<pre><code>class SinatraApp &lt; Sinatra::Base
  get "/" do
    "Hello Sinatra World"
  end
end
</code></pre>

<p>The Sinatra app is located on the lib directory and it is auto loading correctly, i tried to add the Sinatra gem in the gemfile and i got a </p>

<blockquote>
  <p>"`require': cannot load such file -- rack/showexceptions (LoadError)"</p>
</blockquote>

<p>if i not add the gem on the gemfile, or use "require:nil" that error goes away and i got another one </p>

<blockquote>
  <p>"/active_support/dependencies.rb:293:in `require': cannot load such
  file -- rack/showexceptions (LoadError)"</p>
</blockquote>

<p>If i require 'sinatra' on the Sinatra app, it crashes again with another load error....</p>

<p>I need to have the Sinatra app running inside the rails app so i can navigate thought the Sinatra app like it was running without rails so i can test functionalities and migrate them to the rails app.</p>