Project

General

Profile

Actions

Bug #6868

closed

[SSO] Template calls undefined method after fresh local accounts installation

Added by Brett Smith over 8 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
SSO
Target version:
-
Story points:
-

Description

Steps to reproduce: follow the SSO installation documentation at 434be0f. Configure local accounts, and create one using the Rails console. After you finish setting up, try to log in with your created account. You'll get a 500 response, with this error in the logs:

Started GET "/" for 127.0.0.1 at 2015-08-03 17:56:41 +0000
Processing by AuthController#welcome as HTML
  Rendered auth/welcome.html.erb within layouts/application (0.7ms)
  Rendered application/_links.html.erb (41.6ms)
Completed 500 Internal Server Error in 48ms

ActionView::Template::Error (undefined method `edit_user_registration_path' for #<#<Class:0x000000035533d8>:0x00000003551308>):
    2: <%- if current_user %>
    3:   <%= link_to "Sign out", :destroy_user_session, class: "btn btn-default btn-links", role: "button" %>
    4:   <%- if controller_name != 'registrations' %>
    5:     <%= link_to "Update account", :edit_user_registration, class: "btn btn-default btn-links", role: "button" %>
    6:   <% end %>
    7: <% end -%>
    8:
  app/views/application/_links.html.erb:5:in `_app_views_application__links_html_erb___1746417297839545953_36443320'
  app/views/layouts/application.html.erb:34:in `_app_views_layouts_application_html_erb___2853150743743458663_37356600'

Related issues

Related to Arvados - Bug #6676: [Documentation] Fully document the SSO installation processResolvedBrett Smith07/21/2015Actions
Actions #1

Updated by Brett Smith over 8 years ago

  • Description updated (diff)
Actions #2

Updated by ming fang over 8 years ago

This problem seems to go away after setting

allow_account_registration: true

in application.yml.

Actions #3

Updated by Lucas Di Pentima over 3 years ago

  • Status changed from New to Closed
Actions #4

Updated by Ward Vandewege over 3 years ago

  • Target version deleted (Arvados Future Sprints)
Actions

Also available in: Atom PDF