On Sat, Dec 12, 2009 at 8:18 AM, RubyonRails_newbie
<[email protected]> wrote:

> To help keep privacy issues to a minimum on my app, I want to be able
> to hide the personal info about a user, until friendship between 2
> users is accepted.

> However - once friendship is requested, the 'requestor' can view the
> requestee's profile. Not ideal.

Sooo... why did you write it that way?

> Is there a way of hiding specific info until the requestee has
> accepted the friend(buddy) request?

Yes, it's called "programming".  :-)

Hint: I'd expect to see something like

  if @logged_in_user.is_friends_with?(@user)

somewhere in your controller.

Hint #2: If you wrote the tests first for the behavior you want, you'd
likely find the possible solutions much clearer.

FWIW,
-- 
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.


Reply via email to