On Sat, Jul 21, 2012 at 4:31 PM, James Harris <[email protected]> wrote: > I am at a loss why this is not working.....
I'm at a loss as to why you think it should... :-) > class ContactsController < ApplicationController > def index > @contacts = Contact.all > > @company = Company.find(@contact.company_id) What would you expect here? @contact above is not defined in the code you're showing us. Are you trying to display the company name of one contact or all? What is the association between Contact and Company? -- Hassan Schroeder ------------------------ [email protected] http://about.me/hassanschroeder twitter: @hassan -- 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.

