<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
<li><%= link_to "Combine selections into a new collection", '#',
- 'data-href' => combine_selected_path(
- action_href: actions_path,
- action_method: 'post',
- action_data_from_params: ['selection'],
- ),
+ 'data-href' => combine_selected_path,
'data-selection-param-name' => 'selection[]',
'data-selection-action' => 'combine-collections',
'data-remote' => true,
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
<li><%= link_to "Combine selections into a new collection", '#',
- 'data-href' => combine_selected_path(
- action_href: actions_path,
- action_method: 'post',
- action_data_from_params: ['selection'],
- ),
+ 'data-href' => combine_selected_path,
'data-selection-param-name' => 'selection[]',
'data-selection-action' => 'combine-collections',
'data-remote' => true,
<ul class="dropdown-menu" role="menu">
<li><%= link_to "Combine selections into a new collection", '#',
'data-href' => combine_selected_path(
- action_href: actions_path,
- action_method: 'post',
- action_data_from_params: ['selection'],
action_data: {selection_param: 'project'}.to_json
),
'data-selection-param-name' => 'selection[]',