]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/notes_controller.rb
Preserve lat and lon values as entered for reverse searches
[rails.git] / app / controllers / notes_controller.rb
index 97efc3eda8128f79bbd0a870b347cebc0c384501..26d27692e5cd5804386aca35191e68e26bbd7dbe 100644 (file)
@@ -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