This is my first Ruby on Rails application so please bear with me.
I have a Find that looks like this:
:select => “records.id, records.firstname, records.lastname,
cities.city, departments.department, countries.country”,
:order => column_name,
:joins => “JOIN cities ON cities.id = city_id JOIN countries ON
countries.id = country_id JOIN departments ON departments.id =
An it return the following objects:
department: Information Technology
Up to this point all is good.
However, when I try to output these values doing this:
<td><%=h record.firstname %></td> <td><%=h record.lastname %></td> <td><%=h record.city %></td> <td><%=h record.country %></td> <td><%=h record.department %></td>
The fields that come from the Records table are displayed. However,
the fields for City, Country and Department come out as blanks, even
though in the debug output it shows they contain data.
What am I doing wrong?!
Thank you in advance.