Questions tagged [ruby-1.8.7]

For issues relating to developing in Ruby, version 1.8.7.

Use this specific tag along with the generic one: .

203 questions
1
vote
0 answers

soap4r authentication error

I am using soap4r with ruby 1.8.7p358 and I am facing a strange error. I have an endpoint_url, when I browse it, there is no authentication error message. It prints out the response. However, when I create a soap client and try to access the method…
Sadiksha Gautam
  • 5,032
  • 6
  • 40
  • 71
1
vote
3 answers

Ruby remove everything after first space

<%= @contact.foo_help %> Outputs a number id and title (with a space between them), ex: 29292 This Is A Title. I just want the number. It won't always be the same amount of digits, and ocassionly I use numbers in my titles. I was thinking the…
jahrichie
  • 1,215
  • 3
  • 17
  • 26
1
vote
1 answer

Ruby routes and custom action

I'm trying to incorporate Devise and Cancan into a web app. I want users with :role => "admin" to be able to delete users, and Devise's destroy action only allows users to delete themselves, so I've created a custom action for this purpose. (To…
Reb
  • 649
  • 1
  • 8
  • 12
1
vote
2 answers

How to disable ruby UDPSocket from resolving IP address on recvfrom?

When doing data, addr = @socket.recvfrom(1500), the addr array contains Array: ["AF_INET", port, "resolved-name-or-ip", "ip"] How can I disable resolving on UDPSocket? The documentation for ruby UDPSocket is bit poor.
cmouse
  • 672
  • 1
  • 6
  • 22
0
votes
3 answers

rails 3.2 ruby 1.8.7 iconv (LoadError)

I am getting an akward error using rails 3.2.3 and ruby 1.8.7-p334 or p358. I unfortunatly must use 1.8.7 since the webhoster i am deploying to is using 1.8.7 patchlevel 334. I and and collegue have no problem running that on Mint or on my Macbook…
anny_goerl
  • 642
  • 2
  • 8
  • 13
0
votes
1 answer

In Ruby 1.8.7, why does JSON syntax in IRB raise a Syntax, but not in a Rails 3.2.22.1 console?

I'm responsible for maintaining a legacy Ruby on Rails application, and I'm currently testing it on Ruby v1.8.7 (2013-12-22 patchlevel 375). The app is using Rails v3.2.22.1 (a Rails version provided by Rails LTS). I am bumping into a weird syntax…
popedotninja
  • 1,170
  • 1
  • 12
  • 23
0
votes
1 answer

Why is a legitimate user getting logged out Involuntarily?

I have an application built on Rails 2. If the user opens two instances of the same application(dev, uat or any two), it logs out while the person is active. Also this behavior is inconsistent. sometimes it happens within 2 minutes of login and…
Richa Sinha
  • 1,406
  • 15
  • 29
0
votes
2 answers

Ruby custom split function slow

I have a large file of mostly space-delimited data I want to parse into a hash. The problem is this is mostly space-delimited, so a simple string.split isn't going to work. Here's a simplified example of one of the lines in the file: field0 field1…
Brad Johnson
  • 113
  • 1
  • 7
0
votes
0 answers

JSON parse not converted in same order in ruby

Below JSON…
Qmr
  • 64
  • 1
  • 7
0
votes
0 answers

Firebase realtime DB retrieving gives error in Rails App

result = firebase.get('chats/CONV000002').body.values result =…
Qmr
  • 64
  • 1
  • 7
0
votes
1 answer

Using ruby net/http library I cannot authenticate http request with basic auth going to the IIS server

The IIS server has basic auth enabled alongside Negotiate and NTLM. Here's Response headers: {"content-type"=>["text/html"], "server"=>["Microsoft-IIS/10.0"], "www-authenticate"=>["Negotiate", "NTLM", "Basic realm=\"my_realm\""],…
G_89
  • 101
  • 3
0
votes
1 answer

Ruby 1.8.7 Array of symbols raising TypeError: Symbol as array index

I recently created a pull request for a gem which is building on travis against quite old ruby versions for backward compatibility. In my commit I wanted to introduce a whitelist on some method options passed as an hash parameter. In Rails with a…
mabe02
  • 2,676
  • 2
  • 20
  • 35
0
votes
0 answers

ruby sql server adapter issue

I am attempting to port a legacy ruby code version, like 1.8x, from a server running SQL SERVER 2008R2 to one running SS 2012. I get the following error: Status: 500 Internal Server Error Currently, only 2000, 2005, and 2008 are supported. …
Timothy Dooling
  • 470
  • 1
  • 4
  • 17
0
votes
0 answers

Trying to install Ruby 1.8.7-p249 on Ubuntu 16 results in an SSL error

There's a lot of questions regarding this on Stackoverflow, but the answers appear to be out of date or not applicable to my situation. I've followed the instructions in this answer - https://stackoverflow.com/a/9440944/1446264 And after running rvm…
Nick Shears
  • 1,103
  • 1
  • 13
  • 30
0
votes
2 answers

Ruby Gem adaptor MySQL error

I am getting the below error while using the MySQL gem; Tried mysql2 and it also gives the same error. -bash-4.1$ gem list *** LOCAL GEMS *** mysql (2.9.1) -bash-4.1$ ruby -v ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux] -bash-4.1$…