[Rails] Re: Rails day 2: where is my association?

zac elston
2006-01-25T20:51:30Z

> <% for column in Package.content_columns %>
> <%=h package.send(column.name) %>
>   <% end %>
>
> this won?t show the group_id

answering part of my own question..


http://railsmanual.org/class/ActiveRecord::Base/content_columns

content_columns()
Returns an array of column objects where the primary id, all columns
ending in "_id" or "_count", and columns used for single
table
inheritance have been removed.

-zac

--
Posted via http://www.ruby-forum.com/.