You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
Hey, thank you very much for developing this wonderful gem! It's done my life easier.
I'm using it in my project for 2 of my forms and in one I'm finding that having two types of add-links (with different model_object) could be useful. It's a situation similar to this:
<%= nested_form_for @receipt do |f| %>
...
<%= f.link_to_add "Add a good", :products, :model_object => Product.new(:kind => 'good') %>
<%= f.link_to_add "Add a service", :products, :model_object => Product.new(:kind => 'service') %>
<% end %>
I think right now this is not supported, only one blueprint is created and both links would insert a product of type 'good'.
Do you think it could be modified easily to do it? Do you see any drawbacks? Manipulating the code in your Railscasts nr. 197 (nested model form pt. 2) this is pretty easy but there are no blueprints there.
This could also help to work with polymorphic associations. Would the gem work with polymorphic associations, btw?
The text was updated successfully, but these errors were encountered:
Hey, thank you very much for developing this wonderful gem! It's done my life easier.
I'm using it in my project for 2 of my forms and in one I'm finding that having two types of add-links (with different model_object) could be useful. It's a situation similar to this:
I think right now this is not supported, only one blueprint is created and both links would insert a product of type 'good'.
Do you think it could be modified easily to do it? Do you see any drawbacks? Manipulating the code in your Railscasts nr. 197 (nested model form pt. 2) this is pretty easy but there are no blueprints there.
This could also help to work with polymorphic associations. Would the gem work with polymorphic associations, btw?
The text was updated successfully, but these errors were encountered: