On 5 May 2011, at 03:04, John Merlino <[email protected]> wrote:
> Philip Hallstrom wrote in post #996721: >> On May 4, 2011, at 6:39 PM, John Merlino wrote: >> >>> I think it's cause of problem. I also noticed that the developer left a >>> comment above it. Problem is it's part of a class that gets yielded into >>> a ruby block and there's a number of partials that get rendered in the >>> new view. But I cannot find for the life of me where to_s is called >>> during execution of clicking a new button. >>> >>> I need some debugging advice for this. >> >> >> caller() should help... >> >> http://www.ruby-doc.org/core/classes/Kernel.html#M001397 > > It appears caller expects an argument. This is not a setter method. > There is no argument passed to this object, and in your example, if i > add one like 'skip', of course I receive an exception "wrong number of > arguments". > The argument to caller is optional. You might also want to install ruby-debug and add a breakpoint. Fred > -- > 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 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. > -- 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.

