checkbox can't convert Symbol into String in ruby on rails -


I want to use the checkbox below on my Ruby on Rail App:

  & Lt; % = Check_box (: Monday, {: id = & gt; "Monday",: value => "Monday"})%>  

But this is not the text of the checkbox that only shows "Monday" then I am using the code below to display text with the checkbox

  & lt;% = Check_box: Monday, {: id = & gt; "Monday" ,: Price = & gt; "Monday"}, "Monday"%>  

But he gave me an error below:

  Icon can not be changed in the string  

then what I want to display the text with the checkbox, please wait for me to answer, thank you

You are using a completely wrong way to take input on the scene.

More examples here

  and lt;% = check_box_tag (Monday, value = "Monday", check = false, option = {: id = & gt; "Monday "})% & Gt; Read  

for more information


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 -