Override nested named route parameters
<p>Coming from the Rails <a href="http://guides.rubyonrails.org/routing.html#overriding-named-route-parameters" rel="nofollow">docs</a>, one can simply do this:</p>

<pre><code>resources :videos, param: :identifier
</code></pre>

<p>But, what if I have nested resources? Here are the routes:</p>

<pre><code>resources :videos
  resources :images
end
</code></pre>

<p>The above generate routes like:</p>

<pre><code>video_images GET  /videos/:video_id/images(.:format)                  images#index
</code></pre>

<p>How can I override <code>:video_id</code> from the route? I can't seem to be able to use <code>param</code> in this case.</p>