TechHui

Hawaiʻi's Technology Community

I am writing an application where a :subject has_many courses

For the new functionality, it makes sense to use new_subject_course(subject, course),

But for edit, do "best practices" say edit_course(course), or edit_subject_course(subject, course)?

Since course belongs_to subject, the code can find the subject without an explicit id passed in. However, using edit_subject_course makes the edit and new forms very similar.

Just wondering.

Views: 23

Sponsors

web design, web development, localization

© 2024   Created by Daniel Leuck.   Powered by

Badges  |  Report an Issue  |  Terms of Service