Skip to content

Commit

Permalink
revised view bug
Browse files Browse the repository at this point in the history
  • Loading branch information
brwali committed Nov 2, 2024
1 parent 15a8635 commit ad2c9f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def paginate_list

# Sets the number of users to display per page based on the 'per_page' parameter from the request.
# If no 'per_page' parameter is provided, it defaults to '2', which corresponds to displaying 50 users on one page.
@per_page = params[:per_page] || '2'
@per_page = params[:per_page] || 25

# search for corresponding users
# users = User.search_users(role, user_id, letter, @search_by)
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<%= submit_tag("Search") %>

<%= label_tag :per_page, 'Users per page: ' %>
<%= select_tag(:per_page, options_for_select(@pagination_options, selected: params[:per_page] || '25'), onchange: 'this.form.submit()') %>
<%= select_tag(:per_page, options_for_select(@pagination_options, selected: params[:per_page] || 25), onchange: 'this.form.submit()') %>
<% end %>

<div class="exp">
Expand Down

0 comments on commit ad2c9f2

Please sign in to comment.