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?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs