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