Newbie question:

want to following code to migrate to formtastic:

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

<% if asset_fields.object.new_record? %>
<p>
<%= asset_fields.file_field :asset %>
</p>

<% 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

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to