Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9251473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:42:28+00:00 2026-06-18T10:42:28+00:00

I am using Simple_form with Decent_exposure, Strong_parameters I have the following setup and I

  • 0

I am using Simple_form with Decent_exposure, Strong_parameters I have the following setup and I can post to households but nothing gets posted to neighbors

model

class Household < ActiveRecord::Base
 include ActiveModel::ForbiddenAttributesProtection

has_many :neighbors
 accepts_nested_attributes_for :neighbors

view

= simple_nested_form_for household do |f|
  = f.input :household_name
  = f.simple_fields_for :neighbor, Neighbor.new do |neighbor_form|
  = neighbor_form.input :first_name
  = neighbor_form.input :middle_name
  = neighbor_form.input :last_name
  = neighbor_form.input :address

  = f.button :submit

Based on the following from my log it looks like the form is working but it is not saving to neighbors the nested model – I have tried both simple_fields_for :neighbor do and simple_fields_for :neighbor, Neighbor.new do hoping that creating a new neighbor would help but it doesn’t.

Parameters:{"utf8"=>"✓",
authenticity_token"=>"cVTteqPFa0JMoFi/ys0wAmNIQghubADv5lbPBr6hyq0=",
"household"=>  {"household_name"=>"Deew", "neighbor"=>{"first_name"=>"Bill",
"middle_name"=>"", "last_name"=>"Ew", "street"=>"we"}}, "commit"=>"Create Household"}
(0.1ms)  begin transactionSQL (0.7ms)  INSERT INTO "households" ("created_at",
"household_name", "name", "updated_at") VALUES (?, ?, ?, ?) 
[["created_at", Sun, 03 Feb 2013 03:02:56 UTC +00:00], ["household_name", "Deew"], 
["name", nil], ["updated_at", Sun, 03 Feb 2013 03:02:56 UTC +00:00]](0.8ms) 
commit transaction
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:42:30+00:00Added an answer on June 18, 2026 at 10:42 am

    Make sure that you include neighbors_attributes in the allowable parameters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using https://github.com/plataformatec/simple_form and am trying to send a extra parameter. I have
I'm using simple_form with Bootstrap and I would like to have my Remember me
I've been using simple_form for rails together with HAML I have a number of
I'm using simple_form with Rails 3.2.5. I have a form that looks like this:
Using Simple_form how do I create a form that do a Post to specialities#create?
Using simple_form , I have a simple input like this: <%= f.input :email %>
I'm using Simple_Form with Rails 3 and it's great. I have a simple question.
I am using simple_form and want to override readers for model attributes. Thus following
I'm using simple_form and i have a select menu with 3 values, which get
We have setup a simple form using Web Forms For Marketers on our Sitecore

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.