Parametrize Target routes with :date
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
<% else %>
|
||||
<% button_classes += ' icon-bullet-closed' %>
|
||||
<% end %>
|
||||
<%= link_to '', toggle_exposure_goal_path(@goal, quantity_id: q.id),
|
||||
<%= link_to '', goal_toggle_exposure_path(@goal, quantity_id: q.id),
|
||||
{class: button_classes, method: :post, remote: true} %>
|
||||
</div>
|
||||
<%= q.name %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<fieldset id="options" class="collapsible">
|
||||
<legend onclick="toggleFieldset(this);"><%= l(:label_options) %></legend>
|
||||
<div>
|
||||
<%= form_tag toggle_exposure_goal_path(@goal, @view_params),
|
||||
<%= form_tag goal_toggle_exposure_path(@goal, @view_params),
|
||||
id: 'toggle-exposure-form', name: 'toggle-exposure-form',
|
||||
method: :post, remote: true do %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user