> Simple debugging can be performed using Logger.info, which inserts
> into the log file (eg log/development.log), so you can confirm this by
> inserting, before the problem line
> Logger.info( "expensescounter is: #{@line_item.expensescounter}"
I used logger.info for debugging and it insert in development.log file
that @line_item.expensescounter is nil.
> If it is nil, if you cannot see the problem, you can put additional
> logs in to home in on the problem.
> Also in the log file you will find useful information showing the
> parameters being passed into the action.
I have attached development.log file(productionlog.odt) in my question.
How could i solve this error?
Kind regards.
--
Posted via http://www.ruby-forum.com/.
--
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+unsubscribe@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/40a3c0944e8eb9b0cee0446c8b696576%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment