开发者

How do I use options for in_place_editing in my view?

开发者 https://www.devze.com 2023-01-08 02:29 出处:网络
I want to change how the in_place_editing view looks like. I want to change the button text and o开发者_StackOverflowther view related things in the in_place_editing plugin

I want to change how the in_place_editing view looks like. I want to change the button text and o开发者_StackOverflowther view related things in the in_place_editing plugin

I am trying with this code

 <%= in_place_editor_field :contact,:address_line1,:saving_text =>"Update"%>

But nothing is getting changed. How else can I pass options to in_place_editor_field


Did you place the following in your controller?

in_place_edit_for :contact_, :address_line1 

(as described here)

Also, do you have any warning or error in the Javascript console of your browser?

0

精彩评论

暂无评论...
验证码 换一张
取 消