gregbell/active_admin — Issue #791: selectbox with static values 
Author: pablobslima
Created: 2011-11-28 17:25:45+00:00
State: open

I'm trying to make a selectbox with static fields (Brazilian states)
tried as follows:

f.input :uf, :as => :select, :collection => ([["AC", "AC"], ["AL","AL"], ["AP", "AP"],
["AM", "AM"], ["BA", "BA"], ["CE", "CE"],
["DF", "DF"], ["ES", "ES"], ["GO", "GO"],
["MA", "MA"], ["MT", "MT"], ["MS", "MS"],
["MG", "MG"], ["PA", "PA"], ["PB", "PB"],
["PR", "PR"], ["PE", "PE"], ["PI", "PI"],
["RJ", "RJ"], ["RN", "RN"], ["RS", "RS"],
["RO", "RO"], ["RR", "RR"], ["SC", "SC"],
["SP", "SP"], ["SE", "SE"], ["TO", "TO"]])

It's not working, can anyone help me?

[]',s

Pablo Lima