Reputation: 1413
For example, "required."
Rails chokes on any attempt to add the attribute thus:
<%= f.email_field :email, :"ng-model" => "whatever", :class => "form-control input-lg", :"required" %>
Upvotes: 1
Views: 98
Reputation: 5229
You must do the same as you do with class, add html_attribute => value
<%= f.email_field :email, :"ng-model" => "whatever", :class => "form-control input-lg", :"required" => true %>
Upvotes: 1
Reputation: 5416
Just use boolean values:
<%= f.email_field :email, :"ng-model" => "whatever", :class => "form-control input-lg", :"required" => true %>
Upvotes: 4