Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enable the model in the controller

  • Loading branch information...
commit f4c74e153e218a93138a033a541da98ecff6c3dc 1 parent b782e1e
@phillipadsmith authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Catalyst/Default/Controller/Books.pm
View
4 lib/Catalyst/Default/Controller/Books.pm
@@ -41,9 +41,9 @@ sub list :Local {
# Retrieve all of the book records as book model objects and store in the
# stash where they can be accessed by the TT template
- # $c->stash(books => [$c->model('DB::Book')->all]);
+ $c->stash(books => [$c->model('DB::Book')->all]);
# But, for now, use this code until we create the model later
- $c->stash(books => '');
+ #$c->stash(books => '');
# Set the TT template to use. You will almost always want to do this
# in your action methods (action methods respond to user input in
Please sign in to comment.
Something went wrong with that request. Please try again.