title: undefined local variable or method `new_media_path' - resources to resource
body: <p>I have odd problem:</p>
  
  <p>After starting server I got this error:</p>
  
  <pre><code>undefined local variable or method `new_media_path'
  </code></pre>
  
  <p>To repair this i must go to routes.rb and change</p>
  
  <pre><code>resources :media
  </code></pre>
  
  <p>to</p>
  
  <pre><code>resource :media
  </code></pre>
  
  <p>and again to</p>
  
  <pre><code>resources :media
  </code></pre>
  
  <p>It's annoying. Any ideas to solve this?</p>