I need my forms to have HTML id or class but seems there is not such
parameter in form_tag or form_tag_for. At least not in the rails doc.
I’ve been searching for a while and I couldn’t find a workarround
without pure HTML or gsub! which wouldn’t be pretty.
I need my forms to have HTML id or class but seems there is not such
parameter in form_tag or form_tag_for. At least not in the rails doc.
I’ve been searching for a while and I couldn’t find a workarround
without pure HTML or gsub! which wouldn’t be pretty.
you should be able to specify the html id and class for every rendered
element. Any workarround for form_remote_for, link_to_remote or every
other element?
appending gsub!(/^(<.*) /, ‘</1 id=“wathever”’ or something similar to
the expression return should do but doesn’t looks too good.