Formtastic: radio button collection image_tag

Hello,

I would like to ask, how am I going to integrate an image tag during
edit
on formtastic for a collection of array of images?

form do |f|
f.inputs “Building” do
f.input :name
f.input :image, :as => :radio , :collection =>
Dir.glob("public/img/buildings/
")*
end
f.actions
end

Thank you in advance,

Alex

images = Hash.new
Dir.glob(“public/img/buildings/*”).each do |s|
s.gsub!(“public/img/buildings/”, “”)
images["".html_safe] =
s
end

form do |f|
f.inputs “Building” do
f.input :name
f.input :image, :as => :radio , :collection => images
end
f.actions
end