Bootstrap Forms

Adds bootstrap_form gem
Icons/chart bar
Used 9 times
Created by
D Dale Zak

<%= bootstrap_form_for(@user) do |f| %>
  <%= f.email_field :email %>
  <%= f.password_field :password %>
  <%= f.check_box :remember_me %>
  <%= f.submit "Log In" %>
<% end %>

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION=""
Template Source

Review the code before running this template on your machine.

run 'bundle add bootstrap_form --version "~> 5.0"'

Sign up or Login to leave a comment.