Overriding the index method on a controller
Created by: tylrd
I'm trying to display all the users that aren't administrators in my users dashboard.
def index
super
@resources = User.where(admin: false).page(params[:page])
end
This is essentially from the boilerplate provided. The collections partial is rendering first and then the index method is being hit - it doesn't pass my @resources
into the partial. Anything I am missing?