FormBuilder help

I’m new to Ruby and Rails!

I’m trying to create my custom FormBuilder(similar to
LabelledFormBuilder you can find

But the problem is to get proper ID(same as field has) for lablel’s
“for” attribute.
And i think that stripping generated id from string isn’ a proper way
to go…

Is there more elegant solution?