Legacy version of the Ruby on Rails web development framework.
Questions tagged [ruby-on-rails-2]
746 questions
2
votes
0 answers
Rails Active Record Query Finding Item Out Of Scope
I'm not sure I fully understand active record querying, but I am running into a very peculiar issue where my active record conditionals seem to be pulling in items outside my current scope. Here is an example of what I am seeing:
In Rails 2.3…

Lalibelamonk
- 63
- 1
- 8
2
votes
0 answers
Possible Callbacks for observer_form
Can anyone tell me which are the possible observer_form callbacks? I am working on an old Rails application which I have migrated from Rails 2 to Rails 3. Application contains observers like field_observer and form_observer.
I want to add a…

Nishant Upadhyay
- 639
- 7
- 20
2
votes
1 answer
Nested rails form without accepts_nested_attributes_for
I am update a clients rails application and its rails
RAILS_GEM_VERSION = '2.2.2'
and I need a nested form...any suggestions of another idea
I have user which has one profile

Matt Elhotiby
- 43,028
- 85
- 218
- 321
2
votes
2 answers
Rails 2 hook to modify data before it is read/written to MySQL DB
I have a rails 2 application that I am trying to modify so that before an attribute is written to my MySql DB, it is encoded, and on read, it is decoded (not all attributes, just pre-determined ones).
I have looked at some gems, specifically…

Hawkeye001
- 791
- 2
- 11
- 25
2
votes
1 answer
How to update from Ruby on Rails 2.3.18 to 4.2.4 (latest)?
I want to update a huge Ruby on Rails v2.3.18 application to Rails v4.2.4 (latest).
After doing some research, I've came up with:
After Rails 2.3.18 (March 18, 2013), a total of 195 versions have been released until Rails 4.2.4 (August 24,…

Daniel Andrei Mincă
- 4,446
- 2
- 19
- 30
2
votes
3 answers
Why Rails.cache is not thread safe?
I know Rails.cache is ActiveSupport::Cache::MemoryStore, and it is not thread safe.
I don't understand, why rails use a thread-unsafe cache as its default? Why not use ActiveSupport::Cache::SynchronizedMemoryStore? In my opinion, in a web site, if…

Freewind
- 193,756
- 157
- 432
- 708
2
votes
1 answer
Reset the database , remove the seeds.rb data from database
How to remove the seeds.rb data from database , i added some data in seeds.rb even though i changed ,it is not working !!!, how to remove the data which is present in database , which is entered through the seeds.rb file ?

Karthik G V
- 43
- 6
2
votes
1 answer
Using URL helpers from the console in Ruby on Rails 2.3.11
I'm trying to use URL helpers in a 2.3.11 Ruby on Rails application, but I'm facing many problems with whatever the solution I try...
I've read a lot of "solutions" like including include ActionController::UrlWriter before trying to get a path, but…

zapico
- 2,396
- 1
- 21
- 45
2
votes
2 answers
Does pry work on Rails 2?
I'm looking for a good solution to debug my application(written on Rails 2) and I found pry very helpful. How can I use it in a Rails 2 app, tried and it doesn't seem to be working? Is there an alternative?

Coding active
- 1,620
- 3
- 23
- 40
2
votes
1 answer
rails image_submit_tag x y values
I'm trying to switch to using image_submit_tag instead of submit_tag so I can have a nice looking button. But the parameter list is getting mangled:
<% form_tag 'reports', {:method => 'get'} do %>
...
image_submit_tag("image.png", :name =>…

jsarma
- 1,344
- 11
- 19
2
votes
1 answer
Errno::ECONNRESET (Connection reset by peer - SSL_connect) OpenSSL certificates? Ruby on Rails 2.3.15
Hi all this is my first post so sorry if I do anything wrong.
I am using Ruby 1.8.7, Rails 2.3.15 on a centOS 6.5 VPS with openssl 1.01e ruby-gems 1.8.25, mongrel_rails server. My app needs to connect to an API using Net::HTTP over SSL with…

bruceman200
- 21
- 1
- 2
2
votes
3 answers
Ruby on Rails invalid date error when parsing datetime string to convert to a different format
In my Rails App (Rails 2.3.14 and Ruby 1.8.7) I am trying to convert a datetime string into a different format to perform a search on my MySQL database but I am getting an invalid date error and I can't seem to figure out why, I've read a good few…

martincarlin87
- 10,848
- 24
- 98
- 145
2
votes
0 answers
How to customize or make it auto height of wicked_pdf header footer in rails2
I have plugin called Custom_header_footer_plugin to replace the content of wicked_pdf.rb file so that we get an option to change or customize the content of header and footer in pdf report, so if i give the content of header or footer more than 3…

Hemanth M C
- 436
- 1
- 4
- 18
2
votes
1 answer
How to pre-complie css style sheets in rails 2.3?
I have developed a new requirement for my client, I had added some css rule to an existing style-sheet file and these changes were reflecting on my local machine during development. But when I moved the changes to an staging server and restarted…

rajesh023
- 704
- 1
- 5
- 15
2
votes
2 answers
Count size of POST array in Rails
I am submitting data via ajax to be inserted into the database.
Due to the complex nature of the view and the forms I am sending some redundant information (two forms combined in one).
e.g. the data I'm sending is
partner_id:940
partner_ref:…

martincarlin87
- 10,848
- 24
- 98
- 145