First of all, thanks for taking the time to recommend a better way of
displaying my problem!

Here is the gist http://gist.github.com/155971

The problem arises when I use the helper method in my
application_helper.rb to create new fields for the nested form.

In my controller I build one instance of the invoice_item
(@invoice.invoice_items.build) and that field works just fine, when
viewing the parameters, it is the section that reads:

"0": !map:HashWithIndifferentAccess
      project_id: "8"
      _delete: "0"
      id: "31"
      amount_billed: "32.00"

It is the one above (in the params from the gist) that that looks
similar (project_id: 9, amount_billed: "68") that is the problem, it
is getting nested too deep under "invoice_items"…unnecessarily so it
would seem. I have added my Invoice and InvoiceItems models to the
gist as well.

Thanks for your help!

On Jul 26, 3:10 pm, Alpha Blue <[email protected]>
wrote:
> Three things I can offer advice on here.  You seem to be like me in you
> post a lot of information..
>
> So, first post all that code on pastie.org or gisthub so it's ordered
> nicely and easy to view.  Then, post the link back here.
>
> Second, you ran a <%= debug(params) %> in your view to verify all
> parameters?
>
> Third, your field does exist in the table you are querying?
>
> If all those checks out, I'll see if i can see anything on your new view
> code.  Four eyes are better than 2. :)
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to