Fix typo
This commit is contained in:
parent
554a7c9d47
commit
536d80c2b2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue