Relationships are handled in the :user_columns declarations just like other column types. So, in the example below, Team has_one :coach. In this case, the :show_view is called :name and combines the :first_name and :last_name fields of the :coach instance using an empty space and uses that value as the column contents. The :edit_view is called :select, which is the default, and creates a dropdown. You could use the same modifiers (:fields and :separator) to populate the dropdown with customized values.

Streamlined.ui_for(Team) do

   user_columns   :id, {:read_only => true},
                  :name, {:link_to => {:action => "edit"}},
                  :sport, {:popup => true},
                  :coach, {
                        :show_view => [:name, 
                                      { :fields => [:first_name, :last_name], :separator => " " },
                        ],
                        :edit_view => [:select]}

end

There are many available :show_ and :edit_views, plus the model is extensible. Here are the currently available versions.

Show Views

NameUseAvailable
LinkLink to related tableAll
CountShows number of related items1-to-n
ListDisplay data from related models1-to-n
SumCalculate sum of field on related items1-to-n
AverageCalculate average of field on related items1-to-n
NameDisplay data from related itemn-to-1
EnumerableTreat association as an enumerablen-to-1
GraphDisplay sparklines graph of related items1-to-n

The default for show-views for a 1-to-n relationship is count, and for a 1-to-1 is name.

Edit Views

NameUseAvailable
Inset TableMaster-detail viewAny
MembershipAllows user to select items1-to-n
Polymorphic MembershipAllows user to select related items of polymorphic relationship1-to-n
WindowShows related items in table in popup window1-to-n
SelectSelect related item from dropdownn-to-1
Polymorphic SelectSelect related polymorphic item from dropdownn-to-1
Enumerable SelectTreat association as an enumerablen-to-1
Filter SelectLike membership, but uses Ajax to allow filtering of possible matches1-to-n