public function getCreate()
 {
     $authors = Author::getIdNamePair();
     return View::make('book_create')->with('authors', $authors);
 }
 /**
  * Show the "Edit a book form"
  * @return View
  */
 public function getEdit($id)
 {
     try {
         # Get all the authors (used in the author drop down)
         $authors = Author::getIdNamePair();
         # Get this book and all of its associated tags
         $book = Book::with('tags')->findOrFail($id);
         # Get all the tags (not just the ones associated with this book)
         $tags = Tag::getIdNamePair();
     } catch (exception $e) {
         return Redirect::to('/book')->with('flash_message', 'Book not found');
     }
     return View::make('book_edit')->with('book', $book)->with('authors', $authors)->with('tags', $tags);
 }