In the console doing contact = Contact.find(1) finds my contact and the contact.company.company_name returned the correct company name.
Having contact.company.company_name in the index.html file returns an error: undefined method `company_name' for nil:NilClass -- Posted via http://www.ruby-forum.com/. -- 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.

