Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This error:</p> <pre><code>ActionController::RoutingError: No route matches {:controller=&gt;"appointments", :id=&gt;"281110143", :action=&gt;"show", :doctor_id=&gt;2} </code></pre> <p>Shows that you're making a request to a controller called <code>AppointmentsController</code>, but judging by your routes:</p> <pre><code>new_admin_doctor_appointments GET /admin/doctors/:doctor_id/appointments/new(.:format) {:controller=&gt;"admin/appointments", :action=&gt;"new"} edit_admin_doctor_appointments GET /admin/doctors/:doctor_id/appointments/edit(.:format){:controller=&gt;"admin/appointments", :action=&gt;"edit"} admin_doctor_appointments GET /admin/doctors/:doctor_id/appointments(.:format) {:controller=&gt;"admin/appointments", :action=&gt;"show"} PUT /admin/doctors/:doctor_id/appointments(.:format) {:controller=&gt;"admin/appointments", :action=&gt;"update"} DELETE /admin/doctors/:doctor_id/appointments(.:format) {:controller=&gt;"admin/appointments", :action=&gt;"destroy"} POST /admin/doctors/:doctor_id/appointments(.:format) {:controller=&gt;"admin/appointments", :action=&gt;"create"} </code></pre> <p>That route is only available within the admin namespace, i.e. <code>Admin::AppointmentsController</code>.</p> <p>I'm going to bet that you're doing something like <code>describe AppointmentsController</code> rather than <code>describe Admin::AppointmentsController</code>. I don't know for certain because you've not included the critical part that is the test itself.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload