ruby - How do I add an Rails form helper HTML attribute that does not contain a quoted value? -


For example, "required."

Thus presses the tracks with any attempts to add the attribute:

  & lt;% = f.email_field: email ,: "ng-model "= & Gt; "Whatever" ,: class => "Form-control input-LG" ,: "required"%>  

Just use Boolean values:

  & Lt; % = F.email_field: email ,: "ng-model" = & gt; "Whatever" ,: class => "Form-Control Input-LG" ,: "Required" = & gt; True% & gt;  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -