Rails Formtastic – How to remove the unordered list from form inputs

When using ‘Formtastic’ the default behavior is to add an unordered list to the set of inputs.  This is specified in its CSS.   This makes the form look like it has a set of radio bullets.

How to remove this?

From an input:

<%=f.input :zip, :label => false, :placeholder => '5 digit zip',
           :input_html => { :class => 'form-control' },
           :wrapper_html => { :style => 'list-style-type:none;' } %>

From a button:

 <%= f.action :submit, :label => "Continue", 
              :button_html => { :class => 'btn btn-danger' },
              :wrapper_html => { :style => 'list-style-type:none;' }%>

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s