我正在尝试在Rails应用程序中实现devise,并且在header.html.erb中收到此语法错误
<% if user_signed_in? %>
Logged in as <strong><%= current.user.email %></strong>.
<%= link_to 'Edit profile', edit_user_registration_path %>
<%= link_to 'Logout', destroy_user_session_path, method: :delete %>
<% else %>
<%= link_to 'Sign up', new_user_registration_path %> |
<%= link_to 'Login', new_user_ssession_path %>
<% end %>
这是我收到的错误消息:
编译错误/Users/ryanoliver/repos/joyties/app/views/layouts/application.html.erb:14:语法错误,意外的':',期望的是')'... roy_user_session_path,方法::delete); @ output_buffer 。安全...
非常感谢任何帮助
谢谢