On May 4, 2011, at 6:39 PM, John Merlino wrote:

> Hey all, application completely breaks down in production mode. I
> followed the execution file by file line by line and yet I cannot figure
> out where an instance variable is being generated from. But I have a
> suspicion. This method right here:
> 
>  # neeeded becasuse of a rails bug
>  def to_s
>    "#{self.class.name.underscore}__#{object_id}"
>  end
> 
> 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

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to