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!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---
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!-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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 %> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---