Skip to content

Commit

Permalink
Use params for links [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 25, 2023
1 parent a557d49 commit a5d7d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/pg_hero/home/system.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="content">
<p id="periods">
<% @periods.each do |name, options| %>
<%= link_to name, system_path(options) %>
<%= link_to name, system_path(params: options) %>
<% end %>
</p>
<% path_options = {duration: @duration, period: @period} %>
<% path_options = {params: {duration: @duration, period: @period}} %>

<h1>CPU</h1>
<div id="chart-1" class="chart" style="margin-bottom: 20px;">Loading...</div>
Expand Down

0 comments on commit a5d7d85

Please sign in to comment.