Colin Law wrote in post #1072687:
>
> I doubt whether anyone has time to wade through all that code in order
> to understand your problem (though I may be proved wrong).  You must
> try to ask a more specific question.
>
> Colin

I understand and didn't want at first because its a lot of code, but 
just wanted to make sure it was understood properly ( language barrier 
sometime). Anyway

I am trying to create a relationship among the users, in my controller I 
have 2 function create and accept.

When clicking in my view file I have link_to which create the 
friendship.
<%= link_to "Request friendship with #{customer.first_name}",
    { :controller => "friendships", :action => "create",
  :id => customer.id },
  :confirm =>
  "Send friend request to #{customer.incomplete_name}?" %>

However I do not see when refreshing that a friendship has really been 
created. In what ever states

I believe the issue is here


  has_many :requested_friends,
     :through => :friendships,
     :source => :friend,
     :conditions => "status = 'requested'"

I am just suppose to say @customer.requested_friends and this would 
allow me iterate through each of them??

Thanks again

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to