[Rails] "for column in..." not picking up _id columns
Ryan
ibwold at hotmail.com
Thu Apr 27 21:37:16 GMT 2006
My code executes fully:
<% for column in ModelName.content_columns %>
<th><%= column.human_name %></th>
<% end %>
but it does not pick up any columns in my model's table that end in
"_id".
Is this by design?
Is there a helper method that will reference the related tables? Or
will I need to code the column titles and detail records by hand?
Learning...
--
Posted via http://www.ruby-forum.com/.
More information about the Rails
mailing list