Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save patrickandre/38262fad907e367742465149b0d7e0b3 to your computer and use it in GitHub Desktop.
Save patrickandre/38262fad907e367742465149b0d7e0b3 to your computer and use it in GitHub Desktop.
Fanzine

Lab

Create a Rails app called fanzine. This app will have a controller called home and four routes called:

  • Homepage
  • Info
  • About
  • redirect_home

You'll have to match these routes with these templates:

  • Homepage renders the template "homepage"
  • Info renders the template "information"
  • About renders the template "about"
  • redirect_home redirect the request to "/homepage"

This app only has one layout, but the layout should have a menu with links to the four routes. These links should be inside a partial called menu and the file should be in app/views/application. The menu should appear on every page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment