[Rails] Re: Re: can not redirect to nil

2014-08-05 Thread Jaimin Pandya
You have not shown us the code where you set expensescounter_id, or the code that you expect that value to be set. You have shown us the code where expenses_counter.id would be setup but presumably expensescounter_id is an attribute of a different object. I following Agile web development

Re: [Rails] Re: Re: can not redirect to nil

2014-08-05 Thread Colin Law
On 5 August 2014 09:46, Jaimin Pandya li...@ruby-forum.com wrote: You have not shown us the code where you set expensescounter_id, or the code that you expect that value to be set. You have shown us the code where expenses_counter.id would be setup but presumably expensescounter_id is an

[Rails] Re: Re: can not redirect to nil

2014-08-04 Thread Jaimin Pandya
That code is just returning an object. It is not allocating a value to @line_item.expensescounter. Yes. When i click on Add to count button, i got expensescounter_id comes nil. BUT it should have some value. How could i do this? -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Re: Re: can not redirect to nil

2014-08-02 Thread Jaimin Pandya
By working out why it is nil. It is called debugging. Have a look where you setup that value and if necessary put more logging in till you see where the problem is. I will find out why it is nil. Thank you for your help. Kind regards. -- Posted via http://www.ruby-forum.com/. -- You