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 `resource' for >> #<VerbsController:0x1061102e0> > > The error means just what it says. You haven't defined "resource" at > that point in your code. Try using the l command in the debugger to > make sure you're where you think you are. > > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > mar...@marnen.org
I'm confused when I do this: (rdb:5) p read_authorized?(resource) true It returns a value of true. But it's undefined? -- 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 rubyonrails-t...@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.