My code is:
<%= button_to 'Login', {:type => 'submit', :class => 'submit'} , {}%>
I want to end with this:
<input type='submit' value='submit' class=submit/>
but I get:
<input type=submit value=submit/>
how to set a class?
HTML parameters are the third parameter according to the documentation . Try the following:
<%= button_to 'Login', {}, { :type => 'submit', :class => 'submit' } %>
Source: https://habr.com/ru/post/1772314/More articles:Время работы Mergesort BigO - algorithmAlertDialog setSingleChoice without switches - androidC - wanted to know the maximum amount of memory allocated in the program - cMaven combat plugin cannot exclude parsed libraries in military format - javautf-8 encoding a std :: string? - c ++C присвоение int - c++Linq to SQL intellisense не знает таблиц в объекте datacontext - sqlMass update of Couch DB using handlers - jsonGet only response headers - c #HttpWebResponse: closing a stream - c #All Articles