Has many relationship with rails_admin

Hi,

I’m using rails admin with the following model types

class Course
has_many :schedules
end

class Schedule
belongs_to :course
attr_readonly :course_id
end

When I’m editing a course instance I would like to see a button to
create a new schedule. All I can see are the list of existing schedules
but this is not really a correct view. Schedules are owned by a Course
and the course_id field on Schedule should be immutable.

What I should be able to do is delete schedules from a course and add
new ones but not reassign schedules. Has anybody got this kind of
association working with rails admin in a nice way.

Regards

Brad

Sorry but you’re asking on the wrong list. This is the Ruby list, not
the Rails list. Try the mailing lists and forums linked from