I am getting this error: NoMethodError at ... undefined method
<p>I am a newbie on rails. I am building an app with Users, Restaurants, and Reservations. Everything was fine until I added the reservations and associations. </p>

<p>I am using nested resources for reservations and restaurants. My routes file has this. </p>

<pre><code>resources :restaurants do
  resources :reservations
end
</code></pre>

<p>I added a reservations link on my restaurant view to link to <strong>new_restaurant_reservation</strong>. When I click on that link, it gives me this error:</p>

<pre><code>NoMethodError at /restaurants/14/reservations/new
undefined method `reservations_path' for #&lt;#&lt;Class:0x007fc50d96ba98&gt;:0x007fc51001a518&gt;
Did you mean?  resolve_asset_path
</code></pre>

<p>Please help and let me know what I am doing wrong. </p>

<p>Thanks. </p>