简体   繁体   中英

Ruby On Rails ERB CSS Layout Question

I have a question with turning this html into erb.

<button name="support" type="button" value="Get Support" class="brightOrange">
<span>Get Support</span>
</button>

I've been trying to do something like this in rails.

<% form_tag get_support_path do %> 
    <%= text_field_tag :email, "Email:" %>
    <% submit_tag "Join", :class=>"brightOrange" %>
<% end %> 

Thanks for the help in advance. Not quite sure how to do this.

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