To Examples

Census Directions

 

  1. Open a command window.
     
  2. Navigate to your folder for rails applications.
     
  3. Create a new rails project named Census:
    > rails Census
     
  4. Navigate to the Census folder.
     
  5. Create the project using scaffolding:
    > rails generate scaffold Person name:string gender:string age:integer
     
  6. Build the database table:
    > rake db:migrate
     
  7. Start the Rails server:
    > rails /server
     
  8. In a browser navigate to this URL:
    > http://localhost:3000/people