I have next helper
= button_tag :type => "button", { "Add", :id => "poll-btn", :class => "btn-bg" }
Syntaxis is incorrect. How correct add css attributes(id, class) with type and content? Sorry for very easy and stupid quation.
= button_tag 'Add', type: 'button', id: 'poll-btn', class: 'btn-bg'
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments