To Examples
LinkIcons Example
Directions
Create a new Rails project named LinkIcons.
Generate a scaffold named Person with fields name (string), gender (string), age (integer).
Unzip and place these images in
LinkIcons/app/assets/images
:
icons.zip
Source code for the CSS stylesheet:
people.scss
.
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' %>
Localhost URL for the index view:
http://localhost:3000/people