active_admin_editor
active_admin_editor copied to clipboard
Please, write some tutor in README.rb file, how to show html.
Here is how we will input html code:
ActiveAdmin.register Page do
form do |f|
f.inputs do
f.input :title
f.input :content, as: :html_editor
end
f.buttons
end|
How to write show ?
Answer:
show do |hotel|
attributes_table do
row 'Hotel description' do
raw(hotel.description)
end
end