1. Technology
Send to a Friend via Email
You can opt-out at any time. Please refer to our privacy policy for contact information.

Editing Your Application and Start the Server


2 of 5

Look at the Directory Structure

Open up the newly generated application in either your command line or a file manager. In the newly generated directory, you'll see a number of few files and a number of directories. The three directories we're most interested in this point are:

  • app - Your application lives here. All models, views and controllers are contained within the files and directories in the app directory. Of particular interest is the app.rb file, this is where we'll be putting our actions for now.

  • public - The files in this directory get served without going through any of the application controllers. Images, stylesheets, etc can go here.

  • config - Config files go here. Of particular interest is database.rb, where you can configure your databases. If you're using MySQL, you might need to change this file to reflect your MySQL server setup. If you're using Sqlite, you can most likely leave this as the default.

  1. About.com
  2. Technology
  3. Ruby
  4. Tutorials
  5. Padrino
  6. Look at the Directory Structure

©2014 About.com. All rights reserved.