diff --git a/Gemfile b/Gemfile index 078d67e..f058bfe 100644 --- a/Gemfile +++ b/Gemfile @@ -47,6 +47,8 @@ group :production, :test do gem 'pg' end +gem "bootstrap_form" + gem 'devise' # Windows does not include zoneinfo files, so bundle the tzinfo-data gem diff --git a/Gemfile.lock b/Gemfile.lock index 5c00004..35a24db 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -62,6 +62,9 @@ GEM bindex (0.8.1) bootsnap (1.4.6) msgpack (~> 1.0) + bootstrap_form (4.5.0) + actionpack (>= 5.2) + activemodel (>= 5.2) builder (3.2.4) byebug (11.1.3) capybara (3.32.2) @@ -213,6 +216,7 @@ PLATFORMS DEPENDENCIES bootsnap (>= 1.4.2) + bootstrap_form byebug capybara (>= 2.15) devise diff --git a/app/javascript/packs/stylesheets.scss b/app/javascript/packs/stylesheets.scss new file mode 100644 index 0000000..f13ef28 --- /dev/null +++ b/app/javascript/packs/stylesheets.scss @@ -0,0 +1 @@ +@import 'rails_bootstrap_forms' diff --git a/app/views/categories/_form.html.erb b/app/views/categories/_form.html.erb index fb7c4a4..65eca58 100644 --- a/app/views/categories/_form.html.erb +++ b/app/views/categories/_form.html.erb @@ -1,4 +1,4 @@ -<%= form_with(model: category, local: true) do |form| %> +<%= bootstrap_form_with(model: category, local: true) do |form| %> <% if category.errors.any? %>