object nil???? icon error?

0 views
Skip to first unread message

urdabum

unread,
Mar 17, 2009, 3:54:59 AM3/17/09
to luvfoo
can any one help me with this error?

NoMethodError in Users#show

Showing users/_status_update.html.erb where line #5 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.+

Extracted source (around line #5):

2: <% remote_form_for(:status_update, :url =>
user_status_updates_path(@user), :html => {:id =>
'status_update_form'} ) do |f| -%>
3: <table>
4: <tr>
5: <td rowspan="2"><%= icon @user %></td>
6: <td id="current-status">
7: <%= render :partial => 'users/current_status', :locals =>
{:user => @user} %>
8: </td>

Trace of template inclusion: /users/show.html.erb

Reply all
Reply to author
Forward
0 new messages