vegantech/sims

View on GitHub
app/views/assets/_asset_form.html.erb

Summary

Maintainability
Test Coverage
<% suffix="" unless defined? suffix %>
<div id = "assets<%=suffix%>" >
  <%= hidden_field_tag "#{parent}[existing_asset_attributes][qqq]" ,'' %>
  <%= render :partial => 'assets/asset', :collection => form.object.assets_for_user(current_user), :locals => {:parent => parent} %>
  <%= render :partial => 'assets/other_asset', :collection => form.object.assets_for_other(current_user), :locals => {:parent => parent} %>
</div>

<p>
  <%= add_asset_link "Add a file or link", "#{parent}",suffix %>
</p>