gems

An error occurred while installing debug_inspector (0.0.2), and Bundler cannot continue

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Migrating my rails app from 3.2 to 4.0.0 and ruby 2.2.2 to 2.2.4 while doing bundle install am getting (An error occurred while installing debug_inspector (0.0.2), and Bundler cannot continue) issue. using ubuntu 14.04LTS. This is what happens when i type in the bundle command Installing debug_inspector 0.0.2 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/share/rvm/rubies/ruby-2.2.4/bin/ruby -r ./siteconf20160727-7643-zx17cc.rb extconf.rb creating Makefile make "DESTDIR=" clean make "DESTDIR="

Error installing Ruby gems

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Whilst installing Ruby gems I'm getting the following error: ERROR: Could not find a valid gem 'bundler' (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Failed to open TCP connection to api.rubygems.org:443 (A connection attempt fai led because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "api.rubygems.org" port 443) (https://api.rubygems.org/specs.4. 8.gz) Gems I've attempted to

Unable to “run” on Heroku

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have deployed a Clojure app to Heroku. When I run/request it I get an error: http://glowing-planet-168.herokuapp.com/ . So now I want to start up a REPL to see if I can get some more info. But when I try it I get: D:\Mijn documenten\My Dropbox\dev\clojure-projects\hebrewajax>heroku run lein repl C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/heroku-2.2.4/lib/heroku/helpe rs.rb:213:in ``': No such file or directory - tput cols (Errno::ENOENT) from C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/heroku-2.2.4/lib /heroku/helpers.rb:213

kernel_require.rb:55:in `require': cannot load such file error

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Ruby version 1.9.3 at the moment (although I get the same issue with Ruby 2.0.0). On Windows 7 64-bit. I'm following 'The Cucumber Book' and got stuck at the chapter 7.2 - "Removing Duplication with Transforms". My folder structure is as follows: \cash_withdrawal \cash_withdrawal\Gemfile \cash_withdrawal\Gemfile.lock \cash_withdrawal\features \cash_withdrawal\features\cash-withdrawal.feature \cash_withdrawal\features\step_definitions \cash_withdrawal\features\step_definitions\cash_withdrawal_steps.rb \cash_withdrawal\features\step

to_xml Doesn't Work on Objects Returned Through Rails ActiveRecord habtm Reference

匿名 (未验证) 提交于 2019-12-03 02:27:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have two rails active record classes, School and Instructor linked by a has_and_belongs_to_many relationship. I need to query my instructors_controller for instructors for a particular school and return an xml format response. Therefore, in the index method I have this code fragment: school = School.find(params[:school_id]) @instructors = school.instructors and later: respond_to do |format| format.html # index.html.erb format.xml { render :xml => @instructors } format.json { render :json => @instructors } end But it doesn't work. Look at

rails cannot load such file ― mysql2/mysql2 (LoadError)

匿名 (未验证) 提交于 2019-12-03 02:24:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am newbie to ruby on rails i could not find the solution for this error: rails s /usr/local/share/gems/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `require': cannot load such file -- mysql2/mysql2 (LoadError) from /usr/local/share/gems/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `<top (required)>' from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require' from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require' from /usr/local/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb

Rails 4 Error with every command “`load&#039;: no implicit conversion of nil into String” (Mac OS X 10.9)

匿名 (未验证) 提交于 2019-12-03 02:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've just installed a fresh Ruby on Rails dev stack on my new Macbook, which runs Mac OS X 10.9 Mavericks. Here is my stack: Xcode command line tools Homebrew Rbenv Bundler Ruby 2.1.0 Rails 4.1.1 I ran rails new test_app to generate a first test app. This command successfully completed, but since it, every Rails command I try in my CLI returns this kind of error message: $ test_app > bin/rails server /Users/me/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load': no implicit conversion of nil

ActiveRecord::StatementInvalid: PG::Error: ERROR: null value in column “id” violates not-null constraint

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am getting the following error frequently in my application. If I restart my rails application this error will not appear for some time. Rails - 3.1.3 Ruby - 1.9.3 ActiveRecord::StatementInvalid: PG::Error: ERROR: null value in column "id" violates not-null constraint Directory.create(:name=>"name",:alias_name=>"name",:site_id=>2,:type=>"Directory") (0.3ms) BEGIN SQL (0.8ms) INSERT INTO "databases" ("alias_name", "created_at", "created_by", "id", "name", "site_id", "type", "updated_at", "updated_by") VALUES ($1, $2, $3, $4, $5, $6, $7, $8,

Cannot get factory_girl running under rails 3.0.5,unexpected tCONSTANT

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is my Gemfile config: group :development, :test do gem 'rspec-rails' gem 'factory_girl', '~>2.0.0.beta1' gem 'factory_girl_rails', :git => 'https://github.com/thoughtbot/factory_girl_rails.git', :tag => 'v1.1.beta1' end This is my spec_helper.rb : # This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require "factory_girl" # Requires supporting ruby files with custom matchers and macros, etc, # in spec

Ruby on Rails: permission denied when using “rails generate controller welcome”

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I used Ruby on Rails on Red Hat server. When I trying to generate a controller file, I got this error: [ec2-user@ip-172-31-22-128 testApp4]$ rails generate controller welcome /home/ec2-user/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/server.rb:22:in `initialize': Permission denied @ rb_sysopen - /tmp/spring/fea371aaf9d69cfa58bd12f69b3f1bf6.pid (Errno::EACCES) from /home/ec2-user/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/server.rb:22:in `open' from /home/ec2-user/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/server.rb:22:in