On 13 February 2011 11:25, msaspence <[email protected]> wrote: > > > On Feb 13, 7:47 am, Frederick Cheung <[email protected]> > wrote: >> On Feb 12, 10:01 am, msaspence <[email protected]> wrote: >> >> >> >> > I'm using the Authlogic so have followed the instructions >> > herehttp://rdoc.info/github/binarylogic/authlogic/master/Authlogic/TestCase >> >> Have you tried sticking some breakpoints in your code to see how >> current_user and @thing.owner differ? >> > > sorry I'm still getting into rails and haven't got round to debugging
Have a look at the Rails Guide on debugging. Use ruby-debug to allow you to break into your code and then you can inspect data and follow the program flow. Colin > yet > > but they have the same data but are different objects > if I do puts user and puts user.id for each this is what i get > > #<User:0x00000102e73490> > 1 > #<User:0x00000104291698> > 1 > > -- > 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.

