Thanks very much. Could you give me some more advice how can I do this?I still don't know how to join the two tables...thanks again.
> You need to joins the users table if you want to order by a column on > it. > > Fred > > > in the article.rb: > > belongs_to :user > > named_scope :by_user_value,:order => "......" > > > What I want to know is,how can I finish the :order=>"...." parameters to > > sort the articles by there user's "value"?Can somebody help me with > > that?Thanks a lot... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

