Devise Bootstrap Views错误呈现:找不到类型为“ text / css”的文件“ devise_bootstrap_views” [英] Devise Bootstrap Views error rendering: couldn't find file 'devise_bootstrap_views' with type 'text/css'

查看:87
本文介绍了Devise Bootstrap Views错误呈现:找不到类型为“ text / css”的文件“ devise_bootstrap_views”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用devise引导程序视图gem https://github.com/ hisea / devise-bootstrap-views 创建一个应用程序。

I'm trying to use the devise bootstrap views gem https://github.com/hisea/devise-bootstrap-views to create an app.

这是我所做的:


  1. 将相应的gem'devise-bootstrap-views'添加到了Gemfile +捆绑安装

  2. 添加了 * = require devise_bootstrap_views * = require_tree之前的 application.css 文件。

  3. 运行命令 rails g devise:views:locale en

  4. 运行命令 rails g devise :views:bootstrap_templates

  1. Added the respective gem 'devise-bootstrap-views' to the Gemfile + bundle install
  2. Added *= require devise_bootstrap_views to the application.css file before *= require_tree .
  3. Ran the command rails g devise:views:locale en
  4. Ran the command rails g devise:views:bootstrap_templates

但是,当我刷新浏览器时,看到以下错误。我试图找出错误,但无济于事。

However, when I refresh the browser, I see the following error. I tried figuring out the error but to no avail.

这是错误的屏幕截图:
在此处输入图片描述

Here's the screenshot of the error: enter image description here

有人可以告诉我错误的出处吗?赞赏!谢谢!

Could someone tell me where the error is being caused? Appreciate it! Thank you!

推荐答案

我必须删除此行:

*= require devise_bootstrap_views

这篇关于Devise Bootstrap Views错误呈现:找不到类型为“ text / css”的文件“ devise_bootstrap_views”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆