Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top month fix #2 #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

JsonLitz
Copy link

@JsonLitz JsonLitz commented Sep 2, 2016

Fix issue #2

Removed "+1" from: lib/archives_sidebar/app/views/archives_sidebar/_content.html.erb line 8.

It seems like the whoever wrote the code made an error in syntax. Adding +1 here created an off-by-1 error. Removing this +1 fixed the issue and now the top month is populated with a post.

@JsonLitz JsonLitz changed the title Top month fix Top month fix #2 Sep 2, 2016
@@ -17,7 +17,8 @@ def index
@statsdrafts = Article.drafts.where('created_at > ?', today).count
@statspages = Page.where('published_at > ?', today).count
@statuses = Note.where('published_at > ?', today).count
@statuserposts = Article.published.where('published_at > ?', today).count(conditions: { user_id: current_user.id })
# app/controllers/admin/dashboard_controller.rb#L20
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix that Nathan posted to for the label error that denied access to admin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants