Jump To Content

LearnHub




RORB 2. Rails is like a team of departments

Rails App Directory Structure

Its important for you to become familiar with the folders of a rails app.

Create empty Rails App

Open in Terminal and create an empty rails app

Photo 1161

Open the new rails directroy and get look at all the folders you get.

Rails is like having a team of departments that specializes in doing certain things in your project. you only had to type one line of code just to get setup.

There is much more to learn about the Rails Directory Structure but this is enough for beginners. Next will look at specific folders and see how they work in more detail.


  1. JohnPhilipGreen saidWed, 19 Mar 2008 14:40:05 -0000 ( Link )

    There are also “Mailers” that live in the /app directory. They disingenuously are found in the /app/models directory, but I’ve long thought they should have their own home.

    Mailers are classes that make sending emails really easy. When I moved from Enterprise Java to Rails, this is one of the things I was most impressed with. Now, however, I see all the ways the framework could be improved… Merb, really improves on Rails’ design.

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  2. Andrew Brown saidWed, 19 Mar 2008 16:28:15 -0000 ( Link )

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

Your Comment
Textile is Enabled (View Reference)