ruby

Rails Sass: variables are not passed with @import

半腔热情 提交于 2021-02-20 06:49:10
问题 I have a rails project which uses twitter bootstrap and sass. The scss files are structured into folders so I have a better overview. Now I want to define a file for global variables which contains my colors etc. and pass those values down to other files so I have less redundant code. While all code is properly imported and applied, variables don't work. Here is the current setup: stylesheets/application.css.scss /* *= require_self *= require_tree */ /* stylesheets/ | |– base/ | |– _reset

Big Sur Update Leads to Multiple Load Error Rails Ruby

你离开我真会死。 提交于 2021-02-20 02:53:29
问题 After updating to Big Sur, my ruby (2.6.3) on rails (5.2.1) application repeatedly has LoadError when running rails s or rails db:migrate . I have tried uninstall and reinstall rails multiple time but it will only work 1 or 2 times before encountering LoadError again. Here are some samples of the errors (Note that they are different) /Library/Ruby/Gems/2.6.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require': cannot load such file -- new_relic/agent/instrumentation

Big Sur Update Leads to Multiple Load Error Rails Ruby

◇◆丶佛笑我妖孽 提交于 2021-02-20 02:52:49
问题 After updating to Big Sur, my ruby (2.6.3) on rails (5.2.1) application repeatedly has LoadError when running rails s or rails db:migrate . I have tried uninstall and reinstall rails multiple time but it will only work 1 or 2 times before encountering LoadError again. Here are some samples of the errors (Note that they are different) /Library/Ruby/Gems/2.6.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require': cannot load such file -- new_relic/agent/instrumentation

Redmine-4.1.1 使用Thin作为Web服务器(Ubuntu 20.04.2)

↘锁芯ラ 提交于 2021-02-19 17:00:52
准备工作 按 Redmine 官方文档 Installation Guide 安装好了Redmine 4.1.1. 具体的环境见最后“ 环境信息 ” 使用webrick可以运行redmine: bundle exec rails server webrick -e production 安装thin $ sudo apt install thin $ thin -v thin 1.7.2 codename Bachmanity 配置 Redmine4.1.1 的gemfile # samxiao @ rm411 in ~/redmine-4.1.1 [12:16:42] $ vi Gemfile.local # samxiao @ rm411 in ~/redmine-4.1.1 [12:17:12] $ cat Gemfile.local gem 'thin' 运行thin作为web服务的Redmine # samxiao @ rm411 in ~/redmine-4.1.1 [12:19:41] C:127 $ bundle exec rails server thin -e production => Booting Thin => Rails 5.2.4.2 application starting in production on http://0.0.0.0:3000

Bundler using wrong Ruby version

走远了吗. 提交于 2021-02-19 16:10:36
问题 When I try to start my Rails server, I get the following error: $ bundle exec rails s Your Ruby version is 2.3.7, but your Gemfile specified ~> 2.3.8 I don't understand why that happens though, since I set Ruby to 2.3.8 both using Homebrew and using rbenv. 2.3.7 is the version of the system's ruby. I am using Mac OS 10.14.4. $ ruby -v ruby 2.3.8p459 (2018-10-18 revision 65136) [x86_64-darwin18] $ rbenv version 2.3.8 (set by /Users/ceasar/foo/.ruby-version) $ which -a ruby /Users/ceasar/.rbenv

Bundler using wrong Ruby version

一曲冷凌霜 提交于 2021-02-19 16:08:38
问题 When I try to start my Rails server, I get the following error: $ bundle exec rails s Your Ruby version is 2.3.7, but your Gemfile specified ~> 2.3.8 I don't understand why that happens though, since I set Ruby to 2.3.8 both using Homebrew and using rbenv. 2.3.7 is the version of the system's ruby. I am using Mac OS 10.14.4. $ ruby -v ruby 2.3.8p459 (2018-10-18 revision 65136) [x86_64-darwin18] $ rbenv version 2.3.8 (set by /Users/ceasar/foo/.ruby-version) $ which -a ruby /Users/ceasar/.rbenv

Bundler using wrong Ruby version

一世执手 提交于 2021-02-19 16:06:37
问题 When I try to start my Rails server, I get the following error: $ bundle exec rails s Your Ruby version is 2.3.7, but your Gemfile specified ~> 2.3.8 I don't understand why that happens though, since I set Ruby to 2.3.8 both using Homebrew and using rbenv. 2.3.7 is the version of the system's ruby. I am using Mac OS 10.14.4. $ ruby -v ruby 2.3.8p459 (2018-10-18 revision 65136) [x86_64-darwin18] $ rbenv version 2.3.8 (set by /Users/ceasar/foo/.ruby-version) $ which -a ruby /Users/ceasar/.rbenv

Bundler using wrong Ruby version

不羁的心 提交于 2021-02-19 16:06:26
问题 When I try to start my Rails server, I get the following error: $ bundle exec rails s Your Ruby version is 2.3.7, but your Gemfile specified ~> 2.3.8 I don't understand why that happens though, since I set Ruby to 2.3.8 both using Homebrew and using rbenv. 2.3.7 is the version of the system's ruby. I am using Mac OS 10.14.4. $ ruby -v ruby 2.3.8p459 (2018-10-18 revision 65136) [x86_64-darwin18] $ rbenv version 2.3.8 (set by /Users/ceasar/foo/.ruby-version) $ which -a ruby /Users/ceasar/.rbenv

Bundler using wrong Ruby version

本秂侑毒 提交于 2021-02-19 16:04:54
问题 When I try to start my Rails server, I get the following error: $ bundle exec rails s Your Ruby version is 2.3.7, but your Gemfile specified ~> 2.3.8 I don't understand why that happens though, since I set Ruby to 2.3.8 both using Homebrew and using rbenv. 2.3.7 is the version of the system's ruby. I am using Mac OS 10.14.4. $ ruby -v ruby 2.3.8p459 (2018-10-18 revision 65136) [x86_64-darwin18] $ rbenv version 2.3.8 (set by /Users/ceasar/foo/.ruby-version) $ which -a ruby /Users/ceasar/.rbenv

Why rbenv does not work on Mac OS Catalina

余生颓废 提交于 2021-02-19 07:14:40
问题 I'm trying to run a Ruby on Rails project which has the version 2.4.1 and my system is 2.6.x . What I did was install via Rbenv the old version of Ruby then I did the following commands: rbenv global 2.4.1 -> to change global Ruby version ruby -v ruby 2.6.5p114 rbenv global 2.4.1 So there is something wrong as I would like to use 2.4.1 but seems not working that. I'm unable to start the bundle as it is saying I don't have 2.4.1 installed. I need a solution to Mac OS Catalina as I did as I