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

User profile breaks after trying to follow user #367

Closed
dchandekstark opened this issue Apr 7, 2014 · 0 comments · Fixed by duke-libraries/course-assets#91
Closed

User profile breaks after trying to follow user #367

dchandekstark opened this issue Apr 7, 2014 · 0 comments · Fixed by duke-libraries/course-assets#91
Labels

Comments

@dchandekstark
Copy link
Contributor

Completed 500 Internal Server Error in 415ms

ActionView::Template::Error (undefined method `login' for #<User:0x0000000794e560>):
    12:       <h3>Follower(s)</h3>
    13:       <ul>
    14:       <% @followers.each do |f| %>
    15:         <li> <a href="<%= sufia.profile_path(f.login) %>" title="View user's profile"><%= f.name %></a></li>
    16:       <% end %>
    17:       </ul>
    18:     <%else%>
  activemodel (4.0.3) lib/active_model/attribute_methods.rb:439:in `method_missing'
  activerecord (4.0.3) lib/active_record/attribute_methods.rb:155:in `method_missing'
  acts_as_follower (0.2.1) lib/acts_as_follower/follower.rb:96:in `method_missing'
  acts_as_follower (0.2.1) lib/acts_as_follower/followable.rb:54:in `method_missing'
  /home/hydra/.rvm/gems/ruby-2.0.0-p451@course-assets/bundler/gems/sufia-93b5bc370aac/app/views/users/_follower_modal.html.erb:15:in `block in __home_hydra__rvm_gems_ruby_______p____course_assets_bundler_gems_sufia___b_bc___aac_app_views_users__follower_modal_html_erb___2123374920690985821_66349160'
@jcoyne jcoyne closed this as completed in a992b9b Apr 10, 2014
carolyncole added a commit that referenced this issue Apr 10, 2014
Use the User.to_param to craft paths. Fixes #367
dchandekstark added a commit to duke-libraries/course-assets that referenced this issue Apr 14, 2014
awead added a commit that referenced this issue Dec 4, 2015
Fix styling of the Sort/Per-page Bar in Dashboard
jcoyne pushed a commit that referenced this issue Nov 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant