Skip to content

Instantly share code, notes, and snippets.

@adamkleingit
Last active January 3, 2016 19:59
Show Gist options
  • Save adamkleingit/8512311 to your computer and use it in GitHub Desktop.
Save adamkleingit/8512311 to your computer and use it in GitHub Desktop.
Homework for lesson #5

Homework:

  • implement the missing stuff from presentation:
    • flash messages
    • before filters
    • simple_form
  • Create a cat model:
    • name (string) - required
    • bio (text) - optional
    • gender (string) - Male or Female
  • Create a full controller for cat model like we did for users
  • Create links in the header to 'all cats' and to 'all users'
  • Make custom labels, hints, and placeholders for the cat form
  • Display header according to user's session:
    • show / hide register / sign in / sign out links
    • display the user's email address (if signed in)
  • Add all fields to devise user registration form
  • Move header code in application.html.erb to a navbar partial (under views/layouts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment