Legacy version of the Ruby on Rails web development framework.
Questions tagged [ruby-on-rails-2]
746 questions
0
votes
0 answers
How to downgrade a rails app from 3.2 to 2.3.4
I've created a rails 3.2 site/app but the hosting company I wanted to use only supports rails 2.3
Is there any easy option to downgrade. As a long sort , I tried changing my Gemfile on my dev copy but it complains about various dependencies.
Is…

AndyM
- 562
- 4
- 22
0
votes
2 answers
Single index multi type - elasticsearch indexing via tire
In my multi-tenant app (account based with number of users per account), how would I update index for a particular account when a user document is changed.
I have a separate index for each account, in which the mappings for each model (user and…

Vamsi Krishna
- 3,742
- 4
- 20
- 45
0
votes
1 answer
How to enable Rails 3 like logging in Rails 2.0.x
I have old project where I have to use Rails 2.0.2. I have faced problem with debugging of errors in application. Current problem is that I have very short log output in development environment:
no SQL queries;
no error trace;
no params…

thesis
- 2,565
- 5
- 26
- 37
0
votes
1 answer
Deploying to Heroku without a Gemfile
I'm working with an old Rails app that was initially built before Bundler and Gemfiles. Is it possible to push this app up to Heroku without a Gemfile? The app is in production on the Bamboo Stack and working without one. I'm trying to add a…

Nathan
- 1,762
- 1
- 20
- 30
0
votes
2 answers
What is the jQuery gem for Rails 2?
I want to make use of jQuery in Rails 2. What is the gem needed for it?
I came to know that 'jquery-rails' can be used for Rails 3 only.

KiranD
- 433
- 2
- 7
- 20
0
votes
1 answer
How to access Hbase running on Amazon EMR in ruby on rails
Can anybody please help me in getting connection to Hbase (which is running on Amazon EMR) programmatically in ruby?
Actually, I want to import bulk data into Hbase column oriented table on Amazon EMR and retrieve the same data with…

user1509711
- 11
- 2
0
votes
1 answer
Technique suggestions for a user friendly multi-model (with associated files) export file structure
I'm faced with the need to export a group of model instances (some of which have associated file attachments) in a format that will be easy to read back into my system, but that is also human friendly to read, and possibly import into another…

Brendon Muir
- 4,540
- 2
- 33
- 55
0
votes
1 answer
How to test old rails2 application in rails3 environment?
I am learning how to build rails application. And I found a very helpful blog github,
https://github.com/balgarath/video-app
But this project is done 4 years ago.
I trying to follow the instructions to compile it. But I cant run it without the…

runcode
- 3,533
- 9
- 35
- 52
0
votes
1 answer
Rails 2 to 3 and deprecated gems
I am planning on initiating an upgrade from Rails 2 to Rails 3 for a rather big app. Problem is the project is relying on some old gems that are no longer supported by Rails 3.
What choices do I have, knowing that deactivating the dependant…

Mehdi Chibouni
- 340
- 1
- 2
- 11
0
votes
1 answer
Caching database data
I am trying to cache some data from the database to reduce number of SQL queries to the database. Currently, what I am doing is that I will load a set of records from the database:
@records = Record.find(:all, :conditions => ["id < ?", 100])
and…

Edward
- 1,914
- 13
- 26
0
votes
1 answer
no such file to load -- redis-namespace
I am working on Rails 2.3.8. I have following in my environment.rb
config.gem "redis"
config.gem "redis-namespace", :lib => "redis/namespace"
When I list my redis gems then I see:
redis (2.0.3)
redis-namespace(0.7.0)
When I run rake gems:install…

Sadiksha Gautam
- 5,032
- 6
- 40
- 71
0
votes
2 answers
Get values from 3 different tables based on specific condition
I have 3 tables in my database
User (id, username, email, pwd, etc ...)
Producer (id, user_id)
Address (first_name, city, addressable_id, etc)
Producer has link with User table(User.id = Producer.user_id) and Address table(p.id =…

Raghuveer
- 2,630
- 3
- 29
- 59
0
votes
1 answer
gem version conflict installing resque 1.18 in Rails 2.3.8
I installed redis and resque in Rails 2.3.8 by gem install redis and gem install resque. The version of resque and redis are 1.18.0 and 2.2.2 respectively. I started the worker by
RAILS_ENV=development resque-web config/initializers/resque.rb
I…

Sadiksha Gautam
- 5,032
- 6
- 40
- 71
0
votes
1 answer
Query for only integers Rails 2.3
My environment is Ruby 1.8.7-p358 with Rails 2.3.11. I am trying to query for all accounts that have a first_name containing only numbers (they are all 3 digit integers, i.e. 001, 143, 815, etc.). I have been trying to use this…

starscream_disco_party
- 2,816
- 5
- 26
- 42
0
votes
0 answers
Ubuntu 10.04 / Rails 2.3.11 / Applications are slow
I see this in my rail's log:
Completed in 36594ms (View: 1, DB: 0) | 200 OK
From the looks of it, the View and DB were really fast at completing, but the entire request took 36594ms.
I'm suspecting it may be a server configuration and not Rails. Is…

oprogfrogo
- 2,005
- 5
- 31
- 42