title: Routing Error! "ActionController::RoutingError (No route matches [PATCH]"
body: <p>When a user clicks submit with this _form:</p>
  
  <pre><code>&lt;%= simple_form_for(@routine, url: create_freebie_routine_path(params[:id])) do |f| %&gt;
  
    &lt;%= f.date_select %&gt;
  
  &lt;% end %&gt;
  </code></pre>
  
  <p>He gets this error: <code>ActionController::RoutingError (No route matches [PATCH] "/routines/2/create_freebie")</code></p>
  
  <p>I can't figure out how to fix it. The idea is that a user will submit the above _form with entered <code>freebie_date</code> and then the controller will add +1 <code>freebie</code> via the <code>create_freebie</code> action to the updated <code>@routine</code></p>
  
  <p><strong>routes</strong></p>
  
  <pre><code>  resources :routines do
      member do
        get :new_freebie
        post :create_freebie
      end
    end
  </code></pre>
  
  <p><strong>routines_controller</strong></p>
  
  <pre><code>  def new_freebie
      @routine = current_user.routines.find(params[:id])
      @routine.freebie_date = Date.yesterday
      respond_modal_with @routine
    end
  
    def create_freebie
      @routine = current_user.routines.find(params[:id])
      @routine.freebie = @routine.freebie + 1
      @routine.save
      respond_modal_with @routine, location: root_path
      flash[:alert] = 'Freebie added'
    end
  </code></pre>
  
  <p>Thanks for your help!</p>