我想在列中的这些输入旁边获得一个标签。我想要输入左侧的标签。我尝试了几种不同的方法来添加标签,但我没有运气。也许你可以帮我映射这些输入,这样它就不会给我“ #<AdminUser:0x007ff1f5661090>
”
相关代码
panel "Order Details" do
attributes_table_for resource do
columns do
column do
span image_tag order.proof_url(:thumb).to_s
end
column do
columns do
column do
span order.id
end
column do
span order.start_date
end
end
columns do
column do
span order.admin_user
end
column do
span order.end_date
end
end
columns do
column do
span order.customer
end
column do
span order.order_status
end
end
columns do
column do
span order.order_category
end
column do
span order.order_priority
end
end
columns do
column do
span order.order_type
end
end
end
end