ActiveScaffoldのこんな奴#の解決法を発見
公式のFAQにあった。
class User < ActiveRecord::Base def to_label "User: #{username}" end end
http://activescaffold.com/tutorials/faq#object-ids
これでUserカラムのレコードにto_labelメソッドの戻り値が設定される。
公式のFAQにあった。
class User < ActiveRecord::Base def to_label "User: #{username}" end end
http://activescaffold.com/tutorials/faq#object-ids
これでUserカラムのレコードにto_labelメソッドの戻り値が設定される。