To Examples

Greeter Example

Directions

  1. Create a new Rails project named Greeter.
  2. Create a controller named Greeter with views page1, page2, and page3.
  3. Source code for the views: page1.html.erb   page2.html.erb   page3.html.erb
  4. Source code for the layout page:   application.html.erb
  5. Source code for the controller:   greeter_controller.rb
  6. Source code for the style sheet:   greeter.css
  7. View the pages of this example with these URLs:
    http://localhost:3000/greeter/page1
    http://localhost:3000/greeter/page2
    http://localhost:3000/greeter/page3