I think legend should be the first child in a fieldset

the rails helper `field_set_tag "legend content" do` will achieve what you want