Skip to content

Latest commit

 

History

History
executable file
·
29 lines (22 loc) · 523 Bytes

phase2.md

File metadata and controls

executable file
·
29 lines (22 loc) · 523 Bytes

Phase 2: Viewing Profile and Posts

Rails

Models

Controllers

Api::ProfileController (create, destroy, show) Api::PostsController (create, destroy, show, update)

Views

  • profile/show.json.jbuilder

Backbone

Models

  • Profile (parses nested posts association)
  • Post

Collections

  • Profile
  • Posts

Views

  • ProfileForm
  • ProfileShow (composite view, contains PostsIndex subview)
  • PostsIndex (composite view, contains PostsIndexItem subviews)
  • PostsIndexItem
  • PostShow

Gems/Libraries