How to use checkbox in ruby on rails -


I have a code in the checkbox at the bottom of the Ruby on Rail:

   "Monday"})%>  

However, it only shows the checkbox but its text does not show "Monday."

So what should I do to display the text of the checkbox, please suggest me, wait for the answer. Thanks

have you read this?

Either you use check_box_tag or f.check_box inside a form builder, you must add a label to display it. You can use only & lt; Input type = "checkbox" value = "something" /> can not be generated, and not the label, which you like text or & lt;% = label_tag, whatever '%' .


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -