app/views/notable_web/home/index.html.erb in notable_web-0.1.1 vs app/views/notable_web/home/index.html.erb in notable_web-0.1.2

- old
+ new

@@ -12,11 +12,11 @@ <tbody> <% Notable::Request.select("note, action, COUNT(DISTINCT (user_type || user_id)) as count_user, COUNT(*) as count_all").where(note_type: params[:note_type]).group([:note, :action]).order("count_all desc").each do |agg| %> <tr> <td> <%= agg.note %> <span style="color: #999;"><%= agg.action %></span> - <%= link_to "view", @safe_params.merge(note: agg.note, action_name: agg.action) %> + <%= link_to "view", safe_params.merge(note: agg.note, action_name: agg.action) %> </td> <td style="text-align: right;"><%= agg.count_user %></td> <td style="text-align: right;"><%= agg.count_all %></td> </tr> <% end %> @@ -29,10 +29,10 @@ <% end %> <%= render partial: "stream", locals: {requests: @requests, show_user: !(params[:user_id] && params[:user_type])} %> <% if @requests.current_page != 1 %> - <%= link_to "Prev", @safe_params.merge(page: @requests.current_page - 1), style: "margin-right: 20px;" %> + <%= link_to "Prev", safe_params.merge(page: @requests.current_page - 1), style: "margin-right: 20px;" %> <% end %> <% if @requests.size == @requests.limit_value %> - <%= link_to "Next", @safe_params.merge(page: @requests.current_page + 1) %> + <%= link_to "Next", safe_params.merge(page: @requests.current_page + 1) %> <% end %>