# Checking if post or thread - Ruby

**URL:** <https://meta.discourse.org/t/checking-if-post-or-thread-ruby/116437>\
**Category:** Development\
**Created:** [April 30, 2019, 1:37pm UTC](https://meta.discourse.org/t/checking-if-post-or-thread-ruby/116437 "2019-04-30T13:37:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jackkelly-bayliss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jackkelly-bayliss/32/139749_2.png) [@jackkelly-bayliss](https://meta.discourse.org/u/jackkelly-bayliss)\
**Post date:** [April 30, 2019, 1:54pm UTC](https://meta.discourse.org/t/checking-if-post-or-thread-ruby/116437/3 "2019-04-30T13:54:06Z")

</div>

Hello David,

Thank you for your reply and response my topic. Would this be the correct method in completing the task? The first block should only send if it’s a thread and the second block should only send if it’s a post.

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/1/6114833ed83e86261a170eda4b1b1d2fc757bfee.png)

---

_[View the full topic](https://meta.discourse.org/t/checking-if-post-or-thread-ruby/116437)._
