In Place Editor - Setting button text

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!

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!

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 %>

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs