Bootstrap Forms

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

Usage
<%= 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="https://railsbytes.com/script/VD7sLP"
Template Source

Review the code before running this template on your machine.

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

Sign up or Login to leave a comment.

© 2022 GoRails, LLC