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

Ruby

Kobi Omenaka
Kobi Omenaka
5,033 Points

What is the best way to learn and understand the Ruby on Rails directory structure?

Hello all,

I have been following Tutorials based in Treehouse and with other resources (sorry) and one thing seems to confuse me each time.

How do I understand the directory structure that you get with RoR?

When I follow tutorials it can be confusing as Im always asking "Why does that go in that directory". The names all seem fairly arbitrary at the moment to me.

I keep going back to the official Ruby documentation http://guides.rubyonrails.org/getting_started.html but this seems to be gobbledegook!

If anyone has any tips and tricks for understanding the directories ill be ultra keen to hear them!

K*

2 Answers

Hey Kobi,

The book that helped me wrap my mind around the basics of the Rails directory structure was "Learn Rails" by Daniel Kehoe. You can sign up for a free trial subscription at his website (https://tutorials.railsapps.org/) which will allow you to download his book for free.

Another great resource is the "Learning Rails Lessons" at http://www.buildingwebapps.com/learningrails. It's a bit outdated but the intro podcasts simply talk about the structure of Rails without scrambling your brain with any actually coding. That was incredibly helpful for me as it broke down the big-picture concepts first, then introduces the details.

I know you mentioned you've gone through many online resources but the repetition will pay off. Hopefully the resources above will help fill in some holes in your understanding and it will all click. Eventually it does!

Kobi Omenaka
Kobi Omenaka
5,033 Points

Thanks for that Joshua!

I know ultimately its a case of repetition will prove fruitful but there is obviously a key chunk of my understanding missing and things like this are what I need for sure!

K*