Questions tagged [ruby-1.8]

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

Ruby is an open-source dynamic object-oriented interpreted language created by Yukihiro Matsumoto (Matz) in the 1990s.

Related tags:

140 questions
0
votes
1 answer

How to send mail via Exchange Server 2013 on Rails 2.1.1?

We have an old application that we built 6 years ago. We get this error "504 5.7.4 Unrecognized authentication type" after we upgrade our mail server from Exchange Server 2007 into Exchange Server 2013. Is there anyway to solve this error without…
0
votes
5 answers

when will ruby 1.8.6 be retired?

I can't seem to find any info on this... when will ruby 1.8.6 be 'retired'? ruby 1.8.7 is much more functional while maintaining syntax compatibility, and ruby 1.9.1 is significantly better all around... any idea when 1.8.6 will be retired?
Derick Bailey
  • 72,004
  • 22
  • 206
  • 219
0
votes
1 answer

Don't know how to build task 'rake'

I am quite new to Rails. While running the command rake rake db:create, I get into the following error: rake aborted! Don't know how to build task 'rake' C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1728:in…
Sandah Aung
  • 6,156
  • 15
  • 56
  • 98
0
votes
1 answer

Error I have gotten a few times and I don't know how to fix it

I keep seeing undefined (?...) sequence: something. For this particular one I had.. /(?
user3606254
  • 165
  • 1
  • 5
0
votes
2 answers

Ruby Array#puts not using overridden implementation?

I am using Ruby 1.8.6 for the following code: # Create an array and override the #to_s on that object thing = [1,2,3] def thing.to_s 'one' end print "Using print: " print thing puts puts "Using puts: " puts thing Output: Using print: one Using…
or9ob
  • 2,313
  • 4
  • 25
  • 45
0
votes
1 answer

NoMethodError for readbytes on Ruby File class

I am writing a script to read the header bytes from a PNG file. I want to use the readbytes method on File: f = File.open("Boots.png", "rb:binary") header = f.readbytes(8) But I get a NoMethodError on the second line: NoMethodError: undefined…
WaveformDelta
  • 141
  • 1
  • 8
0
votes
1 answer

Why do I get "Undefined method `take' for Array" in Ruby 1.8.7?

I'm not sure why I get this error, since it does seem to be an array in Ruby 1.8.7. Here is the relevant code: rows.each_with_index do |row, index| if (index == 0) then log "Found the following slow statements (took over…
Benbob
  • 13,876
  • 18
  • 79
  • 114
0
votes
1 answer

rake gems:install failing in rails 2 app for mystifying reasons

I am trying to get a rails 2.3.12 project running in my local development environment, but I cannot seem to install the needed gems. Here are the ruby/rails versions I am using: $ rvm list rvm rubies ... => ruby-1.8.7-p371 [ i686 ] ... $ rails…
0
votes
1 answer

NoMethodError (undefined method `tempfile'... in Rails 2.3.1

I have downgraded from Rails 3.2.11 to Rails 2.3.11 and I am having trouble accessing the tempfile when my csv file is being uploaded to the server. It breaks on the code when I call tmppath = csv.tempfile.to_path.to_s And here is the trace in my…
freedom
  • 751
  • 1
  • 10
  • 20
0
votes
1 answer

The application spawner server exited unexpectedly: Unexpected end-of-file detected

I do not have much experience with Rails. Back on Wednesday I was told to upgrade Redmine, and upgrade the plugins. I've been working on this for 3 days now and it has been a shock to see how far Rails still has to go to enter the modern era of…
cerhovice
  • 676
  • 1
  • 10
  • 24
0
votes
1 answer

Escape ruby string interpolation syntax

Possible Duplicate: How do I escape #{ from string interpolation If I have a string like this: "interpolated: #{1}, verbatim: #{dont_interpolate}" How do I escape only the second #{} such that the output looks like this: => interpolated: 1,…
Joel
  • 11,431
  • 17
  • 62
  • 72
0
votes
2 answers

How to Call/Require Ruby 1.8 Lib from Ruby 1.9

I'm using a Ruby 1.8 lib kakasi-ruby, but it seems that it can only be compiled against Ruby 1.8 (https://github.com/hogelog/kakasi-ruby/issues/2) My application is Ruby 1.9.3, so I need to call kakasi-ruby from Ruby 1.9.3. How should I do? Do I…
Peter Lee
  • 12,931
  • 11
  • 73
  • 100
0
votes
1 answer

How do I move from SOAP:RPC:Driver to Savon

As discussed elsewhere the SOAP::RPC::Driver which was available in Ruby 1.8 has been removed in Ruby 1.9. People suggested using the Savon gem, but I can't find any tutorials on how to convert existing code, specifically for endpoints for which…
davetapley
  • 17,000
  • 12
  • 60
  • 86
0
votes
2 answers

Modifying the returned value of find_by_sql

So I am pulling my hair over this issue / gotcha. Basically I used find_by_sql to fetch data from my database. I did this because the query has lots of columns and table joins and I think using ActiveRecord and associations will slow it down. I…
r2b2
  • 1,255
  • 5
  • 13
  • 34
0
votes
2 answers

Ruby: "NoMethodError" after updating to ruby 1.9

I know this question may seem very specific, but I'm trying to update some scripts to run on ruby 1.9 and have run into this very similar error on more than one occasion. I'm trying to run this code here: http://x.gfax.ch/Archives/Scripts/boggle.rb…
1 2 3
9
10