Nested forms fields_for :prices, repeat forms few time?

There is no any field_for method. Also your question isn't clear. What actually you want to do?

Show only one device? Wich one? First, last?

UPD commercial_offer. Rb: class CommercialOffer :prices accepts_nested_attributes_for :prices accepts_nested_attributes_for :devices, :allow_destroy => true end Your view device %> _new_price partial Quantity: Device id.

Yes, I made an error. I have 3 tables, first commercial_offers with field name, second devices, with few field, like name, description, and last prices with commercial_offer_id, device_id, and price field, I selected some devices to commercial offer, they recorded in prices table, so I want to add price for all asociations, it almost working, but records in edit view are multiplicationing, if I have 2 devices in commercial offer I get 4 records in view if I have 3 I get 9 records in view – Ignas Rytoj Apr 26 at 18:20 but when I am using fields_for :price, it gives me good count of fields, but it cannot save it – Ignas Rytoj Apr 26 at 18:25 ok show your models and show your entire view. But I still don't understand you – fl00r Apr 26 at 18:27 I added new more information to question – Ignas Rytoj Apr 26 at 18:42 1 JÅ«s esate laukiami – fl00r Apr 26 at 20:43.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions