Hi, I have something like this in an partial template: <% @fields.each { |field| %> <% m = host.method(field) %> <td><%= m.call %></td> <% } %> This does not work because host.methods does not have the attribute accessors methods! But if I do this: <% @fields.each { |field| %> <% host.name %> <% m = host.method(field) %> <td><%= m.call %></td> <% } %> the host.methods returns all the attributes that did not return before. So before I can call a method with host.method(field) I must call it normally, for instance, host.name! What am I doing wrong? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---