Jak wyświetlić tylko wartość na stronie edycji w Active Admin
Mam formularz edycji w Active Admin. Potrzebuję pola jako tylko do odczytu.
Moja aktualna strona edycji jest podobna
Potrzebuję tej strony tak
Jak można to zrobić. Mój kod strony edycji formularza jest podobny
form :html => { :enctype => "multipart/form-data" } do |f|
f.inputs "Users" do
f.input :device, :label => 'Device', :as => :select, :collection => DEVICE, :include_blank => false
f.input :current_address, :label => 'Current Address', :as => :string
end
end
Proszę pomóż.