title: Make a route_param embedded into a resource a string
body: <p>I am trying to make a route parameter embedded inside a resource as a string.</p>
  
  <pre><code>class Example &lt; Grape::API
    resource 'a/:param/b' do
      # code
    end
  end
  </code></pre>
  
  <p>One way I could think of is by splitting the resource into route_param blocks and make it a string but this will introduce a lot of nesting which would defeat the purpose of the resource having an embedded route_param and thereby preventing the nesting. </p>
  
  <pre><code>class Example &lt; Grape::API
    resource 'a' do
      route_param :param, type: String do
        resource 'b' do
          # code
        end
      end
    end
  end
  </code></pre>
  
  <p>Another way I could think of is by explicitly defining in a param block which would potentially duplicate a lot of code.</p>
  
  <pre><code>class Example &lt; Grape::API
    resource 'a/:param/b' do
      params do
        requires :param,
                 type: String
      end
      # code
    end
  end
  </code></pre>
  
  <p>Is anybody aware of a different way? Thanks!</p>