# RubyでActivity TabからTopics/Topics List、Repliesを取得する方法

**URL:** <https://meta.discourse.org/t/how-to-retrieve-topics-topics-list-replies-from-activity-tab-using-ruby/313529>\
**Category:** Development\
**Created:** [2024 年 6 月 25 日午前 10:10 UTC](https://meta.discourse.org/t/how-to-retrieve-topics-topics-list-replies-from-activity-tab-using-ruby/313529 "2024-06-25T10:10:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2024 年 6 月 25 日午後 1:29 UTC](https://meta.discourse.org/t/how-to-retrieve-topics-topics-list-replies-from-activity-tab-using-ruby/313529/2 "2024-06-25T13:29:45Z")

</div>

どのような問題を解決しようとしていますか？

特定のユーザーから投稿を取得したいですか？

```plaintext
./launcher enter app
rails c
u = User.find_by_username("pat")
posts=Post.where(user_id: u.id)

```

データエクスプローラープラグインで取得できます。

---

_[View the full topic](https://meta.discourse.org/t/how-to-retrieve-topics-topics-list-replies-from-activity-tab-using-ruby/313529)._
