rubygems

Ruby on rails error when running rails s

萝らか妹 提交于 2019-12-07 23:14:14
问题 Um quite new to rails and um getting an error when run the command rails s it says Could not find rake-0.9.2.2 in any of the sources Run bundle install to install missing gems. when I run bundle install nothing happened my gem list has rake 0.9.2.2 what can go wrong? my ruby version is 1.9.3 Thank you in advance 回答1: Remove all the versions of Rake ==> gem uninstall rake Remove your gemfile.lock => rm Gemfile.lock Remove gem 'rake' on your gemfile Run bundle install Install Rake manually :

migrate error: undefined method `cache' for Gem:Module

三世轮回 提交于 2019-12-07 19:34:45
问题 while migrating by rails app am getting this error undefined method `cache' for Gem:Module Am using Rails 3.2.9 Ruby 1.8.7 Ubuntu 12.04 rake db:migrate --trace /home/rajendran/.rvm/gems/ruby-1.8.7-p374/gems/extlib-0.9.15/lib/extlib/object.rb:138: warning: method redefined; discarding old try_dup /home/rajendran/.rvm/gems/ruby-1.8.7-p374/gems/extlib-0.9.15/lib/extlib/symbol.rb:3: warning: method redefined; discarding old try_dup /home/rajendran/.rvm/gems/ruby-1.8.7-p374/gems/extlib-0.9.15/lib

Upgrade Jekyll 3 - jekyll-paginate

一个人想着一个人 提交于 2019-12-07 19:26:40
问题 My blog is using Jekyll 2 and I've used pagination. However now that GitHub is moving to Jekyll 3enter link description here and Jekyll drop support for jekyll-paginate I have problems upgrading. The jekyll-paginate page says that it is retried as of Jekyll 3 and trying to bundle it with my other gems is creating a bunch of problems. Any thoughts as too how to handle this? Are there any other pagination gems that works with Jekyll 3? 回答1: Yes. Jekyll 3.0 is no more supporting paginate by

CSV importing in Rails - invalid byte sequence in UTF-8 with non-english characters

醉酒当歌 提交于 2019-12-07 18:12:50
问题 I'm using the CSVMapper Gem to import some records in a CSV file to a Rails 3 model. (I used this gem because it is what I've found the easiest way to do this) Anyway, the code I'm using to import the records is the following: r = import('doc/socios_full.csv') do map_to Associate after_row lambda{|row, associate| associate.save } start_at_row 1 [group,member,family_relationship_code,family_relationship_description,last_name,names,...] #The previous line is actually longer, with more atts, but

Getting Susy and Compass installed with ruby on rails

无人久伴 提交于 2019-12-07 16:08:46
问题 I'm just starting with ruby on rails and one of the first things I tried to do was install the gems compass and susy. After figuring out that I needed to include them in the gemfile (I'm using RubyMine and thought it would do it for me), I still got a missing "Could not find", "susy" error when I tried to import susy into one of my css.scss files. I have ruby version 1.9.3 (194) and ruby gems version 1.8.23 Any help on which gems (and versions) I need in my bundle, how to make sure they get

Is there a way to download a file from s3 using the ruby gem aws-s3?

妖精的绣舞 提交于 2019-12-07 15:18:34
问题 Ok so i tried two methods both failed First method using the aws-s3 gem require 'aws/s3' S3ID = "MYACCESS" S3KEY = "MYKEY" include AWS::S3 AWS::S3::Base.establish_connection!( :access_key_id => S3ID, :secret_access_key => S3KEY ) bucket = AWS::S3::Bucket.find("test_bucket") => #<AWS::S3::Bucket:0x007fea3e2898c8 @attributes={"xmlns"=>"http://s3.amazonaws.com/doc/2006-03-01/", "name"=>"test_bucket", "prefix"=>nil, "marker"=>nil, "max_keys"=>1000, "is_truncated"=>true}, @object_cache=[#<AWS::S3:

Specified sqlite3 gem not loaded

≯℡__Kan透↙ 提交于 2019-12-07 14:44:05
问题 Although I am relatively new to Ruby on Rails, I have been developing apps for a short while now. The problem I seem to have is when I create a new rails app (locally / using c9) I seem to be getting this error when I start up the apache server "Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord)" In My Gem file I can see that the sqlite3 gem is present. I have tried

How to force rubygems or shell to use a certain version of a gem's executable?

江枫思渺然 提交于 2019-12-07 14:23:13
问题 For example, I can install v1.3.6 of bundler on my machine, but the shell will still use v1.11.2: $ gem install bundler -v 1.3.6 ... 1 gem installed $ bundle -v Bundler version 1.11.2 To actually use v1.3.6, I have to either explicitely say so every time or uninstall v1.11.2: $ bundle _1.3.6_ -v Bundler version 1.3.6 $ gem uninstall bundler -v 1.11.2 ... $ bundle -v Bundler version 1.3.6 How I can I keep earlier versions of Bundler installed (like 1.11.2) but change the default to another

Rails requires RubyGems >= 1.3.2. Please install RubyGems and try again (I have rubygems 1.3.6!)

不羁岁月 提交于 2019-12-07 12:32:04
问题 I'm running rails version 2.3.5 and rubygems version 1.3.6, when I script/server I get this error Rails requires RubyGems >= 1.3.2. Please install RubyGems and try again:http://rubygems.rubyforge.org any ideas how to fix this? 回答1: The first thing you should do is run: gem env This will output, amongst other things, the RUBYGEMS_VERSION and your GEM_PATHS. Verify that everything you think is true, is indeed true. In the GEM_PATHS, you will probably see multiple paths, the top most being the

Can't install rdiscount gem after installing RubyInstaller and DevKit on Windows

别等时光非礼了梦想. 提交于 2019-12-07 12:27:27
问题 I'm having some errors trying to set up RoR on my Windows 7 machine. I installed Ruby with the RubyInstaller and DevKit. In their directions it says to execute gem install rdiscount --platform=ruby to ensure that it's installed correctly. I get the following error: C:\Windows\system32>cd ../../DevKit C:\DevKit>gem install rdiscount --platform=ruby Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing rdiscount: ERROR: