@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
@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
rescue ActiveRecord::RecordNotFound
render :action => "not_found", :status => :not_found
end
rescue ActiveRecord::RecordNotFound
render :action => "not_found", :status => :not_found
end