Rails Form Label -


The label I'm trying to generate a label in my rail should look like this: < Pre> & lt; Label = "member_ids_index> P> Where the index is the current recurrence of my loop below , And associate.name is a string, for some reason, I can not get my FLEL statement to generate it properly. Can someone help me? Below is the

  & 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;    

Use 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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -