Please remember to quote the previous message so that it is easier to
follow the thread, remember this is a mailing list not a forum (though
you may be accessing it through a forum like interface).

On 3 August 2012 17:02, Martyn W. <[email protected]> wrote:
> For <%= work_ticket.material.number %>
>
> I get undefined method `number' for nil:NilClass

Try displaying work_ticket.material_id, I think you will find that it
is not set.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to