I am using the bootstrap-sass gem to style my Rails app and having an issue getting the btn-block class to work with a submit button in new user registration form.
Below is the relevant code...
<%= link_to "Sign in with Facebook", user_omniauth_authorize_path(:facebook), class: "btn btn-primary btn-large btn-block" %>
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
<%= devise_error_messages! %>
<%= f.email_field :email, placeholder: "Email" %>
<% if f.object.password_required? %>
<%= f.password_field :password, placeholder: "Password" %>
<%= f.password_field :password_confirmation, placeholder: "Confirm Password" %>
<% end %>
<%= f.submit "Create Account", class: "btn btn-primary" %>
<% end %>
This code creates a valid submit button using bootstrap. However, when I try and add the btn-block class to the submit button it messes with the button styling and does not give the button a width:100% style like the above link that is styled with the same class.