undefined method `span_size' for #<Arbre::HTML::TextNode:0xaf250ddc>
gabrielcaires opened this issue · 6 comments
activeadmin (1.0.0.pre)
When I have 2 'columns' on same page, rails throws this message:
undefined method `span_size' for #Arbre::HTML::TextNode:0xaf250ddc
Here's an example:
ActiveAdmin.register_page "Dashboard" do
menu :priority => 1, :label => proc{ I18n.t("active_admin.dashboard") }
content :title => proc{ I18n.t("active_admin.dashboard") } do
columns do
end
columns do
end
end
end
First, this is the wrong repository
Second, there should only be one columns
call, as illustrated in the docs.
The demo have 2 twos columns...
It is wrong, no?
https://github.com/gregbell/demo.activeadmin.info/blob/master/app/admin/dashboards.rb
Ah, you're right.
This error turns out to have nothing to do with using columns
twice. Instead, it occurs when you call columns
and don't provide any column
calls for it to use.
# causes the error
content do
columns do
end
end
# doesn't
content do
columns do
column {}
end
end
My application have two 'columns' with more of 1 column inside and show the
same error.
I am using rails 4.0.2.
The demo version is different of the repository?
Thanks
Em 06/02/2014 13:05, "Sean Linsley" notifications@github.com escreveu:
Ah, you're right.
This error turns out to have nothing to do with using columns twice.
Instead, it occurs when you call columns and don't provide any columncalls for it to use.causes the errorcontent do
columns do
endenddoesn'tcontent do
columns do
column {}
endendReply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-34345388
.
Can you post the contents here?
I’m going to close this since you haven’t responded. Please feel free to update this issue with additional information so it can be reconsidered.