From 536d80c2b2de46800aa3906e12dac6c57d8f72e4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 30 Sep 2013 08:35:34 +0100 Subject: [PATCH 1/1] Fix typo --- app/controllers/browse_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2