Questions tagged [ruby-1.9.2]

For issues relating to developing in Ruby, version 1.9.2. If your question applies to Ruby in general, use the tag [tag:ruby].

Related tags

234 questions
0
votes
1 answer

undefined method `selector' for # when using mongoid to save a record

undefined method `selector' for # I am getting this error while trying to execute the follwoing code: c = Content.first c.is_processed = true c.save # or c.update_attributes(:is_processed => true) My Content model…
rubyprince
  • 17,559
  • 11
  • 64
  • 104
0
votes
1 answer

Getting error installing ruby 1.9.2-p320 using RVM

I am running Fedora 18 on x86-64 architecture. I am able to install Ruby 1.9.3 using RVM. But, when I try to install Ruby 1.9.2, it's giving me following error: ruby-1.9.2-p320 - #extracting ruby-1.9.2-p320 to…
Abhay
  • 1
  • 2
0
votes
2 answers

regular expression in ruby Regexp

I'm using ruby 1.9.2 string = "asufasu isaubfusabiu safbsua fbisaufb sa {{hello}} uasdhfa s asuibfisubibas {{manish}} erieroi" Now I have to find {{anyword}} How many times it will come and the name with curly braces. After reading Regexp I am…
manish nautiyal
  • 2,556
  • 3
  • 27
  • 34
0
votes
1 answer

Class variable is getting overridden

I've run into a weird problem using hashes as a class variable. After I run the following code, I expect that the class variable @@class_hash should contain {:one => {'a' => 'one'}, :two => {'a' => 'two'}}. However, after I run this code,…
David Weiser
  • 5,190
  • 4
  • 28
  • 35
0
votes
1 answer

I cant install oj ruby gem on windows 7 64

I tried to install oj ruby gem gem install oj -v '1.3.5' Here's the output log C:/Ruby192/bin/ruby.exe extconf.rb Creating Makefile for ruby version 1.9.2 <<<<< creating Makefile make C:/Ruby192/bin/ruby…
Mesbah
  • 83
  • 1
  • 6
0
votes
1 answer

RSpec testing work with files: Errno::EACCES

I'm currently issuing a problem with running tests with rspec. All the test files (*_spec.rb) may run successfully. In same rare cases an error -- Errno::EACCES may appear and one of the tests may fail. E.g: All the test in the file *_spec.rb…
ted
  • 5,219
  • 7
  • 36
  • 63
0
votes
1 answer

Ruby on Rails Time.zone.now

I am using Time.zone.now to get the user's time. I think that this is wrong. Can you confirm that it is wrong? How can I get the user's time? Who is setting Time.zone on my server?
Tony
  • 10,088
  • 20
  • 85
  • 139
0
votes
1 answer

Ruby: How to get colors in testrb

Is there any way to get colors via testrb that does not involve adding test-unit to the gemfile and using bundle exec on 1.9 (everything colored in 1.8)? ruby test/xxx_test.rb -> colors testrb test/xxx_test.rb -> no colors Add test-unit to the…
grosser
  • 14,707
  • 7
  • 57
  • 61
0
votes
0 answers

Unexpected error in Sinatra

In sinatra, I am executing this piece of Code containing values in Hash object: @posts[0]["attachment"]["media"][0]["href"] # where @posts belongs to Koala::Facebook::API::GraphCollection class works fine in sinatra application, however, the use of…
Apoorv Saxena
  • 4,086
  • 10
  • 30
  • 46
1 2 3
15
16