diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-05-12 14:07:23 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-05-12 14:07:23 -0400 |
commit | 4016070f2caf30f576d0b0df8a65a7b4b468e951 (patch) | |
tree | f59af69e7aa118d5e5d87ee5b45960e6a19727e2 /app/controllers/streams_controller.rb | |
parent | 1d78ba374d5fa61ddba63db7a1c4c159e3e6a7af (diff) | |
download | thoughts-4016070f2caf30f576d0b0df8a65a7b4b468e951.tar.gz thoughts-4016070f2caf30f576d0b0df8a65a7b4b468e951.tar.bz2 thoughts-4016070f2caf30f576d0b0df8a65a7b4b468e951.zip |
Paginate stream updates
Diffstat (limited to 'app/controllers/streams_controller.rb')
-rw-r--r-- | app/controllers/streams_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/streams_controller.rb b/app/controllers/streams_controller.rb index 664f533..9b7588c 100644 --- a/app/controllers/streams_controller.rb +++ b/app/controllers/streams_controller.rb | |||
@@ -2,6 +2,7 @@ class StreamsController < ApplicationController | |||
2 | 2 | ||
3 | def show | 3 | def show |
4 | @stream = Stream.find_by_slug(params[:slug]) | 4 | @stream = Stream.find_by_slug(params[:slug]) |
5 | @updates = @stream.updates.paginate(page: params[:page], per_page: 10) | ||
5 | end | 6 | end |
6 | 7 | ||
7 | end | 8 | end |