Fixed url_for() so that links/redirects to workbench records work as expected.
[arvados.git] / apps / workbench / app / views / application / _selection_checkbox.html.erb
index cb0ec829e7ae7ac80611efaf9978f0ee525fd920..4d47d892c56817386982489119855e25146c99bb 100644 (file)
@@ -1,6 +1,8 @@
+<%if object %>
 <%= check_box_tag 'uuids[]', object.uuid, false, {
   :class => 'persistent-selection', 
   :friendly_type => object.class.name,
   :friendly_name => object.selection_label,
   :href => "#{url_for controller: object.class.name.tableize, action: 'show', id: object.uuid }" 
 } %>
+<% end %>