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…
<%= @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…
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…
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.
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…
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…
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…
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…
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\""],…
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…
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.
…
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…
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$…