I have an attr_accessor on my model that should contain one of three values. How do I code this? Doing three :as => :radio elements just creates three yes/no fields, which is not what I want.
Maybe this is a feature request, maybe I'm just too tired to find the right docs.
Hi, to do this you would need one :radio input, and you would need to supply a :collection option to it which can be an Array of objects, or perhaps in your case, an Array of Strings:
f.input :foo. :as => :select, :collection => ['cat', 'dog', 'mouse']
This should be in the rdoc documentation, but isn't, so I'll create a new issue for that.