app/views/shift_preferences/new.html.erb
<h1 id="page_title">Creating Shift Preferences for <%= @week_template.name%></h1>
<%= form_for([@week_template, @shift_preference]) do |f| %>
<%= f.error_messages %>
<%= render partial: 'form', locals: {f: f} %>
<p>
<%= f.submit 'Create' %>
</p>
<% end %>
<%= link_to 'Back', template_shift_preferences_path(@week_template) %>