Displaying 1 result from an estimated 1 matches for "data_list_for".
2011 Apr 05
0
block method output is generating twice
write a block method to print a list
def column (&block)
if block_given?
content_tag(:li, capture(self, &block))
else
content_tag(:li, "")
end
end
and using it as
<%= data_list_for @leads, [" :10", "Age:30", "Contact:140", "Phone:
140", "Email:180", "Company:100", ""] do |l| %>
<%= l.column { |c| link_to " ".html_safe, "leads/details/
#{c.object.id}", :class=>:plus,...