Commit cbb5c943a3be00da72c268746c519f4a399111f0
Committed by
Rafael Manzo
1 parent
55d082a4
Exists in
colab
and in
4 other branches
Fixed compound metric configuration show acceptance test
Signed off by: Diego Araújo <diegoamc90@gmail.com>
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
app/views/compound_metric_configurations/show.html.erb
| ... | ... | @@ -23,7 +23,7 @@ |
| 23 | 23 | |
| 24 | 24 | <p> |
| 25 | 25 | <strong>Code:</strong> |
| 26 | - <%= @compound_metric_configuration.code %> | |
| 26 | + <%= @compound_metric_configuration.metric.code %> | |
| 27 | 27 | </p> |
| 28 | 28 | |
| 29 | 29 | <p> |
| ... | ... | @@ -44,8 +44,8 @@ |
| 44 | 44 | <hr> |
| 45 | 45 | |
| 46 | 46 | <h2> Ranges </h2> |
| 47 | -<% if kalibro_configuration_owner? @compound_metric_configuration.configuration_id %> | |
| 48 | - <%= link_to 'Add Range', kalibro_configuration_metric_configuration_new_kalibro_range_path(@compound_metric_configuration.configuration_id, | |
| 47 | +<% if kalibro_configuration_owner? @compound_metric_configuration.kalibro_configuration_id %> | |
| 48 | + <%= link_to 'Add Range', kalibro_configuration_metric_configuration_new_kalibro_range_path(@compound_metric_configuration.kalibro_configuration_id, | |
| 49 | 49 | @compound_metric_configuration.id), class: 'btn btn-info' %> |
| 50 | 50 | <% end %> |
| 51 | 51 | |
| ... | ... | @@ -69,9 +69,9 @@ |
| 69 | 69 | <hr> |
| 70 | 70 | |
| 71 | 71 | <p> |
| 72 | - <%= link_to 'Back', kalibro_configuration_path(@compound_metric_configuration.configuration_id), class: 'btn btn-default' %> | |
| 73 | -<% if kalibro_configuration_owner? @compound_metric_configuration.configuration_id %> | |
| 74 | - <%= link_to 'Destroy Metric Configuration', kalibro_configuration_metric_configuration_path(@compound_metric_configuration.configuration_id, | |
| 72 | + <%= link_to 'Back', kalibro_configuration_path(@compound_metric_configuration.kalibro_configuration_id), class: 'btn btn-default' %> | |
| 73 | +<% if kalibro_configuration_owner? @compound_metric_configuration.kalibro_configuration_id %> | |
| 74 | + <%= link_to 'Destroy Metric Configuration', kalibro_configuration_metric_configuration_path(@compound_metric_configuration.kalibro_configuration_id, | |
| 75 | 75 | @compound_metric_configuration.id), method: :delete, data: { confirm: 'Are you sure that you want to destroy this Metric Configuration?' }, |
| 76 | 76 | class: 'btn btn-danger' %> |
| 77 | 77 | <% end %> | ... | ... |