automatic assignment for a has_many association? #5

Open
oliverbarnes opened this Issue Jun 15, 2010 · 2 comments

Projects

None yet

2 participants

@oliverbarnes

hello, thanks for the great plugin, it's by far the most elegant solution I found for autocompleters.

trying to figure out how to adapt the plugin to deal with a has_many association... say for a Post having multiple Users, using the example in the readme.

would you have any pointers on how to accomplish this?

@grosser
Owner

if you want to do everything in the model something like def add_user_by_autocomplete=(name) <-> text_feld_tag 'add_user_by_autocomplete'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment