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 trialRobert Gray
6,674 PointsBuild a Simple Ruby Application - Edit + Delete Status w/o logging in
So I am nearing the end where I will be deploying this rails app to Heroku, but I am noticing that when O run the app on the rails dev server that if I am not logged in I am still able to edit/delete any statuses. I am trying to remember where in the code this needs to change.
The links are enclosed in a div admin tags in the status/index.html.erb view; statuses_controller_test.rb: I believe i have added sign_in_users(:jason) to the appropriate tests
thanks for any help!
4 Answers
Jason Seifer
Treehouse Guest TeacherHi Robert Gray, can you email your code to help@teamtreehouse.com so we can troubleshoot?
Nick Pettit
Treehouse TeacherHi Robert Gray,
Sorry for the slow response. Jason Seifer is at a conference this week, but he should be able to reply to your question soon!
Nick
primos
6,465 PointsI have a similar problem with exception, when logout, I can not edit statuses but I can delete statuses. I want, when logged out, that the visitor can not delete post (the same way as edit already functiones). Thanks!
Jason Seifer
Treehouse Guest TeacherHey Primož Škerget can you start a new thread on that subject? That will make it easier for people having the same issue to search.