Legacy version of the Ruby on Rails web development framework.
Questions tagged [ruby-on-rails-2]
746 questions
1
vote
1 answer
RJS : Retrieve the value of a text_field
I am using Rails 2.3 and I don't know how to retrieve the value of a text_field of a form in order to handle it in the rjs file. I searched on the Internet all day and I didn't find a solution.
Here is my code to be more specific :
In my form.erb…

Jerem
- 191
- 1
- 9
1
vote
1 answer
Migrating from Rails 2.3 to 3.2 over a long period
I'm working on a small project that has been allocated a small amount of time to maintain and update features. This project is on Rails 2.3.
I'd like to move it to Rails 3.2 but there is little time allocated to this so I would like to do it over a…

amaseuk
- 2,147
- 4
- 24
- 43
1
vote
0 answers
Rails ActiveRecord classes don't save objects on Controller#create at random
Bear with me for a second here:
We have a big project, with ~50-60 clients, and 10-15 people online at any time. We are running Rails 2.3.14 on EC2 using Scalarium.
We also have various types, like Invoice, Order, Estimate, etc. which are types of…

Michał
- 374
- 1
- 3
- 16
1
vote
3 answers
Send html input value in ajax
I am having a problem in getting the html input value in the ruby
periodically_call_remote...
For example:
i have an input named my_input. Now i want to have this in the periodically_call_remote.

Jamal Abdul Nasir
- 2,557
- 5
- 28
- 47
1
vote
2 answers
ruby on rails after_update callback hooks issue
In my Rails Application, I have after_update callback. But this callback is executed when my record is first time created using save method and when it is updated using update_attributes.
So I want a way using which the callback/method must be…

user1265795
- 11
- 1
- 2
1
vote
0 answers
Gem for websocket rails 2.0.2
I had implement a juggernaut server on rails 2.0.2 application and the implementation works fine in most browsers except firefox(though was > firefox 4) and also not working on the iphone and android . Is there any other gem which work on my rails…

Arpit Vaishnav
- 4,739
- 6
- 39
- 57
1
vote
1 answer
i18n-js on Rails 2.3.5 installation
I feel like a moron because this gem seems to be a widely used, but I can't set it up.
I'm on the i18n-js github page and I'm following the instructions:
gem install i18n-js
rake i18n:js:setup # Rails <= 3.0
And, though the gem is is now installed,…

ecoologic
- 10,202
- 3
- 62
- 66
1
vote
1 answer
how to set up mysql2 with rails2
I've upgraded my app to Rails 2.3.14 and Ruby 1.9.2, and I've been having all sorts of strange issues with MySQL. At first, I've used the ruby-mysql gem (2.9.3), until I realized it had some encoding problems, and the consensus seems to be to…

sa125
- 28,121
- 38
- 111
- 153
1
vote
1 answer
Bind ajax call back in rails 2.3.11 using jQuery
I have a remote_form_for. Now :onclick I want to disable the submit button and on ajax:complete I want to enable the buttons back.
:onclick disable is working fine, but enable it back using ajax:complete event is not working.
Any thoughts?
Here…

Souman Mandal
- 115
- 1
- 8
1
vote
1 answer
How do I translate some complex routes from Rails 2.3 to Rails 3.1?
I am working on a project where I am upgrading a Rails 2.3 application to Rails 3.1. There is one thing which I am not able to figure out. Below is a route defined in a Rails 2.3 application:
map.resources :segments, :collection => { :listen =>…

Smoke
- 1,052
- 1
- 10
- 24
1
vote
3 answers
How can I expose all available liquid methods for a model?
Several of my models have liquid methods defined, using:
class MyModel < ActiveRecord::Base
liquid_methods :created_at, :foo, :bar, :baz
end
How can I get a list of available methods for a model (in a hash or array, I suppose)? I'd like to output…

MrDerp
- 1,014
- 2
- 12
- 17
1
vote
1 answer
Support both Rails 2 and Rails 3 in gem
I'm wondering if there are any gems out there that support both Rails 2 and Rails 3? If so, how do they do it? Simple conditionals in the code?
This is related to my previous question:
Packaging Rails 2.3 Models
Our webapp is on Rails 2, but the…

GrooveStomp
- 374
- 3
- 18
1
vote
0 answers
rubyAMF plugin + rails 2.3.4 + raby 1.8.7
I currently have ruby 1.8.7 running with a Rails 2.3.4 webapp. I'm trying to install the rubyamf plugin from github but I keep getting a 'plugin not found error'. I cloned the repo locally and copied the plugin into the vendor/plugins folder.…

spex2004
- 47
- 5
1
vote
2 answers
Ruby Unit Testing Get Method
I am pulling my hair out trying to expand the testing coverage for an existing Rails 2.3 app.
They are using a unit:test framework. I am really having trouble wrapping my head around how to debug the get method that appears a lot. Here is an…

Spencer
- 21,348
- 34
- 85
- 121
1
vote
1 answer
Can't seem to get bundler working with rails 2.3
I am on rails 2.3.5 and ruby 1.8.7
I keep trying to run the bundler command and it doesn't seem to work anymore.
I keep getting
undefined method `[]' for nil:NilClass (NoMethodError)
Here is the trace when running bundler install
…

ericraio
- 1,469
- 14
- 35