formtastic / activeadmin

Remco Swoany
Wed, 05 Oct 2011 13:43:33 -0000

Newbie question:

want to following code to migrate to formtastic:

<% f.fields_for :assets do |asset_fields| %>

<% if asset_fields.object.new_record? %>

<%= asset_fields.file_field :asset %>


<% end %>
<% end %>


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?

Grtz..Swoany