Topic: Anyone know where is the problem ????? … -on-rails/

the link above is the only tutorial to create a forum ~
maybe is version problem ,
i tried many time but still error exist
anyone here can please help me figure out and teach me where i need to do change ?
thx !!!

Re: Anyone know where is the problem ?????

What kind of errors did you have. Post a bit of stacktrace to be able to detect your problem, please.

Re: Anyone know where is the problem ?????

Thx for reply ~

NoMethodError in Forums#index

Showing app/views/forums/index.html.erb where line #14 raised:

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.permission_level

Extracted source (around line #14):

11:         <small><%= forum.topics.count %> topics</small><br />
12:         <%=h forum.description %></td>
13:       <td class="right"><% if forum.most_recent_post %><%= distance_of_time_in_words_to_now forum.most_recent_post.last_post_at %> ago by <%= link_to forum.most_recent_post.user.username, "/users/#{forum.most_recent_post.last_poster_id}" %><% else %>no posts<% end %></td>
14:       <% if admin? %><td><%= link_to "Edit", edit_forum_path(forum) %></td><% end %>
15:       <% if admin? %><td><%= link_to "Destroy", forum, :confirm => 'Are you sure?', :method => :delete %></td><% end %>
16:     </tr>
17:   <% end %>