Skip to content

Commit

Permalink
Article links were added
Browse files Browse the repository at this point in the history
  • Loading branch information
tayfunoziserikan committed Aug 17, 2014
1 parent 7c5f025 commit d1cdbac
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
6 changes: 5 additions & 1 deletion app/views/articles/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@
<td><%= article.text %></td>
</tr>
<% end %>
</table>
</table>

<p>
<%= link_to 'New article', new_article_path %>
</p>
4 changes: 3 additions & 1 deletion app/views/articles/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
<p>
<%= f.submit %>
</p>
<% end %>
<% end %>

<%= link_to 'Back', articles_path %>
4 changes: 3 additions & 1 deletion app/views/articles/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
<p>
<strong>Text:</strong>
<%= @article.text %>
</p>
</p>

<%= link_to 'Back', articles_path %>
5 changes: 3 additions & 2 deletions app/views/welcome/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
<h1>Welcome#index</h1>
<p>Find me in app/views/welcome/index.html.erb</p>
<h1>Welcome our LYK2014 Blog</h1>

<%= link_to 'LYK2014 Blog', controller: 'articles' %>

0 comments on commit d1cdbac

Please sign in to comment.