简体   繁体   English

在rails应用程序中将引导程序流水线化到我的ruby中以对其进行样式化

[英]Pipelining bootstrap into my ruby on rails application to style it

I just added the gem 'bootstrap-sass', '~> 3.3.3' into my gemfile pages. 我刚刚将gem'bootstrap-sass','〜> 3.3.3'添加到我的gemfile页面中。 I reinstall the bundle as follows (as specified): 我重新安装捆绑包如下(指定):

 Fetching gem metadata from https://rubygems.org/..........
    Fetching version metadata from https://rubygems.org/..
    Resolving dependencies...
Installing rake 10.4.2
Installing i18n 0.7.0
Installing json 1.8.2
Installing minitest 5.5.1
Installing thread_safe 0.3.4
Installing tzinfo 1.2.2
Installing activesupport 4.2.0
Installing builder 3.2.2
Installing erubis 2.7.0
Installing mini_portile 0.6.2
Installing nokogiri 1.6.6.2
Installing rails-deprecated_sanitizer 1.0.3
Installing rails-dom-testing 1.0.5
Installing loofah 2.0.1
Installing rails-html-sanitizer 1.0.1
Installing actionview 4.2.0
Installing rack 1.6.0
Installing rack-test 0.6.3
Installing actionpack 4.2.0
Installing globalid 0.3.3
Installing activejob 4.2.0
Installing mime-types 2.4.3
Installing mail 2.6.3
Installing actionmailer 4.2.0
Installing activemodel 4.2.0
Installing arel 6.0.0
Installing activerecord 4.2.0
Installing execjs 2.3.0
Installing autoprefixer-rails 5.1.7
Installing debug_inspector 0.0.2
Installing binding_of_caller 0.7.2
Installing sass 3.4.13
Installing bootstrap-sass 3.3.3
Using bundler 1.8.3
Installing columnize 0.9.0
Installing debugger-linecache 1.2.0
Installing slop 3.6.0
Installing byebug 3.5.1
Installing coffee-script-source 1.9.1
Installing coffee-script 2.3.0
Installing thor 0.19.1
Installing railties 4.2.0
Installing coffee-rails 4.1.0
Installing hike 1.2.3
Installing multi_json 1.10.1
Installing jbuilder 2.2.8
Installing jquery-rails 4.0.3
Installing tilt 1.4.1
Installing sprockets 2.12.3
Installing sprockets-rails 2.2.4
Installing rails 4.2.0
Installing rdoc 4.2.0
Installing sass-rails 5.0.1
Installing sdoc 0.4.1
Installing spring 1.3.3
Installing sqlite3 1.3.10
Installing turbolinks 2.5.3
Installing uglifier 2.7.1
Installing web-console 2.1.0
Bundle complete! 14 Gemfile dependencies, 59 gems now installed.
Gems in the group production were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!

All good till here. 一直都好到这里。

Then i added the code @import "bootstrap"; 然后我添加了代码@import "bootstrap"; into my styles.css.scss file. 进入我的styles.css.scss文件。 I restarted the server for the changes to reflect in localhost:3000 Then this happens: 我重新启动服务器以进行更改以反映在localhost:3000中然后发生这种情况:

    rails server
Warning: Running `gem pristine --all` to regenerate your installed gemspecs (and deleting then reinstalling your bundle if you use bundle --path) will improve the startup performance of Spring.
Could not find autoprefixer-rails-5.1.7 in any of the sources
Run `bundle install` to install missing gems.

I tried running 'bundle install' but to my dismay the same error crept up again and again. 我尝试运行'捆绑安装',但令我沮丧的是同样的错误一次又一次地爬起来。 So in a jist, the server doesn't start citing "it couldn't find autoprefixer-rails-5.1.7 gem " but if you check the script above it has actually installed it. 所以在一个jist中,服务器没有开始引用“它找不到autoprefixer-rails-5.1.7 gem”但是如果你检查上面的脚本它实际上已经安装了它。

Please help me fix this. 请帮我解决这个问题。

I ran the command bundle exec rails s . 我运行命令bundle exec rails s The server runs now. 服务器现在运行。 But it still isn't running if the command rails s is executed. 但是如果执行命令rails s它仍然没有运行。 It throws the same error. 它会抛出同样的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Ruby on Rails应用程序的模型样式 - Model style for Ruby on Rails application 无法激活/导入Bootstrap到我的Ruby on Rails应用程序中 - Cannot Activate/Import Bootstrap into my Ruby on Rails application 测试我的Ruby on Rails应用程序 - Testing my Ruby on Rails application 如何为我的应用程序创建Twitter样式的URL-使用现有应用程序或重新设计应用程序-Ruby on Rails - How do I create Twitter style URLs for my app - Using existing application or app redesign - Ruby on Rails 了解引导程序在Ruby on Rails(4)应用程序中的工作方式 - Understanding how bootstrap works in a Ruby on Rails (4) application 将Ruby应用程序与我的Rails应用程序集成 - Integrate Ruby application with my Rails application 如何在Ruby on Rails中使用Bootstrap Scss来设置帖子列表样式 - How to use Bootstrap Scss with Ruby on Rails to style a list of Posts 如何在Rails 4和Bootstrap 3的ruby中设置选择文件按钮的样式 - How in ruby on Rails 4 and Bootstrap 3 style a choose file button Ruby/Rails - 从我的应用程序中删除 ActiveAdmin - Ruby/Rails - Remove ActiveAdmin from my application 部署我的Ruby on Rails应用程序时丢失图标 - Lose icon on deployment of my Ruby on Rails application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM