socialforge/app/models/school.rb

10 lines
138 B
Ruby

class School < ActiveRecord::Base
attr_accessible :name, :province,:pinyin
has_many :courses
def to_s
self.name.to_s
end
end