Why can not I load this Boostrap4 template into Rails?

0

It turns out that I can not load a boostrap4 template and rails throws me the following problem

Showing /Users/Brian/Desktop/nuevo/final_proyect/app/views/layouts/application.html.erb where line #10 raised:

couldn't find file 'main' with type 'text/css'
Checked in these paths: 
  /Users/Brian/Desktop/nuevo/final_proyect/app/assets/config
  /Users/Brian/Desktop/nuevo/final_proyect/app/assets/images
  /Users/Brian/Desktop/nuevo/final_proyect/app/assets/javascripts
  /Users/Brian/Desktop/nuevo/final_proyect/app/assets/stylesheets
  /Users/Brian/.rvm/gems/ruby-2.4.1/gems/coffee-rails-4.2.2/lib/assets/javascripts
  /Users/Brian/.rvm/gems/ruby-2.4.1/gems/actioncable-5.2.0/lib/assets/compiled
  /Users/Brian/.rvm/gems/ruby-2.4.1/gems/activestorage-5.2.0/app/assets/javascripts
  /Users/Brian/.rvm/gems/ruby-2.4.1/gems/actionview-5.2.0/lib/assets/compiled
  /Users/Brian/.rvm/gems/ruby-2.4.1/gems/turbolinks-source-5.1.0/lib/assets/javascripts
  /Users/Brian/Desktop/nuevo/final_proyect/node_modules
  /Users/Brian/Desktop/nuevo/final_proyect/vendor/css/font-awesome/img
Extracted source (around line #13):
11
12
13
14
15
16

 * It is generally better to create a new file per style scope.
 *
 *= require main
 *= require_tree .
 *= require_self
 *= require bootstrap
    
asked by Upset Grade 17.07.2018 в 08:01
source

1 answer

0

The error says:

couldn't find file 'main' with type 'text/css'

This does not find the file 'main.css' inside the folder app/assets/stylesheets make sure that is that file or if you do not need to remove the *= require main .

    
answered by 28.07.2018 в 01:15