If you want another example, take a look at the voting plugin. I do something similar there. It’s not from the controller itself but it’s close.
joebuhlig
(Joe Buhlig)
3
相关话题
| 话题 | 回复 | 浏览量 | 活动 | |
|---|---|---|---|---|
| Modify "New Topic" button default behavior | 6 | 1093 | 2021 年3 月 31 日 | |
| Overriding a Method in a controller | 1 | 820 | 2018 年7 月 19 日 | |
| Override function in /app/assets/javascripts/discourse/app/lib/ | 0 | 331 | 2023 年4 月 17 日 | |
| Using a Discourse component in a plugin | 19 | 4550 | 2017 年1 月 26 日 | |
| [Solved] In plugin: opening the composer without changing the route | 4 | 1972 | 2017 年8 月 9 日 |