Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Enable the model in the controller

  • Loading branch information...
commit f4c74e153e218a93138a033a541da98ecff6c3dc 1 parent b782e1e
Phillip Smith authored August 15, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/Catalyst/Default/Controller/Books.pm
4  lib/Catalyst/Default/Controller/Books.pm
@@ -41,9 +41,9 @@ sub list :Local {
41 41
 
42 42
     # Retrieve all of the book records as book model objects and store in the
43 43
     # stash where they can be accessed by the TT template
44  
-    # $c->stash(books => [$c->model('DB::Book')->all]);
  44
+     $c->stash(books => [$c->model('DB::Book')->all]);
45 45
     # But, for now, use this code until we create the model later
46  
-    $c->stash(books => '');
  46
+    #$c->stash(books => '');
47 47
 
48 48
     # Set the TT template to use.  You will almost always want to do this
49 49
     # in your action methods (action methods respond to user input in

0 notes on commit f4c74e1

Please sign in to comment.
Something went wrong with that request. Please try again.