I am displaying an ActiveAdmin registered model to the user.
ActiveAdmin.register ConfigurationFile do
show do
attributes_table do
row :name
row :filename
row :content
end
end
end
:content
is a string with newlines, but when rendered by Arbre newlines and extra whitespace are dropped.
How can I display :content
without dropping extra whitespace and newlines?
Take a look at html_safe: