Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>List of Articles</h1>
- <%= link_to 'Back To Welcome Page', welcome_index_path %>
- <%= link_to 'New Article', new_article_path %>
- <table>
- <tr>
- <th>Title</th>
- <th>Text</th>
- <th>Link</th>
- </tr>
- <%= @articles.each do |article| %>
- <tr>
- <td><%= article.title %></td>
- <td><%= article.text %></td>
- <td><%= link_to 'Show', article_path(article) %></td>
- <td><%= link_to 'Edit', edit_article_path(article) %></td>
- </tr>
- <% end %>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement