Ruby on rails 3 使用我的ruby on rails应用程序实现Desive时出现语法错误

Ruby on rails 3 使用我的ruby on rails应用程序实现Desive时出现语法错误,ruby-on-rails-3,devise,Ruby On Rails 3,Devise,我试图在rails应用程序中实现Desive,但在header.html.erb中出现了这个语法错误 <% if user_signed_in? %> Logged in as <strong><%= current.user.email %></strong>. <%= link_to 'Edit profile', edit_user_registration_path %> <%= link_

我试图在rails应用程序中实现Desive,但在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\u用户\u会话\u路径, 方法:删除)@输出缓冲区。安全

非常感谢您的帮助

谢谢

您在
当前
之间得到了一个点(.)<代码>电子邮件此外,在结束标记后还有一个额外的点(.)

 Logged in as <strong><%= current.user.email %></strong>. <------
身份登录。
Logged in as <strong><%= current_user.email %></strong>
<% if signed_in? %>
        Logged in as <strong><%= current_user.email %></strong>
        <%= link_to 'Edit profile', edit_user_registration_path %>
        <%= link_to 'My Account', user_path(current_user) %>
        <%= 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 %>