thank you for your reply Colin, here's what we're trying to do:

The app has a farm model and each farm has nested plant models, nested 
under each plant is a feeding model. Say a farm has 16 plants, we'd like to 
be able to feed all the plants at once and not create a new feeding for 
each plant but retain the ability to create an inidividual feeding under a 
specific plant.

currently the new feed method looks like this:
    def new
    @farm = Farm.find(params[:farm_id])
    @plant = Plant.find(params[:plant_id])
    @feed =

and the create method for feeds:

def create

    @farm = Farm.find(params[:farm_id])
    @plant = Plant.find(params[:plant_id] )
    @feed =

    respond_to do |format|
        format.html { redirect_to farm_plant_feeds_path(@farm, @plant, 
@feeds), notice: 'feed was successfully created.' }
        format.json { render :show, status: :created, location: 
farm_plant_feeds_path(@farm, @plant, @feeds)}
        format.html { render :new }
        format.json { render json: @feed.errors, status: 
:unprocessable_entity }

On Tuesday, October 18, 2016 at 3:08:43 AM UTC-4, Colin Law wrote:
> On 18 October 2016 at 00:29, Chris Vukin < <javascript:>> 
> wrote:
>> Hello, I'm wondering about how to accomplish saving the same nested form 
>> on an entire collection of objects that the form is nested under.. I'm not 
>> finding much when googling around, is this something that is possible with 
>> rails?
> Could you give more details of what you want to do? Give us an example of 
> models, associations and what is to be achieved.
> Colin

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

Reply via email to