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
Terence Mylonas
985 PointsMistakenly Deleted Homepage for Treebook?
Hi folks, Not sure how I did this, but I think I mistakenly deleted my Treebook homepage b/c I just about finished the "Customizing Forms" section and noticed that after I sign out of Treebook via the UI that I end up on the default rails homepage and have to actually go to /statuses to once again see the site.
Two questions:
- Can someone tell me where the homepage should be? I thought in Views, but can't tell where (which would make sense if I deleted it!)
- And if it's supposed to be there, what's the best way to recreate it without having to start building the app all over again
Note that I may even be asking the wrong questions here (i.e., maybe I didn't delete anything and there's something else I messed up that's pointing me to the generic rails page after "Log out") so if I can provide more info to clarify, please let me know.
Thank you much.
5 Answers
Allan Evans
9,501 PointsDid you sign up for github? You might be able to do a git pull command in ruby.
Terence Mylonas
985 PointsI did, Allan, at the beginning of the authentication section, but if I pull down the latest from github will I end up overwriting the the work I did during authentication and customizing forms?
I'm obviously very new to all of this thus the reason for what might seem like ignorant questions.
Allan Evans
9,501 PointsNo worries man, I'm still learning too. Try git status command and it should show what you have altered and where its located. Besides that you should have 5 files I believe in the statuses folder after views (_form, edit, index, new, show).
Terence Mylonas
985 PointsOk, I have those 5 files in statuses. Then git status gives me this:
modified: Gemfile
modified: Gemfile.lock
modified: app/models/status.rb
modified: app/models/user.rb
modified: app/views/layouts/application.html.erb
modified: app/views/statuses/_form.html.erb
modified: app/views/statuses/index.html.erb
modified: app/views/statuses/show.html.erb
So here's another question (or maybe another way of asking the same question I started this thread w/): When I go to localhost:3000, without /statuses, I should see the standard "homepage," yeah, which pretty much looks exactly like localhost:3000/statuses. Is that right? And what file is that that's actually being served when I do localhost:3000 (again, without /statuses)? That's the file that I'm "missing." And, of course, might not be that it's missing, but rather that I've omitted some code somewhere that points to the proper place b/c when I review those files that were modified, I'm not sure where to look to see if I accidentally deleted or modified something that shouldn't have been touched. Probably a github command that'd show me, of course, but I don't know it.
Thanks, again, for the guidance.
Jason Seifer
Treehouse Guest TeacherWhat do you see when you go to localhost:3000? The standard Ruby on Rails page? If so, try deleting public/index.html.