Moved the  function to after the jquery sortable's receive function is called.
Removed isolate scope from card directive. Added ng-model attribute to card template.
Changed habtm relation to has many :through.
Modified deck to have many cards through card_decks.
Acts as list gem now working on habtm associations.
Merge branch 'card_ordering' into backend
Changed associations:
"Deck habtm :cards" => "Deck has_many :cards"
"card habtm :decks" => "Card belongs_to :deck"

Added:
position & deck_id column to card model

Removed:
decks_cards table
deck_card model

Updated:
card/deck factories
Merge branch 'backend' into frontend
Card positions now working.
Removed uniqueness validation from card (act_as_list gem handles this). Updated directives to handle edge cases (e.g. moving card to beginning/end of list.
Card two-binding only updates the moved card's position.
Preparing ctrls and directives for implementing ang-ui-bootstrap.
Created card create dialog box. Added validations on the serverside card model. Card create dialog box also correctly displays error messages.
Card create/update, and sort now working.
Merge branch 'ang-ui-bootstrap' into frontend