bernat / best_in_place

A RESTful unobtrusive jQuery Inplace-Editor and a helper as a Rails Gem
http://blog.bernatfarrero.com/in-place-editing-with-javascript-jquery-and-rails-3/
1.2k stars 574 forks source link

How to manage a Postgres array column type? #566

Open t56k opened 7 years ago

t56k commented 7 years ago

Is there a way for best_in_place to manage a Postgres array column type? I've got a phones column like so:

t.string "phones", default: [], array: true

Currently, if I edit the phones field in the form, best_in_place will not permit the change. Is there a workaround?