Bill Lazar
unread,May 25, 2012, 2:43:52 PM5/25/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rails_admin
I have a fairly simple (I hope) set up that just doesn't work right and I'd appreciate assistance in properly configuring it.
Model is Event, with a field called status, in the model I have a method status_enum that returns an array of strings and attr_accessible on the status field. In rails_admin.rb inside the Event model block I have:
config.model Event do
edit do
field :status
end
end
Result is the edit page shows the current value of the field, read only.
I also tried these variations with no different/better results:
config.model Event do
edit do
field :status, :enum
end
end
config.model Event do
edit do
field :status, :enum do
enum_method do
:status_enum
end
end
end
Thanks,
Bill