On 5 August 2014 10:45, Jaimin Pandya <li...@ruby-forum.com> wrote: >> expensescounter_id should be set when you add the expensescounter to >> the lineitem. That is the code you need to debug, or show us. > > How could i debug that code? I use logger like > "logger.debug "expensescounter_id is #{params[:expensescounter_id]}"" > AND > expensescounter_id comes nil. > > I can provide more code file also which is require.
As I have already said you need to debug or show us the code where you tell the individual line item that it owns that particular expensescounter (or the code where you tell the expenses that it belongs to that particular line item, whichever way you do it). Presumably somewhere you have called current_expensescounter to create it, but then what have you done with it? 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuwFh1Nifkq6RqqnOm4wcBBKRXWhqTUvwjt2CrN05zuZw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.