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
2 answers

cucumber test for ruby-1.9.2 and mongoid-2.0.0

I am having a really hard time. I am using cucumber tests for visiting a link. I am using the pickle web steps for When I go to the post comment's new page It does not seem to be working. I also tried I am on the post comment's new page but that is…
Sadiksha Gautam
  • 5,032
  • 6
  • 40
  • 71
0
votes
2 answers

Error when installing "ya2yaml" gem on Windows7, Ruby1.9.2, Rails3

Installing ya2yaml (0.30) c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:371:in `rescue in block in initialize_copy': ya2yaml-0.30 has an invalid value for @cert_chain (Gem::FormatException) from…
Waleed Asender
  • 1,477
  • 15
  • 27
0
votes
2 answers

syncEnumerator equivalent in ruby 1.9.2

In ruby 1.8.x we iterate over multiple enumerables like this: require 'generator' syncEnum = SyncEnumerator.new(enum1, enum2) syncEnum.each { |x;y| puts "#{x},#{y}" } But generator has been removed from Ruby 1.9.x, how can Iiterate over multiple…
Aly
  • 15,865
  • 47
  • 119
  • 191
0
votes
2 answers

Rails 3 saving a record issue

I have been working with Rails 3.0.5 and Ruby 1.9.2 and I have noticed that a new record doesn't get saved or isn't available for use instantly. For example def create @some_record = Pool.new(params[:pool]) …
Sid
  • 6,134
  • 9
  • 34
  • 57
0
votes
1 answer

Is CouchRest 1.0.1 compatible with ruby 1.9.2 version

I am facing issues when making a call to Db using the CouchRest Db when on ruby 1.9.2. the same calls work with ruby version 1.8.7. Is anyone using COuchrest 1.0.1 with ruby version 1.9.2 or similar. The error I am getting is -…
Sam Wilder
  • 869
  • 1
  • 9
  • 21
0
votes
1 answer

How to declare an array parameter in Rails 3?

guys. I tried this code: def trap_check(payroll[][], timelive[][]) . . . end I was trying to create a function that accepts 2-dimensional array as parameters. I was having this error: syntax error, unexpected '[', expecting ')' def…
johan
  • 2,319
  • 9
  • 27
  • 37
0
votes
1 answer

Problem using require command

I am simply requiring a file present in the same folder as the testfile however I am getting this wierd message again and again... :29:in `require': no such file to load -- a.rb (LoadError) from…
Apoorv Saxena
  • 4,086
  • 10
  • 30
  • 46
0
votes
2 answers

Any RC4 decryption lib for ruby 1.9.2?

i found one lib which is here https://github.com/juggler/ruby-rc4/blob/master/lib/rc4.rb But its not working for ruby 1.9.x it throws an error undefined method ^' for "\x1A":String__ is there any work around in ruby 1.9.x? after googling i came…
Krishna Prasad Varma
  • 4,670
  • 5
  • 29
  • 41
0
votes
1 answer

How to parse a JSON file in Ruby version 1.8.7

I have a file called Output.json: [ { "name": "krishna", "service": "postman", "host": "xxxxxx", "doing": [], "pool": "xxxxxx", "roleType": "yyyyy", "simple": true } ] And this is my Test.rb file: require…
user1642224
  • 61
  • 14
0
votes
1 answer

unicode_utils gem won't install

I'm getting this error on a bundle install (this is while I am using ruby 1.9.2 (I have tried 1.9.1 as well) and Rails 3.2.11 Installing unicode_utils (1.4.0) /usr/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:388:in…
Kevin
  • 1,574
  • 4
  • 19
  • 45
0
votes
1 answer

Run python from a click event in ruby

I would like to be able to click an "Alert" button on my rails application that then calls python to run a specific alert script. My specific question is how do I get the click event to call the python script?
McGweeezy
  • 3
  • 4
0
votes
0 answers

invalid byte sequence in UTF-8 - Rails 3.2

I am using Rails 3.2.13 and ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-linux] in CentOS 5.6 . When i run db:seed process i got the following error message rake aborted! invalid byte sequence in…
Bathakarai
  • 1,517
  • 6
  • 23
  • 39
0
votes
2 answers

ActiveRecord::RecordNotSaved - Rails 3 seeding data

I am using rails 3.2.13 and ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-linux] in CentOS 5.6. When I try to seed the data I got the following error. ** Execute Samp:seed:record_status Creating RecordStatus: Active rake…
Bathakarai
  • 1,517
  • 6
  • 23
  • 39
0
votes
1 answer

Should I use Net::HTTP when I want to make POST request to an action

I have an action create and another action register_and_create. The first creates subscription and the seconds creates user and subscription. But I will have to copy the code of create action in register_and_create action. So is it good practice to…
Tsvetelina Borisova
  • 417
  • 1
  • 4
  • 14
0
votes
1 answer

rails webrick httpserver encoding issue

I was trying to open a small and simple http server to share some files on LAN (or online on public IP). On a bit of research i found python -m SimpleHTTPServer does the job but it has horrible concurrent request issues. Users tell me that when…
saGii
  • 447
  • 5
  • 14
1 2 3
15
16