- Partial
<%= erb "_navigation".to_sym %>
- <%= : evaluate and put out the result into stringn.
- <% : just
- evaluate them.
- file directory only take symbol.
- [q] We just come into our template, you call erb, and as long as you pass in a symbol, that locates the file, then it'll render it for you.
- reusable piece ( like function )
댓글 없음:
댓글 쓰기