diff --git a/app/controllers/articles_controller.rb b/app/controllers/articles_controller.rb index 7b89158..2de8681 100644 --- a/app/controllers/articles_controller.rb +++ b/app/controllers/articles_controller.rb @@ -6,7 +6,7 @@ def index def show @article = Article.find(params[:id]) - @comments = @article.comments.order(created_at: :desc).limit(20) + @comments = @article.comments.order(created_at: :desc) @comment = Comment.new end diff --git a/app/views/users/articles_written.html.erb b/app/views/users/articles_written.html.erb new file mode 100644 index 0000000..a3a0e9a --- /dev/null +++ b/app/views/users/articles_written.html.erb @@ -0,0 +1,13 @@ +

user.name 's' Articles

+ + +<%= paginate @articles %>