Legacy version of the Ruby on Rails web development framework.
Questions tagged [ruby-on-rails-2]
746 questions
4
votes
1 answer
How to configure memprof in a Rails 2.3.14 application?
I have added these lines in my config/initializer
require 'memprof/middleware'
config.middlewares.use(Memprof::Middleware)
require 'memprof/tracer'
config.middleware.insert(0, Memprof::Tracer)
Getting this error…

krunal shah
- 16,089
- 25
- 97
- 143
3
votes
1 answer
Mail can't be send: Relay access denied
I have two ruby on rails application on different servers. Both are working fine, but one (server 2) can't send any mails.
I got always the 554 5.7.1 : Relay access denied error.
On server 2 I tested the mail communication with the help of telnet…

CSchulz
- 10,882
- 11
- 60
- 114
3
votes
1 answer
Read from one database and write to another in Rails 2.3
Heroku's database followers are pretty cool. They allow you to create a separate database that automatically keeps in sync with your master DB.
I want to use this technology to access my follower database instead of my master database for expensive…

Tom Lehman
- 85,973
- 71
- 200
- 272
3
votes
1 answer
Table alias in ActiveRecord?
I have the following to find posts.
@posts = Post.find(:all,
:select => "DISTINCT *",
:include => [:user, {:track => :artist}],
:conditions => ["user_id IN (?) AND NOT track_id = ?", users, @track.id],
:group => "track_id",
:order => 'id desc',…

Jocke
- 89
- 2
- 7
3
votes
2 answers
Why isn't 'logger.debug false' printing anything?
I'm having a problem with a boolean expression and when I did a logger.debug I had strange results, so I simplified my logging code to the following and was surprised not to see any 'false' being printed.
Logging code in my controller:
logger.debug…

John MacIntyre
- 12,910
- 13
- 67
- 106
3
votes
3 answers
can't activate test-unit (= 1.2.3), already activated test-unit-2.3.0
Recently I added rspec test in my rails 2.3.5 but I wasn't able to run simply rake -T command. Then I found Rails 3 - If I'm using RSpec, can I just delete the 'test' folder? and I added gem test-unit in my Gemfile. This is showing me below…

ashisrai_
- 6,438
- 2
- 26
- 42
3
votes
1 answer
unable to load rspec generator in rails 2.3.5
i am working on rails 2.3.5 where i want to us Rspec for testing purpose. I have installed rspec gem but not able to list rspec in generator's list. I am referring https://github.com/rspec/rspec-rails.
group :development, :test do
gem "rspec",…

ashisrai_
- 6,438
- 2
- 26
- 42
3
votes
1 answer
(config.filter_parameters) equivalent for Rails 2.3.5
I need a config.filter_parameters (Rails 3.x.x) equivalent for Rails 2.3.x
module SampleApp
class Application < Rails::Application
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters +=…

Leo Gallucci
- 16,355
- 12
- 77
- 110
3
votes
1 answer
Why does my Rails 2 ActionMailer fail intermittently?
I'm relatively inexperienced and trying to maintain a web app built with Rails 2.3.X and Ruby 1.8.7. Users who create accounts with the app are supposed to receive an automated email with an "activation" link, which is how they confirm that they…

KDP
- 634
- 1
- 11
- 31
3
votes
2 answers
d3/dc.js - How to create a stacked bar chart while telling crossfilter to treat elements in an array as separate records?
NEW: The fiddle I posted in my solution works (https://jsfiddle.net/jnf84n7c/). However, when I try to implement the tactics in my project, I'm having issues. When I click on a graph that isn't the first graph, I'm getting an error…

Casey
- 73
- 9
3
votes
0 answers
Issue import cell string using roo
When I import an excel data file is saving format as number.
Excel example
|num_doc| |name|
1234 CR7
5678 Beckham
9102 Bush
Controller client_controller.rb:
def import
Client.import(params[:file])
end
Model client.rb
@errors =…

Carlos Morales
- 1,137
- 3
- 15
- 38
3
votes
2 answers
What version of capybara is compatible with Rails 2.3 and Ruby 1.8.7?
I'm trying to install capybara on a setup with Ruby 1.8.7 and Rails 2.3, but I received this message:
capybara requires Ruby version >= 1.9.3.
I have two questions.
The more relevant question:
What is the latest capybara version compatible with…

Arnold Roa
- 7,335
- 5
- 50
- 69
3
votes
3 answers
login to another application from my rails app
I have created a sample application say comapny_portal.com. Now I have another application employee_portal.com.
Now I am logged in to my comapny_portal.com using username and password. Now I am using same username and password for …

user2622247
- 1,059
- 2
- 15
- 26
3
votes
1 answer
Is it okay to use Rails 2.3 with Ruby 1.9?
Short and sweet,
Is it ok to use (current version) Ruby 1.9.1 with Rails 2.3.5?
Thanks for any additional info!

maček
- 76,434
- 37
- 167
- 198
3
votes
2 answers
Filtering parts or all of request URL from rails logs
Rails provides filter_parameter_logging to filter sensitive parameters from the rails log.
If you have a a JSONP API, some sensitive information could be present in the URL. Is there a way to filter request URLS from the log also?

readonly
- 343,444
- 107
- 203
- 205