I'm generating a table of invoice items (Number. Original. Balance and
My problem is the fourth column. I have the customer_id, which I can
display as link (which links to the correct custom record). But I want to
display each customer's name rather than his ID as the text of the link.
How can I modify the code for this forth column:
<td> <%= link_to(i.customer_id, # really want customer's name here
:controller => 'customer',
:action => 'show',
:id => i.customer_id)
I've got a customers table in the DB and a Customer model.
Thanks in Advance,