- @comments, @newer_comments_id, @older_comments_id = get_page_items(comments, :includes => [:user])
+ redirect_to diary_entry_path(@entry.user, @entry, :anchor => "comment#{@diary_comment.id}")
+ else
+ render :action => "new"
+ end
+ rescue ActiveRecord::RecordNotFound
+ render "diary_entries/no_such_entry", :status => :not_found