vecnet / dl-discovery

Map based discovery interface for digital library records
Other
4 stars 3 forks source link

app crashes in presence of pubtkt #21

Closed dbrower closed 9 years ago

dbrower commented 9 years ago

A partial is referring to paths which don't exist in the application.

ActionView::Template::Error (undefined local variable or method `dashboard_index_path' for #<#<Class:0x007f370e60f170>:0x007f370f7169a0>):
    47:               <li><%= link_to "Transmission Simulator", "#{ci_domain}/ts/" %></li>
    48:               <% if current_user -%>
    49:                   <li class="divider"></li>
    50:                   <li><%= link_to "My Uploads", dashboard_index_path %></li>
    51:                   <% if current_user.admin? -%>
    52:                       <li><%= link_to "Admin Dashboard", admin_dashboard_index_path %></li>
    53:                   <% end -%>
  app/views/_user_util_links.html.erb:50:in `_app_views__user_util_links_html_erb__2521860871841868077_69937227652860'
  app/views/shared/_header_navbar.html.erb:16:in `_app_views_shared__header_navbar_html_erb__2582333996295555637_69937227607640'
  app/views/layouts/vndl.html.erb:30:in `_app_views_layouts_vndl_html_erb__1638806196066636405_69937219161320'
stevenvandervalk commented 9 years ago

app/views/_user_util_links.html.erb is in app/views/shared/_user...? or did I miss something.

dbrower commented 9 years ago

It looks like there is also a file named _user_util_links.html.erb inside /app/views. (This is on branch jcu-env-merge). They both have the bug. If you indicate which one should be kept, I can make a PR fixing this issue.

dbrower commented 9 years ago

This has been fixed.