Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用以下行:
redirect_to dispensers_url(current_user.id)
生成以下内容:
dispensers/13
但是我得到:
dispensers.13
知道如何解决这个问题吗?
助手应该是dispenser_url 而不是dispensers_url。后者用于索引操作。