Currently, I am encountering an issue with the btn-block class while styling my Rails application using the bootstrap-sass gem specifically in a new user registration form.
Outlined 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 %>
While this code successfully generates a submit button with bootstrap, incorporating the btn-block class to the submit button results in a disruption of its style and prevents it from adopting the width:100% attribute similar to the link above styled with the same class.