Skip to content

michaelnull/Week-4-Day-2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Week-4-Day-2

Day 17 - Dynamic Pages in Rails

Challenge

Assuming a person has a first name, last name, email, date of birth, please create a class that:

  1. Allows you to set the first name, last name, email, and DOB in an initializer
  2. Allows you to call Age and return the age of the person
  3. Allows you to call FullName and return the 'Last, First' name

Today

  1. Review Homework
  2. vanity urls
  3. More model bindingg!
  4. action results
  5. filters

Homework

  1. Fork this repo, clone the repo to your machine
  2. Create a new MVC app in the directory that you cloned.
  3. Create a page that allows you to enter a list of names and ages for 5 people. (use mutliple textboxes)
  4. Save the data from the page into a Session variable called "ClassMates"
  5. Create a page that displays the classmates you created

Hard Mode

Allowing the user to view the page that list classmates as a plain content or in a JSON format based on a "view" parameter passed to the page.

##Nightmare Mode Authenticate the user by creating an auth cookie

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 45.0%
  • JavaScript 35.8%
  • HTML 17.2%
  • CSS 1.7%
  • Classic ASP 0.3%