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
0
votes
1 answer

Why does a fork in ruby 1.9.2 break memcached connections, but not in 1.8.7?

While upgrading a large project from 1.8.7 to 1.9.2, I have uncovered a bug that I am at a loss to explain. It appears the fork operation breaks a memcached connection, even when the memcached connection isn't used in the forked code. Here is an IRB…
esilver
  • 27,713
  • 23
  • 122
  • 168
0
votes
2 answers

jQuery not working after deployment to Site5

I successfully deployed my app to Site5 - and as I started to play around on it, I realized that not all of the jQuery was working. Specifically, anything that involved grabbing information from Ruby Forms. I'm getting the following…
cadlac
  • 2,802
  • 3
  • 18
  • 34
0
votes
1 answer

Using Active Merchant on Ruby 1.8.7

I am using Site5 to host my site, and which limits me to use ruby 1.8.7. However, I can't install the Active Merchant gem because it has Money as a dependancy - which requires Ruby 1.9.2! Is there any way to work around this? Perhaps declaring a…
cadlac
  • 2,802
  • 3
  • 18
  • 34
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

updated? method in Rails3.1

I am upgrading a rails3.0 app to rails3.1.10 I have model class User < ActiveRecord::Base belongs_to :account ..... def some_method return unless self.account.updated? ....... end end but .updated? method seems to be removed from…
user1136228
  • 967
  • 9
  • 22
0
votes
1 answer

Apache / Passenger / Rails app exiting during startup

I'm new to Ruby on Rails and have inherited a pretty large legacy app that I need to get running in a dev environment. I've created a OSX Mountain Lion virtual machine from scratch to use as my dev box. I'm running with ruby 1.8.7 & rails 2.2.2. I…
plamoreux
  • 1
  • 3
0
votes
0 answers

How does a bigdecimal's precision change upon converting to string?

I stumbled upon a very weird behaviour. A normal bigdecimal value when converted to string using to_s method changes it's behaviour. There is a normal float column in my table and a record has the value 37502 When I fetch the record and print it in…
ZX12R
  • 4,760
  • 8
  • 38
  • 53
0
votes
1 answer

dynamically set value of textfield rjs rails

I am trying to set the value of the hidden text field through rjs. I have a form. <% form_tag :action => "upload" do %> <%= file_field_tag :zipfile %> <%= submit_tag "Upload" %> <%= hidden_field_tag "progress" %> <% end %> I want to set…
Sadiksha Gautam
  • 5,032
  • 6
  • 40
  • 71
0
votes
1 answer

Ruby 1.8.7 RegExp doesn't work with meta-character "\h"

If I run this in a 1.8.7 console: $ irb-ruby-1.8.7-p330 1.8.7 :001 > "0a" =~ /\h\h/ => nil And if I run the same in a 1.9.2 console: $ irb-ruby-1.9.2-p290 1.9.2p290 :001 > "0a" =~ /\h\h/ => 0 :/
fguillen
  • 36,125
  • 23
  • 149
  • 210
0
votes
5 answers

Downgrading from Rails 3.2.6 to 3.0.11

I am facing issue when I am trying to work with rails 3.0.11. I initially worked with rails 3.2.6. Build a prototype application in Rails 3.2.6, Ruby 1.9.2 and gem 1.8.7. But then found, server on which we need to host is a shared server which can…
Gun
  • 61
  • 1
  • 9
0
votes
2 answers

Sort by sql query using a url param

I have this huge ugly query below, i'd like to sort by it in a catalog view. Thinking something like http://wow.dev:3000/catalog_items?&order=deals. A million thank yous in advance for any comments or answers. select 100 - round((current_price…
jahrichie
  • 1,215
  • 3
  • 17
  • 26
0
votes
1 answer

Rails 2.3 + Ruby 1.8.7 incompatible character encodings: UTF-8 and ASCII-8BIT

I've been having this problem in the index.rhtml of our app. Basically, I have a dynamic div in the page w/c displays all the information of the currently signed in user's projects. Here is a snippet where the error occurs: <% projects.each do |p|…
Normz
  • 271
  • 1
  • 2
  • 9
0
votes
1 answer

Create a class to populate page in ruby 1.8.7

I'm trying to make a class to populate a deals tab on my website. Part 1. Take an items close date (CatalogItem.close_date) and use all items within 12 hours of closing. Part 2. Calculate the deal percentage by using the current price…
jahrichie
  • 1,215
  • 3
  • 17
  • 26
0
votes
1 answer

Time fields in Rails app all getting populated with January 1, 2000, 12:00AM

I'm using Time to hold the start and end dates within an events controller I'm working on. However my application is neglecting to submit the Time information, in both test and development environments, both in the browser and in my Rspec tests. A…
Reb
  • 649
  • 1
  • 8
  • 12
-1
votes
1 answer

rvm install 1.8.7 returns " Error running '__rvm_make -j4' "

I am trying to install ruby 1.8.7 in Ubuntu 18.04.1 LTS. It Says "Error running '__rvm_make -j4',". It seems to be a openssl problem for me. But I am not sure how to fix it. Last 20 lines are copied below. Please help me to find a fix for installing…
1 2 3
13
14