1 <h1>Online Cookbook — All Recipes</h1>
2 <table border="1">
3 <tr>
4 <td width="80%"><p align="center"><i><b>Recipe</b></i></td>
5 <td width="20%"><p align="center"><i><b>Date</b></i></td>
6 </tr>
7
8 <% @recipes.each do |recipe| %>
9 <tr>
10 <td><%= linkto recipe.title, :action => "show", :id => recipe.id %></td>
11 <td><%= recipe.date %></td>
12 </tr>
13 <% end %>
14 </table>
15 <p><%= linkto "Create new recipe", :action => "new" %></p>
1 …
2 <field: recipe>
3 <tr>
4 <td><field: recipeLink /></td>
5 <td><field: recipeDate /></td>
6 </tr>
7 </field: recipe>
8 </table>
9 <p><field: newRecipeLink /></p>