Build the app

On a machine with a working Rails installation:

  1. Open up a terminal window, and at the command prompt ($) type:
    $ rails new my_app
  2. Change to the application directory (RAILS.root):
    $ cd my_app
  3. Start the web server:
    $ rails server
  4. Open a browser window and navigate to
    http://localhost:3000

Rails Directory Structure

  • RAILS.root - my_app
    • app - Models, Views and Controllers code
    • bin - Helper scripts (bundle, rails, rake)
    • config - App, database & route configuration
    • db - Database schema and migrations
    • Gemfile - Specify the required gems
    • lib
    • log - Application logging directory
    • public - Webroot of the application
    • test - Tests - Agile development
    • tmp
    • vendor