<%= f.label "Title:" %>
<%= f.text_field :title %><br />
<%= f.label "URL:" %>
<%= f.text_field :url %><br />
<%= f.label :description %>:
<%= f.text_area :description %><br />
<%= f.label "Select programming language:" %>
<%= f.collection_select(:language_id, Language.all, :id, :name, {:include_blank => "Please select"})%><br  />
<%= f.label "Topics it covers:" %>
<%= f.collection_check_boxes :topic_ids, Topic.all, :id, :name%><br />
<%= f.fields_for :topics, @resource.topics.build do |topic_fields| %>
  <%= topic_fields.label "Or add a new topic:" %>
  <%= topic_fields.text_field :name %>
<% end %><br />
<%= f.collection_check_boxes :course_ids, Course.all, :id, :title%><br />

<%= f.label "Title:" %>
<%= f.text_field :title %><br />
<%= f.label "URL:" %>
<%= f.text_field :url %><br />
<%= f.label :description %>:
<%= f.text_area :description %><br />
<%= f.label "Select programming language:" %>
<%= f.collection_select(:language_id, Language.all, :id, :name, {:include_blank => "Please select"})%><br  />
<%= f.label "Topics it covers:" %>
<%= f.collection_check_boxes :topic_ids, Topic.all, :id, :name%><br />
<%= f.fields_for :topics, @resource.topics.build do |topic_fields| %>
  <%= topic_fields.label "Or add a new topic:" %>
  <%= topic_fields.text_field :name %>
<% end %><br />

Remove course selection from form partial.
Remove course selection from form partial.
