search for: each_property

Displaying 1 result from an estimated 1 matches for "each_property".

2010 May 13
6
to "loop through" the instance variables of ActiveRecord?
...t; and "</td>", is there a way to "loop through" them, at least in the debug mode, no matter there is getter methods to get them or not, or at least the ones with the getter methods? Such as <% @stories.each do |s| %> <%= "<tr>" %> <% s.each_property do |i| %> <%= "<td>#{h i}</td>\n" %> <% end %> <%= "</tr>\n" %> <% end %> ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&q...