ruby on rails - How to make the label title and input value the same, but id is different -
I have questions, how can I create a label title and input value, but the ID is different. What do I need from the code given below & lt;% = f.input: building_type ,: label_html = & gt; {: class = & gt; "ui-priority n1"}, label: "building type", archive: post :: flat :: building card, e.g. :: radio% & gt; Post :: Flat :: BUILDING_TYPES = Output code: & lt; Div class = "radio" & gt; & Lt; label class = "post_flat_building_type-1" for "likes" & gt; & Lt; input id = "post_flat_building_type-1" name = "post_flat [building_type]" type = "radio" value = "1" & gt; Flat-top & lt; / Labels & gt; & Lt; / Div & gt; & Lt; Div class = "radio" & gt; & Lt; label class = "post_flat_building_type-2" for "likes" & gt; & Lt; input id = "post_flat_building_type-2" name = "post_flat [build...