Adding an ID or Class in Ruby on Rails?
Posted
by Probocop
on Stack Overflow
See other posts from Stack Overflow
or by Probocop
Published on 2010-03-25T15:16:33Z
Indexed on
2010/03/25
15:33 UTC
Read the original article
Hit count: 114
ruby-on-rails
I've got the following code for a search form, but how would I add an ID or a class to the submit button?
<% form_tag '/wine/search/', :method => 'get' do %>
<%= label_tag "Search" %>
<%= text_field_tag :search_string, params[:search_string] %>
<%= submit_tag "Go" %>
<% end %>
Thanks
© Stack Overflow or respective owner