I have always found the behavior of the bound select form helper to be a little bit odd in relation to how the :text_method and :value_method options interact with the bound object. The current behavior calls the :value_method on the bound object to discover which option is selected. This basically assumes that you have a tree type structure, where the options in the select field are the same as the bound model object. While I can see this use case happening, the more common use case seems like it would be a normal one to many relationship with a *different* model.
I wrote a patch that switches the bound select helper to assume a more normal one to many relationship. In short, it uses the passed in method to match the bound model to the value method of the options. This requires a change to the 1.0 spec suite as it is a change in behavior. Let me know what you think, http://gist.github.com/66624 Andy Delcambre --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
