Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/04 pagination #4

Merged
merged 2 commits into from Aug 5, 2022
Merged

Feature/04 pagination #4

merged 2 commits into from Aug 5, 2022

Conversation

hirohiroiida
Copy link
Owner

概要

投稿のページネーション機能を実装しました。

Image from Gyazo

pagyというgemを使用しました。

確認方法

  1. Gem を追加したので bundle install を実行してください

  2. 投稿を30個くらいrails consoleで作ってページネーションが機能していることを確認してください。
    FactoryBotcreat_listを使うと簡単に作れます。

チェックリスト

  • テストを書いた
  • Lint のチェックをパスした

コメント

gemのkaminariより実装が簡単で、処理も早いらしいということで、便利だなーと感じた。

質問

specの書き方の部分で2点よろしくお願いします!
https://github.com/DaichiSaito/insta_clone_ver7/pull/5#discussion_r936921887

https://github.com/DaichiSaito/insta_clone_ver7/pull/5#discussion_r936924370

@hirohiroiida hirohiroiida merged commit e292b3b into develop Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant