# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=975

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 976

---

## [Long ass redirect with Ruby 1.9.1](https://www.ruby-forum.com/t/long-ass-redirect-with-ruby-1-9-1/164241)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 4\
**Last updated:** [March 30, 2009, 12:03pm UTC](https://www.ruby-forum.com/t/long-ass-redirect-with-ruby-1-9-1/164241 "2009-03-30T12:03:20Z")

</div>

It took 4 seconds to get redirected to the show page. Is this a known Ruby 1.9.1 or Rails 2.3.2 issue? Processing SitesController#create (for 127.0.0.1 at 2009-03-30 16:48:04) \[POST\] Parameters: {“authenticity\_tok…

---

## [Please suggest plugin to browse and view data in database](https://www.ruby-forum.com/t/please-suggest-plugin-to-browse-and-view-data-in-database/164234)

<div class="topic-metadata">

**Author:** [@iwakura](https://www.ruby-forum.com/u/iwakura)\
**Replies:** 1\
**Last updated:** [March 30, 2009, 11:01am UTC](https://www.ruby-forum.com/t/please-suggest-plugin-to-browse-and-view-data-in-database/164234 "2009-03-30T11:01:22Z")

</div>

I have legacy database, created ActiveRecord classes for each table. Please, suggest. a plugin if it exists to just browse and view data in that database. Thanks.

---

## [Pls,explain about search action](https://www.ruby-forum.com/t/pls-explain-about-search-action/164221)

<div class="topic-metadata">

**Author:** [@ple\_mazako](https://www.ruby-forum.com/u/ple_mazako)\
**Replies:** 2\
**Last updated:** [March 30, 2009, 10:19am UTC](https://www.ruby-forum.com/t/pls-explain-about-search-action/164221 "2009-03-30T10:19:30Z")

</div>

Hello, i want create web page for searching items in database. i try to run code to find items in script/console it’s work.but i have problem about show results after find items in database finish. pls, explain me wh…

---

## [Need help converting SQL query to find or AR association](https://www.ruby-forum.com/t/need-help-converting-sql-query-to-find-or-ar-association/164218)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 3\
**Last updated:** [March 30, 2009, 10:14am UTC](https://www.ruby-forum.com/t/need-help-converting-sql-query-to-find-or-ar-association/164218 "2009-03-30T10:14:14Z")

</div>

I have 3 models comments(user\_id, title) followings(user\_id, follower\_id) users(email) I need to find all comments made by people that a user is following, which in effect is this simple SQL query: select comments.…

---

## [WTF Happened to ActionMailer?](https://www.ruby-forum.com/t/wtf-happened-to-actionmailer/164237)

<div class="topic-metadata">

**Author:** [@Todd\_Blanchard](https://www.ruby-forum.com/u/Todd_Blanchard)\
**Replies:** 0\
**Last updated:** [March 30, 2009, 10:02am UTC](https://www.ruby-forum.com/t/wtf-happened-to-actionmailer/164237 "2009-03-30T10:02:32Z")

</div>

For the record, I’m upgrading from 2.0.2 ActionMailer works great on 2.0.2. I have a thank you email that I want sent as multipart mime so I have thanks.text.plain.erb and thanks.text.html.erb Then in my ActionMail…

---

## [Form\_remote\_tag does not update div](https://www.ruby-forum.com/t/form-remote-tag-does-not-update-div/164232)

<div class="topic-metadata">

**Author:** [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Replies:** 4\
**Last updated:** [March 30, 2009, 9:28am UTC](https://www.ruby-forum.com/t/form-remote-tag-does-not-update-div/164232 "2009-03-30T09:28:19Z")

</div>

Hello all, I’m using a form\_remote\_tag as: \<% form\_remote\_tag(:update=\>“statdiv”,:url =\> { :controller=\>:ticket,:action =\> :status }) do %\> E-mail \<%= text\_field…

---

## [Displaying HTML code in view](https://www.ruby-forum.com/t/displaying-html-code-in-view/164228)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 4\
**Last updated:** [March 30, 2009, 8:45am UTC](https://www.ruby-forum.com/t/displaying-html-code-in-view/164228 "2009-03-30T08:45:34Z")

</div>

Hi, In my application i have the facility for the users to upload the file which has code … And when i want to view the contents of the file uploaded in my view,in case if the uploaded file is an html file then i am …

---

## [Problem installing rubygems on Mac OS X 10.5.6](https://www.ruby-forum.com/t/problem-installing-rubygems-on-mac-os-x-10-5-6/164200)

<div class="topic-metadata">

**Author:** [@stug23](https://www.ruby-forum.com/u/stug23)\
**Replies:** 2\
**Last updated:** [March 30, 2009, 7:35am UTC](https://www.ruby-forum.com/t/problem-installing-rubygems-on-mac-os-x-10-5-6/164200 "2009-03-30T07:35:23Z")

</div>

I just recently started getting back into Rails now that the new Agile Web Development with Rails book (3rd edition) came out. I had an old, out-of-date installation of ruby and gem so I tried to follow the advice f…

---

## [Custom Association validation error messages?](https://www.ruby-forum.com/t/custom-association-validation-error-messages/164124)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 1\
**Last updated:** [March 30, 2009, 7:01am UTC](https://www.ruby-forum.com/t/custom-association-validation-error-messages/164124 "2009-03-30T07:01:40Z")

</div>

Hi, Consider 2 models Project and Task with Project has\_many Tasks and Task belongs\_to Project. In a multi model form where I accept the Project name and its task names (Ryan B.’ complex forms 3), when I have a vali…

---

## [Prevent an object from being destroyed if it has related records](https://www.ruby-forum.com/t/prevent-an-object-from-being-destroyed-if-it-has-related-records/164183)

<div class="topic-metadata">

**Author:** [@Neal\_L](https://www.ruby-forum.com/u/Neal_L)\
**Replies:** 4\
**Last updated:** [March 30, 2009, 6:58am UTC](https://www.ruby-forum.com/t/prevent-an-object-from-being-destroyed-if-it-has-related-records/164183 "2009-03-30T06:58:50Z")

</div>

This is a total noob question, but how do you prevent a record from being destroyed if it has any related records. In my case, I have a book model and a page model. A book has\_many pages. How do I prevent book.dest…

---

## [Problem starting mongrel server](https://www.ruby-forum.com/t/problem-starting-mongrel-server/196840)

<div class="topic-metadata">

**Author:** [@chandu4ruby](https://www.ruby-forum.com/u/chandu4ruby)\
**Replies:** 7\
**Last updated:** [March 30, 2009, 6:18am UTC](https://www.ruby-forum.com/t/problem-starting-mongrel-server/196840 "2009-03-30T06:18:15Z")

</div>

Hi, I am newbie started learning ruby on rails i had an application which used to run pretty well latter i upgraded from webbrick to mongrel 1.1.5 then I am getting the foloowing errors and a default application runs…

---

## [Renaming a Rails Resource](https://www.ruby-forum.com/t/renaming-a-rails-resource/164219)

<div class="topic-metadata">

**Author:** [@cpher](https://www.ruby-forum.com/u/cpher)\
**Replies:** 0\
**Last updated:** [March 30, 2009, 5:05am UTC](https://www.ruby-forum.com/t/renaming-a-rails-resource/164219 "2009-03-30T05:05:19Z")

</div>

Greetings. I have an app that is under development. It has about a dozen resources, and I need to rename one of them. This turns out to be more complicated than I initially thought. Anyone have any tips for easing …

---

## [After\_create and after\_save](https://www.ruby-forum.com/t/after-create-and-after-save/164192)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 2\
**Last updated:** [March 30, 2009, 3:45am UTC](https://www.ruby-forum.com/t/after-create-and-after-save/164192 "2009-03-30T03:45:46Z")

</div>

Hi, AFAIK after\_create is called after\_save if the entry does not exist in the DB. Is there a way to tell if a specific model is new or not in after\_save? I have to do something like: def after\_save add\_to\_history…

---

## [Smtp.gmail.com](https://www.ruby-forum.com/t/smtp-gmail-com/164214)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 0\
**Last updated:** [March 30, 2009, 3:25am UTC](https://www.ruby-forum.com/t/smtp-gmail-com/164214 "2009-03-30T03:25:41Z")

</div>

I am trying to get my slicehost/Rails/radiant/nginx/mongrel site to work with the Radiant extension Mailer and smtp.gmail.com I have the openrain-action\_mailer\_tls (1.1.3) gem installed. I have google accounts eMail s…

---

## [Rufus schedule & passenger](https://www.ruby-forum.com/t/rufus-schedule-passenger/164215)

<div class="topic-metadata">

**Author:** [@kschell](https://www.ruby-forum.com/u/kschell)\
**Replies:** 0\
**Last updated:** [March 30, 2009, 3:04am UTC](https://www.ruby-forum.com/t/rufus-schedule-passenger/164215 "2009-03-30T03:04:34Z")

</div>

I have an app deployed on passenger, with a periodic job scheduled using rufus scheduler. It ran fine for a couple weeks, then apparently just up and quit, with no indication of why. I found a couple posts on the ru…

---

## [Twitter bot running inside Rails](https://www.ruby-forum.com/t/twitter-bot-running-inside-rails/164213)

<div class="topic-metadata">

**Author:** [@kschell](https://www.ruby-forum.com/u/kschell)\
**Replies:** 0\
**Last updated:** [March 30, 2009, 3:04am UTC](https://www.ruby-forum.com/t/twitter-bot-running-inside-rails/164213 "2009-03-30T03:04:33Z")

</div>

I’ve done some searches for information about running a Ruby twitter bot and found a few packages & posts, but nothing that quite seems to match what I want, which is a twitter bot running within Rails. I.e., I want …

---

## [Upgrade procedure](https://www.ruby-forum.com/t/upgrade-procedure/164163)

<div class="topic-metadata">

**Author:** [@msoulier](https://www.ruby-forum.com/u/msoulier)\
**Replies:** 13\
**Last updated:** [March 30, 2009, 2:07am UTC](https://www.ruby-forum.com/t/upgrade-procedure/164163 "2009-03-30T02:07:15Z")

</div>

Hi, I have a site running older versions of Ruby and Rails. It’s running Ruby 1.8.4 and Rails 1.2.2. It’s working fine, but I’ve set up a new desktop and now I need a development environment for it. I look at the la…

---

## [Hiding association proxies from other models?](https://www.ruby-forum.com/t/hiding-association-proxies-from-other-models/164140)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 1\
**Last updated:** [March 30, 2009, 2:02am UTC](https://www.ruby-forum.com/t/hiding-association-proxies-from-other-models/164140 "2009-03-30T02:02:26Z")

</div>

Hi, is it possible to hide association proxies from other models? Is there a special method for this in Rails? Thanks for your help! ms

---

## [How do I hide includes in autotest](https://www.ruby-forum.com/t/how-do-i-hide-includes-in-autotest/164208)

<div class="topic-metadata">

**Author:** [@r-a-mueller](https://www.ruby-forum.com/u/r-a-mueller)\
**Replies:** 0\
**Last updated:** [March 30, 2009, 1:26am UTC](https://www.ruby-forum.com/t/how-do-i-hide-includes-in-autotest/164208 "2009-03-30T01:26:54Z")

</div>

How do I hide the following in autotest?? /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby - rrubygems -e “require ‘redgreen’” -I.:lib:test -rubygems -e “%w\[test/ unit test/functional/admin/pages\_c…

---

## [Deployment problem](https://www.ruby-forum.com/t/deployment-problem/164199)

<div class="topic-metadata">

**Author:** [@mahmoud\_cs](https://www.ruby-forum.com/u/mahmoud_cs)\
**Replies:** 2\
**Last updated:** [March 29, 2009, 10:32pm UTC](https://www.ruby-forum.com/t/deployment-problem/164199 "2009-03-29T22:32:58Z")

</div>

I create the war file of my rails application and if i deploy it on Glassfish or Tomcat this is message displayed to me :- We're sorry, but something went wrong. We'…

---

## [Rails 2.3 \<--\> ARMailer (emails not in db table anymore)](https://www.ruby-forum.com/t/rails-2-3-armailer-emails-not-in-db-table-anymore/164193)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 0\
**Last updated:** [March 29, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/rails-2-3-armailer-emails-not-in-db-table-anymore/164193 "2009-03-29T20:11:23Z")

</div>

Hi there, since I updated to Rails 2.3, the “ARMailer” gem doesn’t seem to do its job anymore: When I try to send out some emails, they don’t appear in the database table anymore where they should be queued (and they…

---

## [Please tell me what does this bug meanz?](https://www.ruby-forum.com/t/please-tell-me-what-does-this-bug-meanz/164176)

<div class="topic-metadata">

**Author:** [@hamidraza](https://www.ruby-forum.com/u/hamidraza)\
**Replies:** 2\
**Last updated:** [March 29, 2009, 2:46pm UTC](https://www.ruby-forum.com/t/please-tell-me-what-does-this-bug-meanz/164176 "2009-03-29T14:46:43Z")

</div>

controller method is =\> def call @template = MailRoomTemplate.find(:all) @send\_message = SendMessage.new end it is not going to views/send\_messages/call and this error comes "NoMethodError in Send messagesControlle…

---

## [\[rails 2.3.2\] ActionController::DoubleRenderError](https://www.ruby-forum.com/t/rails-2-3-2-actioncontroller-doublerendererror/164170)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [March 29, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-actioncontroller-doublerendererror/164170 "2009-03-29T12:55:44Z")

</div>

Hi I don’t know how to get rid of this error… I need some help to understand how to rewrite it this action is executed from a remote\_form (facebox style), and I want to keep also the html degraded call is this issu…

---

## [Can't activate rails (= 2.2.2, runtime), already activated rails-2.3.2](https://www.ruby-forum.com/t/cant-activate-rails-2-2-2-runtime-already-activated-rails-2-3-2/163563)

<div class="topic-metadata">

**Author:** [@tadatoshi](https://www.ruby-forum.com/u/tadatoshi)\
**Replies:** 2\
**Last updated:** [March 29, 2009, 11:25am UTC](https://www.ruby-forum.com/t/cant-activate-rails-2-2-2-runtime-already-activated-rails-2-3-2/163563 "2009-03-29T11:25:38Z")

</div>

Hi, I have updated from Ruby on Rails 2.2.2 to 2.3.2. I have managed to run it both on my Mac OS X and Ubuntu server. (script/server -e production) But when I tried to run it using Capistrano, I got an error. (cap d…

---

## [Need help configuring this data model](https://www.ruby-forum.com/t/need-help-configuring-this-data-model/164128)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [March 29, 2009, 11:09am UTC](https://www.ruby-forum.com/t/need-help-configuring-this-data-model/164128 "2009-03-29T11:09:14Z")

</div>

Consider 2 tables: Player-\> column player\_id and Hit-\> columns player\_id, hit\_player\_id I want one model for Player and one model for a Hit. Any player has many hits against another player. So from a Player I want …

---

## [Noob test Q](https://www.ruby-forum.com/t/noob-test-q/164012)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 7\
**Last updated:** [March 29, 2009, 10:44am UTC](https://www.ruby-forum.com/t/noob-test-q/164012 "2009-03-29T10:44:05Z")

</div>

I have been working with restful\_authentication. I have made some changes to it and now I’m trying to get all the default tests that came with the plugin to pass. Here’s one of the tests that error out: def test\_shou…

---

## [Image uploading - upload\_column](https://www.ruby-forum.com/t/image-uploading-upload-column/164117)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 1\
**Last updated:** [March 29, 2009, 7:18am UTC](https://www.ruby-forum.com/t/image-uploading-upload-column/164117 "2009-03-29T07:18:28Z")

</div>

Hai I am using upload\_column for uploading images. Trying to do the user registration. For the first time when the user tries to upload image it works fine. But when try to update the image an error undefined method…

---

## [Rails 2.3.2 cannot find installed gems](https://www.ruby-forum.com/t/rails-2-3-2-cannot-find-installed-gems/164108)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 7\
**Last updated:** [March 29, 2009, 7:00am UTC](https://www.ruby-forum.com/t/rails-2-3-2-cannot-find-installed-gems/164108 "2009-03-29T07:00:12Z")

</div>

I have a rails 2.3.2 application that uses crypt, RedCloth, mysql and openrain-action\_mailer\_tls. As long as the gems are installed in the @@frameworks\_gems list things work. But when gems are not loaded in @@framew…

---

## [\[OT\] Git branch and merge](https://www.ruby-forum.com/t/ot-git-branch-and-merge/164077)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 14\
**Last updated:** [March 29, 2009, 6:23am UTC](https://www.ruby-forum.com/t/ot-git-branch-and-merge/164077 "2009-03-29T06:23:06Z")

</div>

I have been using Git for about a year now, but always in the master branch. I decided to try working in a branch to get experience with merging. Naturally enough, I am now observing some behaviour that I do not unde…

---

## [Installing an old version of rails with 1.9.1](https://www.ruby-forum.com/t/installing-an-old-version-of-rails-with-1-9-1/164166)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [March 29, 2009, 5:38am UTC](https://www.ruby-forum.com/t/installing-an-old-version-of-rails-with-1-9-1/164166 "2009-03-29T05:38:54Z")

</div>

Hello, I am running Ruby 1.9.1 and Rails 2.3.2 and need a copy of Rails 2.3.0 to do some testing on a plugin. I tried sudo gem install -v 2.3.0 rails But I got the following error: ERROR: could not find gem rails …

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=974)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=976)
