title: undefined method `bookings_path'
body: <p>I have a form to fill in booking details, but I'm getting the following error:</p>
  
  <pre><code>NoMethodError in Bookings#new
  undefined method `bookings_path'
  </code></pre>
  
  <p>This happened after change the routes.rb file, to nest the booking resources in the user resource.</p>
  
  <p>My form file code is the following:</p>
  
  <pre><code>&lt;% provide(:title, 'Book Now!') %&gt;
  
  &lt;section id="book-now"&gt;
  
      &lt;%= form_for(@booking) do |f| %&gt;
  
      &lt;header&gt;
          &lt;h1&gt;Edit booking&lt;/h1&gt;
      &lt;/header&gt;
  
          &lt;%= f.text_field :name,         placeholder: "Name" %&gt;
          &lt;%= f.text_field :check_in,     placeholder: "Check-in" %&gt;
          &lt;%= f.text_field :check_out,    placeholder: "Check-out" %&gt;
  
          &lt;%= f.submit "Save" %&gt;     
  
      &lt;% end %&gt;
  
  &lt;/section&gt;
  </code></pre>
  
  <p>My booking controller code is:</p>
  
  <pre><code>class BookingsController &lt; ApplicationController
  
    def new
      @booking = Booking.new
    end
  
    def create
      @booking = Booking.new(params_bookings)
      @booking.user_id ||= current_user.id  
        if @booking.save
            redirect_to user_path(@booking.user_id)
        else
          # render 'new'
        end
      end
    end
  
    private
  
    def params_bookings
      params.require(:booking).permit(:check_in, :check_out, :name, :user_id)
    end
  
  end
  </code></pre>
  
  <p>and my routes.rb file looks like this:</p>
  
  <pre><code>Hightide::Application.routes.draw do
  
    resources :users do
      resources :bookings
  
    end
  
    match '/users/:user_id/bookings/new',       to: 'bookings#new', via: [:post, :get]
  </code></pre>