app/views/news/index.html.erb
<p id="notice"><%= notice %></p>
<h3>Frequently Asked Questions</h3>
<table>
<thead>
<tr>
<th>Question</th>
<th>Answer</th>
<th colspan="3">Actions</th>
</tr>
</thead>
<tbody>
<% @news.each do |news| %>
<tr>
<td><%= news.title %></td>
<td><%= news.content %></td>
<td><%= link_to 'Show', news %></td>
<% if current_user.admin %>
<td><%= link_to 'Edit', edit_news_path(news) %></td>
<td><%= link_to 'Destroy', news, method: :delete, data: { confirm: 'Are you sure to remove this FAQ entry?' } %></td>
<% end %>
</tr>
<% end %>
</tbody>
</table>
<div class="center">
<% if current_user.admin %>
<%= link_to 'New FAQ', new_news_path, class: "button-sm" %>
<% end %></br>
<%= link_to 'Back to Dashboard', forms_path, class: "button-sm" %>
</div>