Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile Global and Others' tabs broken #107

Open
colinmollenhour opened this issue May 20, 2016 · 1 comment
Open

Profile Global and Others' tabs broken #107

colinmollenhour opened this issue May 20, 2016 · 1 comment
Labels

Comments

@colinmollenhour
Copy link

These tabs return 500 response. I think it is because I deleted the original Admin user.

Started GET "/profiles?action=index&controller=profiles&tab=others" for 127.0.0.1 at 2016-05-19 16:28:03 -0400
Processing by ProfilesController#index as HTML
  Parameters: {"tab"=>"others"}
  Rendered profiles/_import.html.erb (3.0ms)
  Rendered profiles/_table.html.erb (20.4ms)
  Rendered profiles/index.html.erb within layouts/application (25.7ms)
Completed 500 Internal Server Error in 83ms (ActiveRecord: 10.2ms)

ActionView::Template::Error (No route matches {:action=>"show", :controller=>"users", :id=>nil} missing required keys: [:id]):
    167:                         <% if profile.owner == current_user %>
    168:                             <span class="label">You</span>
    169:                         <% else %>
    170:                             <%= link_to profile.owner, user_path( profile.owner ) %>
    171:                     <% end %>
    172:                     </td>
    173:                 <% end %>
  app/views/profiles/_table.html.erb:170:in `block in _app_views_profiles__table_html_erb___4138441391663861063_40982680'
  app/views/profiles/_table.html.erb:145:in `_app_views_profiles__table_html_erb___4138441391663861063_40982680'
  app/views/profiles/index.html.erb:34:in `_app_views_profiles_index_html_erb__1721175088394700753_41147920'
  app/controllers/profiles_controller.rb:24:in `index'
@Zapotek
Copy link
Member

Zapotek commented Feb 7, 2017

Wow, this one slipped through the cracks, I'll have a look at it soon but yes it's because the owner (admin in this case) was deleted.
Sorry for the delay.

@Zapotek Zapotek added the bug label Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants