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

deleting a user should delete his saved searches, too? #376

Open
jenhek opened this issue Jun 24, 2015 · 0 comments
Open

deleting a user should delete his saved searches, too? #376

jenhek opened this issue Jun 24, 2015 · 0 comments

Comments

@jenhek
Copy link

jenhek commented Jun 24, 2015

After deleting a user who has saved searches I end up with an "oops" when trying to view saved searches:

Started GET "/saved/searches" for 134.130.X.Y at 2015-06-24 15:23:54 +0200
Processing by SavedSearchesController#index as HTML
Rendered saved_searches/_saved_search.html.erb (5.8ms)
Rendered saved_searches/index.html.erb within layouts/application (10.2ms)
Completed 500 Internal Server Error in 29ms

ActionView::Template::Error (undefined method id' for nil:NilClass): 1: <% can_edit = (current_user.id == saved_search.user.id) %> 2: <tr data-id="<%= saved_search.id %>"> 3: 4: <% if can_edit %> app/views/saved_searches/_saved_search.html.erb:1:in_app_views_saved_searches__saved_search_html_erb__2937626048927797939_52591920'
app/views/saved_searches/index.html.erb:21:in `_app_views_saved_searches_index_html_erb__2484555833295938071_52488860'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant