Legacy version of the Ruby on Rails web development framework.
Questions tagged [ruby-on-rails-2]
746 questions
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
2 answers
Looking For Steps In Migrating Ruby 1.8.7 Web Application To Ruby 1.9.3
I am having an big old ruby on rails application
ruby version - 1.8.7 (2011-06-30 patchlevel 352)
rails version - 2.3.16
currently there is no plan in migrating rails version
As far as i know the performance of ruby 1.9.x is 2 times faster than…

Sam
- 685
- 12
- 34
0
votes
1 answer
How to display activerecord validations within a lightbox after submitting a form using rails 2.3.15
I am having rails 2.3.15 application and using ibox for displaying content within lightbox.
I am having a form which is being displayed within a lightbox. On submitting the content, I need to display the activerecord errors (if any) within the same…

Subrahmanyam Konduri
- 163
- 1
- 11
0
votes
1 answer
will_paginate and acts_as_indexed produces odd pagination results
I'm implementing a search function by using acts_as_indexed along with will_paginate. I'm using Ruby 1.8.7 and Rails 2.3.11. No, I cannot upgrade Ruby as I'm using a shared host.
Regular use of the 'paginate' method yields expected results, however…

SnakeWasTheNameTheyGaveMe
- 2,522
- 2
- 28
- 70
0
votes
1 answer
how to create migration script with foreign key
I want to create tables with foreign key through my migration script.
create_table :posts do |t|
t.string :title
end
create_table :comments do |t|
t.references :post
end
after rake db:migrate, comments was not referred by post through id.
How…

Achaius
- 5,904
- 21
- 65
- 122
0
votes
1 answer
if else to render a different form in the view of a rails 2 app
I am trying to render one of two slightly different forms with an unless else:
unless many_items
form_tag purchases_url(:item1 => item1), :id => "id1_#{item1}", :method => "post", :class=> "order-form" do
else
form_tag…

WebQube
- 8,510
- 12
- 51
- 93
0
votes
1 answer
Ruby object with object property
I have a class that uses the AWS S3 gem and have several methods in my class that utilise the gem. My issue is, that rather than configuring it in several locations, I'd like to make it a property of my object.
In PHP, we'd do this;

Christian
- 3,917
- 2
- 23
- 40
0
votes
0 answers
Changing the platform of rails application(platform specific gems)
I have rails application built in windows machine changing app to linux machine.I found some gem windows specific.All I need to know is whether same are required for linux as well?
ruby-1.8.6 rails-2.3.8 Database sqlserver(windows)
ruby-1.8.6…

Chitrank Samaiya
- 841
- 10
- 20
0
votes
1 answer
Rails gem fork issue
I'm applying a patch to my fork of 2.3.15 rails for a workaround for one of the latest security issues.
Previously in my gem file I had -
gem 'rails', '2.3.15'
And everything worked as expected. But for my fork I have
gem 'rails', '2.3.15', :git =>…

Marklar
- 1,056
- 2
- 13
- 31
0
votes
1 answer
Ruby 2.3.15 error: Malformed version number string
I am working on upgrading an old Rails app running Rails 2.3.2 on Ubuntu to the latest Rails 2.3.15. The app originally had a vendored version of rails in vendor/rails but I have removed that, installed the rails 2.3.15 gem, and changed the version…

Andrew
- 227,796
- 193
- 515
- 708
0
votes
1 answer
rails 2 limit the loading record with pagination without using pagination gem but active record query
I am working on rails 2 application I need to work with the 8000 records and show them in table.
I need to do limit to the loading record.
Like from 8000 records I want to show 10 records then only 10 records are display then click on next button…

urjit on rails
- 1,763
- 4
- 19
- 36
0
votes
1 answer
How to add validation for this case in rails 2
I have text field with name print run which has to be validated in the format of
Valid values for the print run field, are positive integers, 'Unlimited', and 'Silent'.
I have added validation like this
VALID_NAMES = %w(Unlimited silent #k)
…

yamuna
- 21
- 3
0
votes
1 answer
rails 2.3, link_to in mailer view,
I have setup of mailer that is working perfectly.
I want to send a link in mail body so in view of mailer i am doing the following:
<%= link_to "somesite","http://www.somesite.com" %>
but in delivered email it appears as following:

geekdeepak
- 1,165
- 11
- 18
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
Empty Rake -T on old version of Rails
When I run rake -T I get no output:
$ rake -T
$ rake -v
(in /Users/noah/Work/website)
rake aborted!
Don't know how to build task 'default'
(See full trace by running task with --trace)
No matter what I run rake db:migrate for example, I always get…

Noah Clark
- 8,101
- 14
- 74
- 116