diff --git a/app/views/articles/index.html.erb b/app/views/articles/index.html.erb index fa6e1fa..40a7a93 100644 --- a/app/views/articles/index.html.erb +++ b/app/views/articles/index.html.erb @@ -12,4 +12,8 @@ <%= article.text %> <% end %> - \ No newline at end of file + + +

+ <%= link_to 'New article', new_article_path %> +

diff --git a/app/views/articles/new.html.erb b/app/views/articles/new.html.erb index 0901662..0bd47e8 100644 --- a/app/views/articles/new.html.erb +++ b/app/views/articles/new.html.erb @@ -14,4 +14,6 @@

<%= f.submit %>

-<% end %> \ No newline at end of file +<% end %> + +<%= link_to 'Back', articles_path %> \ No newline at end of file diff --git a/app/views/articles/show.html.erb b/app/views/articles/show.html.erb index 7551020..7361686 100644 --- a/app/views/articles/show.html.erb +++ b/app/views/articles/show.html.erb @@ -8,4 +8,6 @@

Text: <%= @article.text %> -

\ No newline at end of file +

+ +<%= link_to 'Back', articles_path %> \ No newline at end of file diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index 0a01a01..39b7e80 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -1,2 +1,3 @@ -

Welcome#index

-

Find me in app/views/welcome/index.html.erb

+

Welcome our LYK2014 Blog

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