ruby on rails - Custom Formtastic Control with Multiple Parameters -
i'm attempting build custom control formtastic takes latitude , longitude, however, i'm not sure how go passing method names through. ideally i'd have following in semantic_form_for block:
f.input :latitude, :longitude, :as => :location
i've tried passing array:
f.input [:latitude, :longitude], :as => :location
but in both cases, fails - first on number of parameters, second on first parameter not being symbol.
is there way of passing 2 methods #input i'm missing?
ok, i've sorted out writing a plugin formtastic.
i've added multi_input function can take number of parameters , (optional) options hash. i've added map_input type outputs map control , js (framework agnostic).
more details @ above link.
Comments
Post a Comment