app/views/tasks/_collection.html.erb
<% options ||= {} %>
<% options = {
current_parent: parent, show_title: true, append_new_link: true,
columns: ['name', 'story_id']
}.merge(options) %>
<%= render partial: 'shared/collection/table', locals: {
type: 'tasks', collection: collection, columns: options[:columns],
options: {
append_new_link: options[:append_new_link], show_title: options[:show_title],
current_parent: options[:current_parent]
}
} %>