Hi,
I really don't understand :
In a partial, I have a collection "@users", in wich I included "calls" : User.all(:include => :calls") in my controller.
So, in the partial, I have something like :
<% @users.calls.each{|call|%> <%=h call.from %> <% } %>
And the error is that i can't get nil.from. How a this could be nil ?
If you rename the call variable in your block to, say, phone_call, does that make a difference? I can’t find call on the reserved word list for Ruby or Rails, but I wonder if it’s just somehow problematic to use it.
Regards, Craig
No, the problem is out of there...
thank you for the idea !