On Feb 14, 8:31 am, Ralph Shnelvar <li...@ruby-forum.com> wrote:
> Lasse Bunk wrote:
> > f.label :something, "something"
>
> > :-) Lasse
>
> > 2010/2/14 Ralph Shnelvar <li...@ruby-forum.com>
>
> Well ... that certainly was simple .... but then what is the purpose of
> the first parameter?  What are the downsides to
>   f.label '',  "something"

That's one option.  Another, maybe better in the long run, is to use
the localization files.  Check out the FormHelper docs.
en.yml
---
en:
  hello: "Hello world"
  helpers:
    label:
      foo:
        something: "zomething"
---

This will make the label for foo's "something" appear as
"zomething" (lower case).

By using the localization file, you can get consistent displaying.  In
addition, you may be able to localize some pages or partials without
having to do _partial.<2letter_code>.html.erb

---
Kurt Werle
Looking for a new rails job: http://www.circlew.org/kurt/pages/resume

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to