X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7de9f6a977fe2fd0f8c4906b43946d472e4eb880..257ecde90d81a23b9cfcd2376ee39374b8fa2e7b:/app/controllers/notes_controller.rb?ds=sidebyside diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index 97efc3eda..26d27692e 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -16,6 +16,8 @@ class NotesController < ApplicationController ## # Display a list of notes by a specified user def index + param! :page, Integer, :min => 1 + @params = params.permit(:display_name) @title = t ".title", :user => @user.display_name @page = (params[:page] || 1).to_i