Re: [Rails] Help with many-to-many nested form

2012-05-21 Thread Abram
Colin, thanks for your response. I have moved a bit further on my original problem of updating the through table. I now have in my *controller*: def new @style = Style.new @style.stylefeatures.build @features = Feature.all end def create @style = Style.new(params[:style])

Re: [Rails] Help with many-to-many nested form

2012-05-21 Thread vishal singh
https://github.com/vishalsingh/multiple_upload_photo check this may be helpful for you On Mon, May 21, 2012 at 3:08 PM, Abram funkdif...@gmail.com wrote: Colin, thanks for your response. I have moved a bit further on my original problem of updating the through table. I now have in my

[Rails] Help with many-to-many nested form

2012-05-20 Thread Abram
I have a form used to create a 'Style'. The style may have any number of 'features' which correspond to 'Feature' models in the features table. I would like to add the appropriate entries to a relationship table ('stylefeatures') whenever a Style is created. Here is a breakdown of my models:

Re: [Rails] Help with many-to-many nested form

2012-05-20 Thread Colin Law
On 20 May 2012 21:01, Abram funkdif...@gmail.com wrote: I have a form used to create a 'Style'. The style may have any number of 'features' which correspond to 'Feature' models in the features table. I would like to add the appropriate entries to a relationship table ('stylefeatures') whenever