[Rails] Select List to change type of STI class
Joshua Schairbaum
devlists-rubyonrails at devlists.com
Sat Apr 1 01:25:54 GMT 2006
I would say just drop the first option for your array. I think the
select only takes one option as a string... ie ['Author', 'Editor',
'Administrator'] or if you want something different...not in your case
though [['Author', 1], ['Editor', 2], ['Administrator', 3]] Rails uses
the first item in the array as the list option and the second as the
value, if you want them to be different. Else, just use a single value.
--
Posted with http://DevLists.com. Sign up and save your mailbox.
More information about the Rails
mailing list