To Examples

LinkIcons Example

Directions

  1. Create a new Rails project named LinkIcons.
  2. Generate a scaffold named Person with fields name (string), gender (string), age (integer).
  3. Unzip and place these images in LinkIcons/app/assets/images: icons.zip
  4. Source code for the CSS stylesheet: people.scss.
  5. On the index, show, new, and edit views, add the appropriate class to the show, edit, destroy, new, and back link_to tags. For example:
    <%= link_to 'New Person', new_person_path, class: 'new' %>
    
  6. Localhost URL for the index view:
    http://localhost:3000/people