For issues relating to developing in Ruby, version 1.9.2. If your question applies to Ruby in general, use the tag [tag:ruby].
Questions tagged [ruby-1.9.2]
234 questions
0
votes
1 answer
Parsing time in Ruby 1.9.2 is not same as Ruby 1.8.7?
Parsing this in ruby 1.8.7
time_str = "Sun Feb 01 0111 00:00:00 GMT+0530 (IST)"
Time.parse(time_str)
output Tue Feb 01 00:00:00 +0530 2011 ruby 1.9.2 time_str = "Sun Feb 01 0111 00:00:00 GMT+0530 (IST)"
Time.parse(time_str)
Time.parse(time_str)
output Tue Feb 01 00:00:00 +0530 2011 ruby 1.9.2 time_str = "Sun Feb 01 0111 00:00:00 GMT+0530 (IST)"
Time.parse(time_str)

suren
- 969
- 4
- 22
0
votes
1 answer
Issues with Nokogiri on Mac
I am trying to parse an OFX file from the ofx gem, which works fine in Ubuntu but
gives me an error on Mac OS.
I am using RVM. Here are the details:
ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553)
rails -v
2.3.11
gem -v
1.6.2
* gem list…

Nishant
- 115
- 1
- 8
0
votes
1 answer
If I upgrade my Ruby from 1.9.1 to 1.9.2, do I have to reinstall all my gems?
I'm particularly worried about whether I need to upgrade Passenger and recompile my Passenger apache module.

dan
- 43,914
- 47
- 153
- 254
0
votes
1 answer
Nokogiri -- preserve doctype and meta tags
I'm using nokogiri to open an existing html file that looks like this:

mportiz08
- 10,206
- 12
- 40
- 42
0
votes
2 answers
incompatible character encodings: UTF-8 and ASCII-8BIT and thinking_sphinx
I have a very common trouble in ruby 1.9.2 and rails 3.0.9 – incompatible character encodings: UTF-8 and ASCII-8BIT exception.
It is raised when i use thinking_sphinx search.
def result
#return page(1).per(1) #no any exceptions
return…

Alexander Ulitin
- 1,150
- 1
- 10
- 23
0
votes
4 answers
ruby 1.9.2 p180 crashing under os x lion
I use RVM to manage my rubies, I just upgraded to Lion and everything seemed to be working fine except I noticed ruby 1.9.2 p180 keeps crashing. I tried under both webbrick and thin and it made no difference. My stack was working fine under 1.9.2…

holden
- 13,471
- 22
- 98
- 160
0
votes
2 answers
Rake Command not working after upgrade rails and ruby version
I am getting an error when i am running any sort of rake command , it is showing me
rake aborted!
no such file to load -- config/environment
I am trying to upgrade the ruby version from ruby 1.8.7 to ruby 1.9.2 and rails 2.3.11 to rails 3.0.9 and…

Nishant
- 1
0
votes
2 answers
"def <=>" vs. "def method_missing"
is there a way to use the spaceship method and the magic "method_missing" in one class? The below example gives me undefined method '<' whenever I try foo1 < foo2 with a definiton like:
class Foo
def initialize(params)
@parent=…

pagid
- 13,559
- 11
- 78
- 104
0
votes
1 answer
Error installing mysql2 gem
Trying to install mysql2 gem on ruby 1.9.2 and I get this error:
Installing mysql2 (0.3.2) with native extensions /Users/dombesz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions':…

dombesz
- 7,890
- 5
- 38
- 47
0
votes
1 answer
OmniAuth Invalid Response - Updating to 1.9.2 not working
Hi
I know this question have been asked before but the answers there isn't working for me.
I still get the, when redirecting back to my site.
/auth/failure?message=invalid_response
I have ruby 1.9.2p180 (2011-02-18 revision 30909)…

Philip
- 6,827
- 13
- 75
- 104
0
votes
1 answer
paperclip with ruby 1.9.2-p180
I am trying to update my Rails 3 application to use ruby 1.9.2
The problem is paperclip stops creating attachments / styles for my uploads and only uploads the original.
I am using rails 3.0.7 and paperclip 2.3.11
This all works switching to 1.8.7…

rick
- 463
- 5
- 23
0
votes
1 answer
undefined method `children' for nil:NilClass
Okay. I'm past my wit here.
I've got a rails app that I haven't worked on in about 3 weeks...yet when I left off it did not produce this error anywhere.
I am using the latest versions of many gems yet all of them seem to be working. I'm working…

voxobscuro
- 2,132
- 1
- 21
- 45
0
votes
1 answer
UTF-8 string in Ruby
I have the following module:
# encoding: utf-8
module RandomNameModule
def self.doesNothing(word)
str = ""
word.codepoints{|val|
str << val.chr
}
return str
end
end
and the following test:
#…

Aly
- 15,865
- 47
- 119
- 191
0
votes
1 answer
Error: "incompatible character encodings: ASCII-8BIT and UTF-8" & "invalid byte sequence in UTF-8" when create a record RoR into SQL Server 2008 R2
I have build a web application with ruby on rails. With:
Ruby: ruby 1.9.2p290
Rails: rails (3.0.7)
Database: SQL Server 2008 R2
I've tested it in my local with input Chinese Traditional character into the input/textbox and create the data. it's…

AdhiFoo
- 1
- 1
- 4
0
votes
1 answer
Rails 3 halts when started on windows 7
Im developing a project based on CommunityEngine and i installed Rails3 on Ruby1.9.2, Im using mysql2 gem which i think is the problem, i faced many issues and solved them all, when i start the server "rails s" it starts normally but refuses to go…

Waleed Asender
- 1,477
- 15
- 27