Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Liz Novaski
Full Stack JavaScript Techdegree Graduate 15,762 PointsGuil's code for publishedAt and shortDescription are not working
I've attempted the Nov 11, 2020 solutions and they do not appear to be working either.
3 Answers

Robert Manolis
Treehouse Guest TeacherHey Liz Novaski, go ahead and share a snapshot of your code or a GitHub repo so we can check it out.

Jordan Kittle
Full Stack JavaScript Techdegree Graduate 20,148 PointsHey Liz, for me the problem was calling 'publishedAt' in the pug file instead of 'publishedAt()' I hope this helps.

Seth Lewis
Full Stack JavaScript Techdegree Graduate 18,191 PointsLiz Novaski Jordan Kittle Robert Manolis ,
This also worked for me. First time I think I'd seen calling a function inside a view file.
Thanks, Jordan Kittle !

Joseph Lander
Full Stack JavaScript Techdegree Graduate 27,765 PointsYes. Thanks Jordan Kittle. That was my issue too.

James Crosslin
Full Stack JavaScript Techdegree Graduate 16,882 PointsAs an additional note, I've had to restart my server manually after changing the initializer in my model. This may be why it worked when you shut down and came back and started your server manually.
Liz Novaski
Full Stack JavaScript Techdegree Graduate 15,762 PointsLiz Novaski
Full Stack JavaScript Techdegree Graduate 15,762 PointsIt appears to be working as of this morning, so I'm not sure what changed? I was receiving the same error as Jordan describes in their comment where it was just showing the publishedAt() { const date = moment(this.createdAt).format("MMMM D, YYYY, h:mma"); return date; } instead of the formatted date