Re: formtastic / activeadmin

Sean L.
Mon, 06 Feb 2012 18:31:35 -0000

Remco Swoany wrote in post #1025137:
> tried this:
>
> f.inputs "Appartment Details" do
>       f.input :assets do |asset_fields|
>           asset_fields.file_field.input :asset, :as => :file
>      end
>     end
>
> there is no upload button available. What i am doing wrong?

You need to include f.buttons in order to be able to submit, so...

f.inputs "" do

  f.input do ||
    ...
  end

  f.buttons

end