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

07 投稿の検索機能を実装する #13

Merged
merged 10 commits into from Feb 4, 2022

Conversation

Shun712
Copy link
Owner

@Shun712 Shun712 commented Jan 31, 2022

やったこと

  • 全ての投稿を検索対象とすること(フィードに対する検索ではない)

  • 検索条件としては以下の三つとする

    • 本文に検索ワードが含まれている投稿

      • こちらに関しては半角スペースでつなげることでor検索ができるようにする。e.g.「rails ruby」
    • コメントに検索ワードが含まれている投稿

    • 投稿者の名前に検索ワードが含まれている投稿

  • ransackなどの検索用のGemは使わず、フォームオブジェクト、ActiveModelを使って実装すること

  • 検索時のパスは/posts/searchとすること

@Shun712 Shun712 merged commit f14cfa4 into feature/06_follow Feb 4, 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