简体   繁体   中英

How to add class to this form_tag in Rails

I have this form_tag and I need to add a class to it. Not sure how to do it without breaking it:

<%= form_tag sessions_path do %>
<%= form_tag sessions_path, html: { class: 'something' } do %>
<%= form_tag session_path, :class => 'class_name' do %>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM