How do I change the name of a label in a form?

Hi,

Instead of having on the labels the field name I would like to change it
some customized values.

How can I change that ?

Regards

%= form_for(@client_workout) do |f| %>

<%= f.label :client_name %>
<%= f.text_field :client_name %>
<%= f.label :trainer %>
<%= f.text_field :trainer %>
<%= f.label :duration_min %>
<%= f.text_field :duration_min %>
<%= f.label :date_of_workout %>
<%= f.date_select :date_of_workout %>
<%= f.label :paid_amount %>
<%= f.text_field :paid_amount %>
<%= f.submit %>
<% end %>

<%= f.label “My label” %>

On Aug 28, 2011, at 19:44 , Noel wrote:

<%= f.label “My label” %>

no

f.label :field, “my name”

tom

<%= f.text_field :paid_amount %> You received this message because you are subscribed to the Google G. "Ruby

on Rails: Talk" group.

For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache

www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz

I always wondered, is there a way you can change the f.label at a
model label so regardless of where its used it always has the updated
label? is it somewhere in the localization file? or does this just
indicate for rails to have a best guess at what it is. I tried
defining them in a language file once but it never seemed to pick them
up.

Thanks!!