I'm following this guide, http://www.2dconcept.com/jquery-grid-rails-plugin, to setup a sample jQuery datagrid.
Everything appears to be good, but when I go to http://127.0.0.1:3000/users, I get this:
NoMethodError in Users#index
Showing users/index.html.erb where line #12 raised:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each
Extracted source (around line #12):
9: <th>Role</th>
10: </tr>
11:
12: <% for user in @users %>
13: <tr>
14: <td><%=h user.pseudo %></td>
15: <td><%=h user.firstname %></td>
Any ideas as to what I am doing wrong?
Thanks in advance!