Fixed typo [ci skip] #13630

Merged
merged 1 commit into from Feb 9, 2014

Projects

None yet

4 participants

@seapy
Contributor
seapy commented Jan 8, 2014

singular is more suited to

@seapy seapy Fixed typo [ci skip]
singular is more suited to
6c252b5
@dmathieu dmathieu commented on the diff Jan 8, 2014
guides/source/layouts_and_rendering.md
as: :item, locals: {title: "Products Page"} %>
```
-Would render a partial `_products.html.erb` once for each instance of `product` in the `@products` instance variable passing the instance to the partial as a local variable called `item` and to each partial, make the local variable `title` available with the value `Products Page`.
+Would render a partial `_product.html.erb` once for each instance of `product` in the `@products` instance variable passing the instance to the partial as a local variable called `item` and to each partial, make the local variable `title` available with the value `Products Page`.
@dmathieu
dmathieu Jan 8, 2014 Contributor

Just a minor issue since we're at it, shouldn't this be Would render the partial (the instead of a)? Partials have a unique name.

@seapy
seapy Jan 8, 2014 Contributor

I have no idea about it.
but layouts_and_rendering.md guides use a partial another sentence

@dmathieu
dmathieu Jan 8, 2014 Contributor

And at line 1140 it uses will render the partial 😉

@vijaydev vijaydev merged commit ccd908f into rails:master Feb 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment