rezbud/tanagram — pull request #19 by YSavir (2014-02-05 22:00:25+00:00)
Title: Save/Load Ajax and Rails Work Compeleted

The game now has the following methods:

tanagram.savePuzzle()
- takes current state of pieces and saves them to as a new Saved on database.
- only works is signed in.

tanagram.loadPuzzle(id)
-if id is provided, will set the pieces to the game state of the Saved item with the same id.
-if id is not provided, will set the pieces to the game state of the users last saved game.
-sets tanagram.current_puzzle to the Puzzle of the loaded game.

###IMPORTANT####

Added json to gemfile. Make sure to bundle before using.