Skip to content

Instantly share code, notes, and snippets.

@OfTheDelmer
Created May 28, 2014 17:53
Show Gist options
  • Save OfTheDelmer/7203147d53845cf0bebf to your computer and use it in GitHub Desktop.
Save OfTheDelmer/7203147d53845cf0bebf to your computer and use it in GitHub Desktop.
Introductory outline for managing resources with a Rails Application, reviewing the setup of JSON API, and organizing JS assets.

Angular Rails

Angular $http Object

Objectives
Setting up a JSON API
Controller CRUD Actions

Outline

  • Setup A Rails App
    • A Book App
      • Generate a BooksController
      • Generate a Book Model
      • Setup an index
        • responding to html and json
      • Setup Assets
        • A book.js
        • A books_controller
  • Setup a Book SPA
    • Get All Books
    • Handle Create
      • Sending the X-CSRF-Token
    • Exercise
    • Exercise
    • Setup HttpProvider
      • Brief mention about providers
  • Large Exercise: Add A Library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment