Create and edit with has_and_belongs_to_many

What is your controller code that processes the form and the response from the text field?