% unless @instructors.nil? %>
Instructors
<% @instructors.each do |instructor| %>
<%= render partial: 'shared/instructor', object: instructor %>
<% end %>
<% end %>
<% unless @courses.nil? %>
Courses
<% @courses.each do |course| %>
<%= render partial: 'shared/course', object: course %>
<% end %>
<% end %>
<% if @courses.nil? && @instructors.nil? %>
Sorry, we couldn't find anything matching your search.
Please try again!
<% end %>
<%= javascript_include_tag 'search' %>
<%= stylesheet_link_tag 'search' %>