开发者

How do I use options for in_place_editing in my view?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜