# (Ruby) 仅选择非原始发帖人发布的帖子

**URL:** https://meta.discourse.org/t/ruby-selecting-only-posts-that-are-made-by-non-original-posters/157996
**Category:** Development
**Created:** [2020年七月17日 00:50 UTC](https://meta.discourse.org/t/ruby-selecting-only-posts-that-are-made-by-non-original-posters/157996 "2020-07-17T00:50:05Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![RickyC0626](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rickyc0626/32/185743_2.png) [@RickyC0626](https://meta.discourse.org/u/RickyC0626)
#### Post date: [2020年七月17日 14:25 UTC](https://meta.discourse.org/t/ruby-selecting-only-posts-that-are-made-by-non-original-posters/157996/2 "2020-07-17T14:25:14Z")

</div>

欢迎加入！🎉

我也是 Ruby 初学者，发现 [这个教程](https://www.ruby-lang.org/zh-CN/documentation/quickstart/) 对入门非常有帮助。

这里有一个关于开发 Discourse 插件的七部分系列文章，虽然可能不完全符合你的需求，但它是理解 Discourse 插件结构的优质资源。

> [@Developing Discourse Plugins - Part 1 - Create a basic plugin](https://meta.discourse.org/t/beginners-guide-to-creating-discourse-plugins-part-1/30515):
>
> Building a plugin in Discourse can be really simple, once you learn a couple of quirks. The goal of this post is to create a skeleton plugin and introduce you to the basics. Your development environment Make sure you have a development environment of Discourse running on your computer. I recommend you use [the appropriate setup guide](https://meta.discourse.org/tag/dev-install) and come back when you’re done. plugin.rbtada Use [GitHub - discourse/discourse-plugin-skeleton: Template for Discourse plugins](https://github.com/discourse/discourse-plugin-skeleton) to create a complete discourse p…

就我个人而言，通过实例和记录每一步来学习效果最好，因此 `Rails.logger` 以及可通过 `localhost:3000/logs` 访问的 Discourse 的 Logster 对此非常有帮助。

如果你愿意大胆探索，以下是 Discourse 核心部分的 Ruby 文档链接：

> [@Discourse Core Documentation](https://meta.discourse.org/t/discourse-core-documentation/157871):
>
> Ruby [https://www.rubydoc.info/github/discourse/discourse](https://www.rubydoc.info/github/discourse/discourse) JavaScript TBA: If anyone can find the JS docs, and they exist, that would be great

---

_[View the full topic](https://meta.discourse.org/t/ruby-selecting-only-posts-that-are-made-by-non-original-posters/157996)._
