From: Tom Hughes Date: Mon, 30 Sep 2013 07:35:34 +0000 (+0100) Subject: Fix typo X-Git-Tag: live~4715 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/536d80c2b2de46800aa3906e12dac6c57d8f72e4?hp=554a7c9d47613cf486589f9e5e8023629713c7fe Fix typo --- diff --git a/app/controllers/browse_controller.rb b/app/controllers/browse_controller.rb index 705078be7..fc23ebc1f 100644 --- a/app/controllers/browse_controller.rb +++ b/app/controllers/browse_controller.rb @@ -82,7 +82,7 @@ class BrowseController < ApplicationController @note = Note.find(params[:id]) @title = "#{I18n.t('browse.note.title')} | #{@note.id}" @next = Note.where("status != 'hidden' AND id > ?", @note.id).order(:id).first - @prev = Note.where("status != 'hidden' AND id < ?", @note.id).order(:id => @desc).first + @prev = Note.where("status != 'hidden' AND id < ?", @note.id).order(:id => :desc).first rescue ActiveRecord::RecordNotFound render :action => "not_found", :status => :not_found end