belongs_to question

Hi everyone,

I'm wondering what is the correct way to access a column from a
belongs_to table.

The code below works is OK for the line but
fails for the line.
Yet they are both the same - I must be doing something basically
wrong ?

In Product:
  belongs_to :category
  belongs_to :make

In Category & Make:
  has_many :products

TIA - Davo

<% for product in @products %>
    <td><%=h %></td>
    <td><%=h %></td>
    <td><%=h %></td>
    <td><%= link_to 'Show', :action => 'show', :id => product %></td>
    <td><%= link_to 'Edit', :action => 'edit', :id => product %></td>
    <td><%= link_to 'Destroy', { :action => 'destroy', :id =>
product }, :confirm => 'Are you sure?', :method => :post %></td>
<% end %>

All Fixed !
The error was caused by Nil data in makes_id for one of the entries -
once I fixed that all came good !
cheers, Dave