title: The action 'destroy' could not be found for SampleformsController
body: <p>When I want to delete my data in database I got this error:</p>
  
  <pre><code>Unknown action
  The action 'destroy' could not be found for SampleformsController
  </code></pre>
  
  <p>My controller destroy action code looks like this:</p>
  
  <pre><code>def destroy
    @sampleform = Sampleform.find_by_id(params[:id])
  
    if @sampleform.destroy
      redirect_to sampleforms_path
    end
  end
  </code></pre>
  
  <p>again I got that same error</p>
  
  <p>again I got that same error</p>