Advertisement
jeffcovey

Untitled

Jun 28th, 2018
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Thanks, Orlando! This seems to be causing a problem with code I have in `app/controllers/static_pages_controller.rb` (as best I can tell). I have this there:
  2.  
  3. class StaticPagesController < ApplicationController
  4. def home
  5. @groups = Group.all
  6. @categories = @groups.select("DISTINCT(CATEGORY)")
  7. end
  8. end
  9.  
  10. When I call `@categories` in my view, `self.email = user.email` raises the error `missing attribute: user_id`. Any ideas?
  11.  
  12. Jeff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement