toolbar_helper

This commit is contained in:
Andreas Stephanides
2013-03-18 21:06:32 +01:00
parent ab330f1c87
commit 922acf869a
2 changed files with 12 additions and 14 deletions

View File

@@ -1,20 +1,11 @@
<p id="notice"><%= notice %></p>
<p>
<b>Title:</b>
<%= @neuigkeit.title %>
</p>
<p>
<b>Text:</b>
<%= @neuigkeit.text %>
</p>
<%= render @neuigkeit %>
<p>
<b>Datum:</b>
<%= @neuigkeit.datum %>
</p>
<%= link_to 'Edit', edit_neuigkeit_path(@neuigkeit) %> |
<%= link_to 'Back', neuigkeiten_path %>
<% elements=[link_to('Edit', edit_neuigkeit_path(@neuigkeit))]
elements << link_to('Back', rubrik_path(@neuigkeit.rubrik)) %>
<%= toolbar_html (elements) %>