Is it me or is my model getting the created_at from the wrong model!
I have a HABTM relationship between Problems and Tags. In one of my
controller I do the following:
@tag = Tag.find_by_name @params[:id]
In my view I do this:
<% @tag.problems.each do |problem| %> ... <%= problem.created_at %> ... <% end %>
Now, how come the created_at is being taken from the HABTM
relationship instead of the problem table itself? This does not make
sense to me. How would I get created_at from Problem table instead
of problems_tag table?
Thanks for your help?
http://www.soen.info - Index of online software engineering knowledge
http://www.cusec.net - Canadian University Software Engineering
http://www.soenlive.com - Presentations from CUSEC