Sunday, February 13, 2011

[Rails] Re: is equal operator to check current user is owner

On Feb 13, 7:47 am, Frederick Cheung <frederick.che...@gmail.com>
wrote:
> On Feb 12, 10:01 am, msaspence <msaspe...@gmail.com> 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
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate