Did any of you guys manage to get Active Admin with Carrierwave working?
When I installed AA everything worked fine but the image file upload fields were plain text fields so added following:
ActiveAdmin.register Club do
form do |f|
f.inputs "Club" do
f.input :league
f.input :name
f.input :image, :as => :file
f.input :approved
end
f.buttons
end
end
Now it's displayed as a file upload field and I can select a file but after I submitted the form nothing changed. There's still no image and the image field is empty. Anyone knows what else to do to get it working?
Finally found the problem.
form do |f|
needs to become:
form(:html => { :multipart => true }) do |f|
I still don't know why console is not working but well, at least I can upload new images now :) Thanks a lot for the help, bruno077!