# In Place Editor - Setting button text

**URL:** <https://www.ruby-forum.com/t/in-place-editor-setting-button-text/70437>\
**Category:** Rails\
**Created:** [September 29, 2006, 5:26am UTC](https://www.ruby-forum.com/t/in-place-editor-setting-button-text/70437 "2006-09-29T05:26:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Weller\_Kee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/35a633/32.png) [@Weller\_Kee](https://www.ruby-forum.com/u/Weller_Kee)\
**Post date:** [September 29, 2006, 5:26am UTC](https://www.ruby-forum.com/t/in-place-editor-setting-button-text/70437/1 "2006-09-29T05:26:34Z")

</div>

I have the following code:

\<%= in\_place\_editor\_field :customer, :Name, {:okText =\> “‘Save’”}, :rows  
=\> 1 %\>

the problem is the “ok” button still has “ok” for it text value. How do  
I set it to say “Save”?

So far I’ve tried:  
\<%= in\_place\_editor\_field :customer, :Name, {:okText =\> “Save”}, :rows  
=\> 1 %\>  
and  
\<%= in\_place\_editor\_field :customer, :Name, {}, :okText =\> “Save”, :rows  
=\> 1 %\>

Thanks!

---

<div class="post-metadata">

**Author:** ![Weller\_Kee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/35a633/32.png) [@Weller\_Kee](https://www.ruby-forum.com/u/Weller_Kee)\
**Post date:** [September 29, 2006, 3:22pm UTC](https://www.ruby-forum.com/t/in-place-editor-setting-button-text/70437/2 "2006-09-29T15:22:09Z")

</div>

Have you tried ok\_text?

Weller Kee wrote:

> I have the following code:
> 
> \<%= in\_place\_editor\_field :customer, :Name, {:okText =\> “‘Save’”}, :rows  
> =\> 1 %\>
> 
> the problem is the “ok” button still has “ok” for it text value. How do  
> I set it to say “Save”?
> 
> So far I’ve tried:  
> \<%= in\_place\_editor\_field :customer, :Name, {:okText =\> “Save”}, :rows  
> =\> 1 %\>  
> and  
> \<%= in\_place\_editor\_field :customer, :Name, {}, :okText =\> “Save”, :rows  
> =\> 1 %\>
> 
> Thanks!

---

<div class="post-metadata">

**Author:** ![Weller\_Kee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/35a633/32.png) [@Weller\_Kee](https://www.ruby-forum.com/u/Weller_Kee)\
**Post date:** [September 29, 2006, 4:38pm UTC](https://www.ruby-forum.com/t/in-place-editor-setting-button-text/70437/3 "2006-09-29T16:38:15Z")

</div>

Weller Kee wrote:

> I have the following code:
> 
> \<%= in\_place\_editor\_field :customer, :Name, {:okText =\> “‘Save’”}, :rows  
> =\> 1 %\>

Try this:

\<%= in\_place\_editor\_field :customer , :Name, {}, {:cancel\_text =\>  
“Cancel”, :ok\_text =\> “Save”}, :rows =\> 1 %\>
