2.0.1 (see...">

Problem using bootstrap_form gem - could not find the error "rails_bootstrap_forms" file

I'm trying to use the bootstrap_form bug ~> 2.0.1 (see https://github.com/bootstrap-ruby/rails-bootstrap-forms ), but it gives me the opportunity. I installed according to the instructions on their github page, adding it to my Gemfile:

gem 'bootstrap_form', '~> 2.0.1'

I started the installation of the package. Then I added it to the application.css.scss file:

 *= require_self
 *= require rails_bootstrap_forms
 *= require_tree .

But when I try to run my application, I get:

could not find the file 'rails_bootstrap_forms' (in / path / to / my / app / assets / stylesheets / application.css.scss: 12)

I obviously missed something. I checked lib / assets / and vendor / assets / stylesheets / but there is nothing there. Similarly, there is nothing in app / assets / stylesheets /.

What kind of fiction?

+3
6

rails_bootstrap_form.css app/assets/stylesheets

.rails-bootstrap-forms-date-select,
.rails-bootstrap-forms-time-select,
.rails-bootstrap-forms-datetime-select {
  select {
    display: inline-block;
    width: auto;
  }
}
.rails-bootstrap-forms-error-summary {
  margin-top: 10px;
}
+3

, ( ), . , , ghemub, github, Gemfile:

gem 'bootstrap_form', github: 'bootstrap-ruby/rails-bootstrap-forms'

bootstrap-sass, application.css, , application.css.scss, :

@import "bootstrap";
@import 'rails_bootstrap_forms';

!

+3

, , Gemfile bootstrap-form. bootstrap_form, .

+3

Bootstrap? , bootstrap_form, , , Bootstrap.

- --. - gem "twitter-bootstrap-rails" gemfile,

$ bundle install

rails generate bootstrap:install static, CSS .

+1

, *= require rails_bootstrap_forms application.css.scss - .

+1

Although the SO warning does not respond to other answers, I am going to raise Thomas Hader's answer above by explaining why you need to create the rails_bootstrap_forms.css file in app/assets/stylesheets.

If you look at the rails-bootstrap forms of Github, you will notice that they have a rails_bootstrap_forms.css file. README does not tell you this, but it follows that this css file must be in /app/assets/stylesheets.

Here's the file:

https://github.com/bootstrap-ruby/rails-bootstrap-forms/blob/master/app/assets/stylesheets/rails_bootstrap_forms.css

0
source

All Articles