A ghetto but simple and quick way to figure out what is going on, is to do a logger.info in your controller action of these:
logged_in? @user @logged_in_user I think you will quickly identify your problem then On Nov 29, 10:00 pm, Hassan Schroeder <[email protected]> wrote: > On Sun, Nov 29, 2009 at 2:49 PM, RubyonRails_newbie > > <[email protected]> wrote: > > If I view my profile within my application, I can see 2 links. 1 = get > > in touch and 2 = friend request. > > > Obviously if this is my own profile, I dont want to contact myself, > > nor add myself as a friend. > > When added to the page which shows my profile, it looks like this: > > > <% if logged_in? and @user != @logged_in_user %> > > However - even with this in place, I still get the links to contact > > myself, and add myself as a friend. > > So what are the values of those three variables at that point? You > don't show how any of them are being set... > > -- > Hassan Schroeder ------------------------ [email protected] > twitter: @hassan -- 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.

