lunich/table_for — Issue #13: undefined method `append_if_string=' for nil:NilClass
Author: rhnorment
Created: 2012-01-29 19:52:54+00:00
State: open

No expert here, but I love this gem. Everything works great until I put code inside a column block. Using your sample code:

<%= table_for @users, :html => { :tr => { :class => "row" } }, :stripes => %w{even odd} do -%>
<% column :name %>
<% column :email do |email| %>
<% mail_to email %>
<% end %>
<% column :company %>
<% column :phone %>
<% column :created_at, :time_format => "%Y-%m-%d" %>
<% end %>

Error occurs on the email column block. What am I doing wrong? Running Ruby 1.9.2 and Rails 3.0.9.

Kind Regards, Hunt