To Examples

EmployeeRoster Example

Directions

  1. Create a new Rails project named EmployeeRoster.
  2. Generate a Rails scaffold named Employee with these fields.
    Field Datatype
    name string
    emp_id integer
    salary float
    manager_id integer
  3. Source code for the seed file EmployeeRoster/db/seeds.rb.
  4. View the index pages of the Employee controller with this URL:
    http://localhost:3000/employees