Permalink
Browse files

minor clarification to section "Test Adding Bars"

  • Loading branch information...
1 parent dbc9bec commit 36f995f891346d33bfd64da90c724282b3cbb61f @retroryan retroryan committed Jun 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ARTICLE.md
View
2 ARTICLE.md
@@ -330,7 +330,7 @@ You should see a list of the `Bar` objects you've created serialized as JSON.
As mentioned previously, the transaction needs to be explicityl started with the `inTransaction` Squeryl function, even when selecting values from the database. Then within the bounds of the transaction, all of the `Bar` entities are retrieved from the database.
-The syntax of the query demonstrates the power of Squeryl’s type-safe query language and the power of Scala to create DSLs.  The `from` function takes the type-safe reference to the table as the first parameter. This is like the SQL `from` keyword. The second parameter is a function that takes the table to query as a parameter and then specifies what to do on that table, in this case a `select`. The `from` returns an iterable object which is set to the `bars` immutable val. Then the `Json.generate` method iterates through the `bars` retrieved from the database and returns them. The `json` val is then returned in a `Ok` (200 response) with the content type set to `application/json` (the value of `JSON`).
+The syntax of the query demonstrates the power of Squeryl’s type-safe query language and the power of Scala to create DSLs.  The `from` function takes the type-safe reference to the table as the first parameter. This is like the SQL `from` keyword. The second parameter is a function that takes the table to query as a parameter and then specifies what to do on that table, in this case a `select`. The `from` returns an iterable object which is set to the `bars` immutable val. Then the `Json.generate` method iterates through the `bars` retrieved from the database and returns them. The `json` val is then returned in a `Ok` (HTTP 200 status code response) with the content type set to `application/json` (the value of `JSON`).
Test JSON Service

0 comments on commit 36f995f

Please sign in to comment.