I’m creating admin module. in that module i need to get the list of
users and also the projects created by the each user.
No doubt i’m getting the list of users. but i’m not getting the list
of projects done by each user…
This is my code::
<% for user in @users %>
In the controller
@user = User.find_all
@user_pages, @users = paginate :user, :per_page => 20
This is the error when i click on the user::
You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.
Could any please help??