---
title: "在你的 Rails app 中顯示 TODO 和其他註記"
description: "你知道可以用 rails notes 顯示 rails app 中所有的 TODO/OPTIMIZE/FIXME 嗎？"
canonical: https://oozou.com/til/show-todo-and-other-notes-in-your-rails-app-7
locale: zh-Hant
date: 2020-10-13
topic: ruby-on-rails
---

# 在你的 Rails app 中顯示 TODO 和其他註記

> 你知道可以用 rails notes 顯示 rails app 中所有的 TODO/OPTIMIZE/FIXME 嗎？

Published: 2020-10-13 · Topic: [ruby on rails](https://oozou.com/zh-Hant/til-topics/ruby-on-rails) ([markdown](https://oozou.com/zh-Hant/til-topics/ruby-on-rails.md))

你知道可以用 *rails notes* 顯示 rails app 中所有的 TODO/OPTIMIZE/FIXME 嗎？

```shell
$ rails notes
app/helpers/users_helper.rb:
  * [10] [TODO] Use ActiveSupport extension methods for Date/Time

app/services/slack.rb:
  * [20] [OPTIMIZE] Replace library with core Net::HTTP
```

你甚至可以用 *notes:todo* 等指令聚焦特定類型：

```shell
$ rails notes:todo
app/helpers/users_helper.rb:
  * [10] [TODO] Use ActiveSupport extension methods for Date/Time
```

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/zh-Hant/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
