我为’消息’创建了一个脚手架,而new_message_path和edit_message_path(用于link_to)都已经设置好了,但是现在我已经创建了app / views / messages / sent.html.erb,并且我想沿着<%= link_to'Sent'的行,sent_message_path%>,但我无法弄清楚如何做到这一点.我得到
undefined local variable or method `sent_message_path' for #<ActionView::Base:0x103117c50>