Skip to content

Commit 8f57970

Browse files
committed
readme
1 parent 77b2eac commit 8f57970

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Check your logs again, did the SQL change? Are there any new statements, why?
257257

258258
#### Homework:
259259

260-
We've pulled data out of our database and into our rails view, pretty sweet. But the product from `Product.first` isn't very interesting. Make a new ERB tag and in it make a different type of query, storing the value to a variable. `<%= product = Product.where(:name => 'rails book').first %>` or `<%= cheap_product = Product.where('price > 1').first %>`.
260+
We've pulled data out of our database and into our rails view, pretty sweet. But the product from `Product.first` isn't very interesting. Make a new ERB tag and in it make a different type of query, storing the value to a variable. `<% product = Product.where(:name => 'rails book').first %>` or `<% cheap_product = Product.where('price > 1').first %>`.
261261

262262
Then output the name of the product, it's price and the name of the owner of the product. After each take a look a the log and see if there are new SQL statements listed.
263263

@@ -463,7 +463,7 @@ We'll use this quite a bit later on, but for now it's just a fun demo.
463463

464464
Homework:
465465

466-
Remove all the references to `params` from your layout, change your `link_to` erb tags to use the propper rails helpers. I.E. replace this:
466+
Remove all the references to `params` from your layout, change your `link_to` ERB tags to use the proper rails helpers. I.E. replace this:
467467

468468
<%= link_to "User List", "/users" %>
469469

0 commit comments

Comments
 (0)