app/views/data_objects/shift_in_location.html.erb
<% title "Data Objects" %>
<%= form_tag '/data_objects/index' do %>
Group by
<%= select_tag :group_by, options_for_select(@group_type_options, @selected_type) %>
<%= submit_tag "Update" %>
<% end %>
<br>
<% if DataType.first %>
<%= render(partial: "data_objects_table" , collection: @types_objects_hash) %>
<br>
<%= link_to "New Data Object", new_data_object_path %>
<% else %>
You must set up a <%= link_to "data type", new_data_type_path %> before you can create any data objects.
<% end %>