Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Label with I18n and html options require nil as text param

#5267

This patch fixes the label form helper to allow passing html options without forcing the text param to be given as nil. Better explained by examples:

Before: f.label :title, nil, :class => 'title'
After : f.label :title, :class => 'title'

Reported by Carlos Antonio da Silva · August 1st, 2010 @ 07:59 PM

State: committed
Milestone: none
Assigned to: José Valim José Valim
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to committed

    (from [11614bddc015deff7095bdf8bbe9f11e5d81ae1c]) Fix label form helper to use I18n and html options, without the need of 'nil' text param:

    Before: f.label :title, nil, :class => 'title' After : f.label :title, :class => 'title'

    [#5267 Label with I18n and html options require nil as text param state:committed]

    Signed-off-by: Santiago Pastorino santiago@wyeworks.com
    http://github.com/rails/rails/commit/11614bddc015deff7095bdf8bbe9f1...

    August 2nd, 2010 @ 01:52 AM