werein / x-editable-rails

Edit fields easily with X-Editable helper

Home Page:https://wereinhq.com/guides/x-editable-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

placeholder not working

krtschmr opened this issue · comments

=editable current_pack, :description , url: users_mod_pack_path(current_pack), placeholder: "Click to edit a description"

i would expect to read that text, instead it comes "Empty"

I know that this is a bit late, but placeholder is the value used for input field itself. So after clicking.

You can still use the original options, take a look here http://vitalets.github.io/x-editable/docs.html#editable.

Hence. <td><%= editable customer, :name, url: customer_path(customer), value: customer.name, emptytext: 'my default text' %></td> Should work just fine. :)