[Rails] Re: Re: Finding out where a variable is defined

2010-01-22 Thread John Merlino
Colin Law wrote: 2010/1/22 John Merlino li...@ruby-forum.com: terminal and nothing happens. Have you put the line debugger at the appropriate point to break in your app? That is what it means by your app calling the debugger method. You should then see the break happen in the same

[Rails] Re: Re: Finding out where a variable is defined

2010-01-22 Thread John Merlino
John Merlino wrote: Colin Law wrote: 2010/1/22 John Merlino li...@ruby-forum.com: terminal and nothing happens. Have you put the line debugger at the appropriate point to break in your app? That is what it means by your app calling the debugger method. You should then see the break

[Rails] Re: Re: Finding out where a variable is defined

2010-01-22 Thread Marnen Laibow-Koser
John Merlino wrote: [...] I was able to fix the above error. However, I try to inspect what the value of resource is and I get this using the p command as the rails guide suggests: (rdb:1) p resource NameError Exception: undefined local variable or method `resource' for

[Rails] Re: Re: Finding out where a variable is defined

2010-01-22 Thread John Merlino
Marnen Laibow-Koser wrote: John Merlino wrote: [...] I was able to fix the above error. However, I try to inspect what the value of resource is and I get this using the p command as the rails guide suggests: (rdb:1) p resource NameError Exception: undefined local variable or method

[Rails] Re: Re: Finding out where a variable is defined

2010-01-22 Thread Marnen Laibow-Koser
John Merlino wrote: [...] I'm confused when I do this: (rdb:5) p read_authorized?(resource) true It returns a value of true. But it's undefined? No. Based on what you've said, resource is undefined, but read_authorized? Is written in such a way that if it is passed an undefined