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

Draft Blog Post Shows in Posts Loop #6

Open
jefffis opened this issue Feb 14, 2012 · 2 comments
Open

Draft Blog Post Shows in Posts Loop #6

jefffis opened this issue Feb 14, 2012 · 2 comments

Comments

@jefffis
Copy link

jefffis commented Feb 14, 2012

Even though I saved a new post, but did not publish it, it shows up when called with this:

<% @posts.each do | post | %>

Anyone run into this before & know how to avoid this? In the database, the published column shows 0 (thus not published). It does have a published_at date, but I believe this is required just to have any sort of record in the db.

Also, this is a Rails 2 project running browsercms 3.1.4.

@jtwohiou
Copy link

@posts.published.each

@jefffis
Copy link
Author

jefffis commented Feb 14, 2012

Thanks Justin, but now I just get a undefined method for 'published' here.

Not a huge deal right now, just something Kerry had noticed over the weekend.

Thanks!

On Feb 14, 2012, at 8:20 AM, Justin Windholtz wrote:

@posts.published.each


Reply to this email directly or view it on GitHub:
#6 (comment)

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

No branches or pull requests

2 participants