projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
554a7c9
)
Fix typo
author
Tom Hughes
<tom@compton.nu>
Mon, 30 Sep 2013 07:35:34 +0000
(08:35 +0100)
committer
Tom Hughes
<tom@compton.nu>
Mon, 30 Sep 2013 07:35:34 +0000
(08:35 +0100)
app/controllers/browse_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/browse_controller.rb
b/app/controllers/browse_controller.rb
index 705078be7ba36e08a146b1c715130e7ad4ed13ca..fc23ebc1fe9e87f23a8ac98a294bf28d91e813a7 100644
(file)
--- 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