Rails Form Label -
The label I'm trying to generate a label in my rail should look like this: < Pre> Use & lt; Label = "member_ids_index>
& lt;% if !@current_user.all_collaborators.nil?% & gt; current user @user.locolator.us_in_in_inxing | affiliate, index |%> gt; check_box_tag "Proj Ect_ids [# {index}} ", partner.id%> gt; & lt;% = f.label: member_ids_, '& lt; Span & gt; & Lt; / Span & gt; Partner.name%> & gt; & Lt; Br / & gt; & Lt;% end% & gt; & Lt;% end% & gt;
label_tag : < Pre>
& lt;% if !@current_user.all_collaborators.nil? & Gt%; & Lt;% @ current_user.all_collaborators.each_with_index | Associate, index | & Gt%; & Lt;% = check_box_tag "project_ids [# {index}]", partner.id%> & Lt;% = label_tag "member_ids _ # {index}"%> & Lt; Span & gt; & Lt; / Span & gt; & Lt;% = Collaborator.name% & gt; & Lt;% end% & gt; & Lt; Br / & gt; & Lt;% end% & gt; & Lt;% end% & gt;
Comments
Post a Comment