Jump To Content

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.

JohnPhilipGreen
  • Authority 465
Post Body
JohnPhilipGreen said:

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.

  • Quote
  • Posted 8 months ago.
Andrew Brown
  • Authority 533
Post Body
Andrew Brown said:

  • Quote
  • Posted 8 months ago.
  • Your comment will be modifiable for 10 minutes after posted.

Page Author

Avatar
Andrew Brown
Name
Andrew Brown

From Here You Can…

Information

Most Recent Related Content

Published In…

This work is public domain.