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…
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…
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…
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…
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…
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…
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…
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…
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
:/
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…
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…
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|…
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…
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…
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…