rails joins with module name
问题 Here is how to join two models User.where(:id => 1).joins(:posts) but how to join two models with module/namspace @schedules= Swimming::Classschedule.joins(:Swimming::Slot).where(:date => @date) seems not working properly (with error message) :Swimming is not a class/module UPDATE I have updated to @schedules= Swimming::Classschedule.joins(:swimming_slots).where(:date => @date) and I do have this table create_table :swimming_classschedules do |t| t.integer :slot_id t.integer :coach_id t