Hello all. I'm a noob with Ruby and Merb, so I hope this one is an easy one:
I have two models, Article and Author. One article can have many authors and one authors can have many articles. So, basically, I've assigned "has n, :resource, :through => Resource" to both (with :resource = :authors or :articles respectively). In my article edit view, I've put a multiple select to catch all the authors: <%= select :authors, :multiple => true, :text_method => :name, :value_method => :id, :collection => Author.all %> This works, in the sense that it displays all of the authors available, but I'm not able to save the data "attached" to it when I submit the form. By the way this is the error I get: No Method Error 500 undefined method `collection=' for "1":String How can I do it? Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
