FormBuilder help

Hi!
I’m new to Ruby and Rails!

I’m trying to create my custom FormBuilder(similar to
LabelledFormBuilder you can find
http://trac.rickbradley.com/cgi-bin/trac.cgi/file/tumblelog/vendor/rails/actionpack/test/template/form_helper_test.rb?rev=374).

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?

Thanks!

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