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 8747817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:25:12+00:00 2026-06-13T12:25:12+00:00

I am sure this is a silly question, but I have been searching for

  • 0

I am sure this is a silly question, but I have been searching for some time now without finding an answer.

I have a nested form using simple_forms. I get all the child objects successfully with

 = f.simple_fields_for :fund_levels do |fl|
     = fl.input :title
     = fl.input :description
     = fl.input :maxnumber
     = fl.input :price

This gets all existing fund_levels. However, I also want to add a blank set at the end of the list. So that if there are no existing fund_levels, it simply shows a blank “subform”, if there are two existing fund_levels, it will show those two plus a blank “subform”.

Is there an easy way of doing this?

  • 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-13T12:25:13+00:00Added an answer on June 13, 2026 at 12:25 pm

    Build it in your controller:

    @object.fund_levels.build
    

    where @object is the object being passed to form_for.

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

Sidebar

Related Questions

I'm not sure if this is a silly question or not but I have
Guys I know this question is silly but just to make sure: Having in
Sorry if this question sounds a little silly, but I am not sure what
This is quite probably a very silly question but I need to be sure.
I'm sure this question has been asked and answered before, but my Google-fu is
I'm not exactly sure whether or not this is a silly question, but I
This is a silly simple question I’m sure, but since I’m new to Magento,
This is probably a silly question but i haven't been able to find the
I'm new to development and I'm sure this is a silly question but i
Not sure if this is a silly question, but I just noticed this: public

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.