Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many to Many Relationship "Add new entry" ? #402

Open
markwpearce opened this issue May 14, 2012 · 1 comment
Open

Many to Many Relationship "Add new entry" ? #402

markwpearce opened this issue May 14, 2012 · 1 comment
Labels

Comments

@markwpearce
Copy link
Contributor

I really like the new Has-Many/Belongs-to interface in Locomotive 2 -- especially the "+ Add New Entry" link that lets you create a new content entry on the spot.

I'm wondering of it's possible to add the this functionality to a "Many-to-Many" relationship?

For example:

The "Sport" model has a many-to-many relationship with "Athlete" model. (A sport has many athletes, and an athlete can play many sports).

If I were adding an entry to "Sport", say Tennis, I may want to add some previous Athletes I've already put in ("Jane Doe", "Bob Smith"), but also create a new Athlete, that would automatically add to its "Inverse" list "Tennis".

@did
Copy link
Member

did commented May 13, 2013

hey Mark, that's not in my top priority list but feel free to submit a PR, I will accept it for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants