title: Change namespace in Rails
body: <p>I have namespaced routing like </p>
  
  <blockquote>
    <p>/example/list/</p>
  </blockquote>
  
  <pre><code>namespace :example do
    resource :list
    ...
  end
  </code></pre>
  
  <p>Need to change it to </p>
  
  <blockquote>
    <p>/newexample/list/</p>
  </blockquote>
  
  <p>I can certainly do it by changing example => newexample in routes.rb, but  module <strong>example</strong> is used vastly in the project. so changing it by this method would require to update almost each Controller, Js, CSS file.</p>
  
  <p>Is there any way to map newexample => example namespace in routes.rb? or Any other out of box solution? </p>