Ror Directory Structure

app

app/controllers

The app/controllers subdirectory is where Rails looks to find controller classes. A controller handles a web request from the user.

app/views

The app/views subdirectory holds the display templates to fill in with data from our application, convert to HTML, and return to the user's browser.

app/models

The app/models subdirectory holds the classes that model and wrap the data stored in our application's database.

app/helpers

The app/helpers subdirectory holds any helper classes used to assist the model, view, and controller classes. This helps to keep the model, view, and controller code small, focused, and uncluttered.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.