# Rails

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

[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:** 949

---

## [Understanding the rails control flow better](https://www.ruby-forum.com/t/understanding-the-rails-control-flow-better/166262)

<div class="topic-metadata">

**Author:** [@kedarmhaswade](https://www.ruby-forum.com/u/kedarmhaswade)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 12:17pm UTC](https://www.ruby-forum.com/t/understanding-the-rails-control-flow-better/166262 "2009-04-23T12:17:06Z")

</div>

In order to understand exactly when the various model validators are called, I installed ruby-debug and added “debugger” just before say validates\_numericality field of a model (say Product). I see that this gets call…

---

## [Replace the first word of a string](https://www.ruby-forum.com/t/replace-the-first-word-of-a-string/166263)

<div class="topic-metadata">

**Author:** [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 11:16am UTC](https://www.ruby-forum.com/t/replace-the-first-word-of-a-string/166263 "2009-04-23T11:16:04Z")

</div>

Does anybody have a good starting point for how to read the first word of a string and then, based on several defined pairs, swap it? I’ve been considering using something like @split = @message.split(’-’) if @split\[…

---

## [Capistrano on Windows](https://www.ruby-forum.com/t/capistrano-on-windows/166267)

<div class="topic-metadata">

**Author:** [@Shripad](https://www.ruby-forum.com/u/Shripad)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 10:53am UTC](https://www.ruby-forum.com/t/capistrano-on-windows/166267 "2009-04-23T10:53:39Z")

</div>

Hi all, I am new to Capistrano, Can anyone told me how to use that on windows. Please provide me any good available resource. Please help me out. Thanks and Regards, Shri

---

## [Problem with crontab and script/runner](https://www.ruby-forum.com/t/problem-with-crontab-and-script-runner/166052)

<div class="topic-metadata">

**Author:** [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Replies:** 8\
**Last updated:** [April 23, 2009, 10:51am UTC](https://www.ruby-forum.com/t/problem-with-crontab-and-script-runner/166052 "2009-04-23T10:51:47Z")

</div>

Hi guys, I’m trying to run some process in backgroung each minute using script/runner. To do this I use crontab-e and I edit the crontab. This is the line i wrote: \*/1 \* \* \* \* /usr/local/bin/ruby /Users/jose/mimandot…

---

## [BackgrounDRb start error](https://www.ruby-forum.com/t/backgroundrb-start-error/166236)

<div class="topic-metadata">

**Author:** [@a2ahmad](https://www.ruby-forum.com/u/a2ahmad)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 9:25am UTC](https://www.ruby-forum.com/t/backgroundrb-start-error/166236 "2009-04-23T09:25:10Z")

</div>

Hi, I’ve got a Rails 2.2.2 app and I’m trying to get BackgrounDRb running. I’m just following the simple example in Advanced Rails Recipes. I installed BackgrounDRb from Git, installed the packet and chronic gems, r…

---

## [Nested Templates](https://www.ruby-forum.com/t/nested-templates/166261)

<div class="topic-metadata">

**Author:** [@ref3at](https://www.ruby-forum.com/u/ref3at)\
**Replies:** 0\
**Last updated:** [April 23, 2009, 9:09am UTC](https://www.ruby-forum.com/t/nested-templates/166261 "2009-04-23T09:09:19Z")

</div>

I want the user to be able to toggle between view and edit modes within the same page without having to request a different page for each. I know I could just copy the code from my edit.html.erb page to the show.html.…

---

## [How to include a helper method in a controller](https://www.ruby-forum.com/t/how-to-include-a-helper-method-in-a-controller/166199)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 3\
**Last updated:** [April 23, 2009, 9:08am UTC](https://www.ruby-forum.com/t/how-to-include-a-helper-method-in-a-controller/166199 "2009-04-23T09:08:43Z")

</div>

Hi there, why do I get the error… undefined method \`format\_phone\_number\_for’ for #User::MailingsController:0xb70aae58 … in this situation: controllers/user/mailings\_controller.rb: class User::MailingsController \< Ap…

---

## [What the hell happened to rubyonrails.org?!](https://www.ruby-forum.com/t/what-the-hell-happened-to-rubyonrails-org/166258)

<div class="topic-metadata">

**Author:** [@bootle](https://www.ruby-forum.com/u/bootle)\
**Replies:** 0\
**Last updated:** [April 23, 2009, 9:08am UTC](https://www.ruby-forum.com/t/what-the-hell-happened-to-rubyonrails-org/166258 "2009-04-23T09:08:43Z")

</div>

It’s gone!

---

## [Rails API Link not Working](https://www.ruby-forum.com/t/rails-api-link-not-working/166259)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 0\
**Last updated:** [April 23, 2009, 9:04am UTC](https://www.ruby-forum.com/t/rails-api-link-not-working/166259 "2009-04-23T09:04:54Z")

</div>

Hi All, Rails API at following address http://api.rubyonrails.org/ is not working. do you know any other API for Rails.

---

## [Difference in time between Rails and Mysql timestamps](https://www.ruby-forum.com/t/difference-in-time-between-rails-and-mysql-timestamps/166252)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 0\
**Last updated:** [April 23, 2009, 8:17am UTC](https://www.ruby-forum.com/t/difference-in-time-between-rails-and-mysql-timestamps/166252 "2009-04-23T08:17:31Z")

</div>

Hello, I have on my database table column called effective\_start\_date which tracks when the record should start to be active. So if I want the record to be active instantly I say something like: the\_record.effective\_…

---

## [Can u visit rubyonrails.org](https://www.ruby-forum.com/t/can-u-visit-rubyonrails-org/166246)

<div class="topic-metadata">

**Author:** [@Jack\_Zhan](https://www.ruby-forum.com/u/Jack_Zhan)\
**Replies:** 3\
**Last updated:** [April 23, 2009, 7:59am UTC](https://www.ruby-forum.com/t/can-u-visit-rubyonrails-org/166246 "2009-04-23T07:59:33Z")

</div>

When I visit rubyonrails.org, it comes up with an ads page. What’s wrong?

---

## [Multiple customers/tenants - keeping the data separate - how?](https://www.ruby-forum.com/t/multiple-customers-tenants-keeping-the-data-separate-how/166216)

<div class="topic-metadata">

**Author:** [@costi](https://www.ruby-forum.com/u/costi)\
**Replies:** 1\
**Last updated:** [April 23, 2009, 5:22am UTC](https://www.ruby-forum.com/t/multiple-customers-tenants-keeping-the-data-separate-how/166216 "2009-04-23T05:22:31Z")

</div>

I have found this very good thread from 2006 about multi-tenant applications: http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/25bc6cd899318d9a/ I’m making my app available to multiple customers an…

---

## [Authentication with Rail 2.3 and Ruby 1.9](https://www.ruby-forum.com/t/authentication-with-rail-2-3-and-ruby-1-9/166155)

<div class="topic-metadata">

**Author:** [@ialuronico](https://www.ruby-forum.com/u/ialuronico)\
**Replies:** 1\
**Last updated:** [April 23, 2009, 4:55am UTC](https://www.ruby-forum.com/t/authentication-with-rail-2-3-and-ruby-1-9/166155 "2009-04-23T04:55:01Z")

</div>

restful\_autentication still the best choice ?

---

## [\[ANN\] Lone Star Twitter Conference 2009](https://www.ruby-forum.com/t/ann-lone-star-twitter-conference-2009/196949)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 23, 2009, 4:26am UTC](https://www.ruby-forum.com/t/ann-lone-star-twitter-conference-2009/196949 "2009-04-23T04:26:23Z")

</div>

Greetings The Lone Star Ruby Conference is being renamed. We are now LSTC, the Lone Star Twitter Conference. We are accepting submissions for talks that have anything to do with Twitter, tweets, twitter-mania, you n…

---

## [Resource-based routing and controller module](https://www.ruby-forum.com/t/resource-based-routing-and-controller-module/166239)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 0\
**Last updated:** [April 23, 2009, 4:03am UTC](https://www.ruby-forum.com/t/resource-based-routing-and-controller-module/166239 "2009-04-23T04:03:35Z")

</div>

I have a Request resource in my application. A “Request” is created by users of the system, but managed by administrators. For example, user creates a request to fix a chair, and administrator views and edits the re…

---

## [How to have a duplicate copy of params?](https://www.ruby-forum.com/t/how-to-have-a-duplicate-copy-of-params/166141)

<div class="topic-metadata">

**Author:** [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Replies:** 6\
**Last updated:** [April 23, 2009, 3:14am UTC](https://www.ruby-forum.com/t/how-to-have-a-duplicate-copy-of-params/166141 "2009-04-23T03:14:11Z")

</div>

Hi all, I wanted to know how to keep a duplicate copy of params which I can use it for another operation, Is there any method…?

---

## [Anyone going to Rails Conf in Las Vegas?](https://www.ruby-forum.com/t/anyone-going-to-rails-conf-in-las-vegas/166223)

<div class="topic-metadata">

**Author:** [@RailsRecruiter](https://www.ruby-forum.com/u/RailsRecruiter)\
**Replies:** 0\
**Last updated:** [April 23, 2009, 12:27am UTC](https://www.ruby-forum.com/t/anyone-going-to-rails-conf-in-las-vegas/166223 "2009-04-23T00:27:22Z")

</div>

My name is Laura Kinder and I am with a serch firm, Daversa Partners. I am actively recruiting Rails Developers for a client that I work closely with and that is also speaking at the conference! We are hosting a party…

---

## [Monthly Publication Checklist (Newbie)](https://www.ruby-forum.com/t/monthly-publication-checklist-newbie/166225)

<div class="topic-metadata">

**Author:** [@amagonagle](https://www.ruby-forum.com/u/amagonagle)\
**Replies:** 0\
**Last updated:** [April 23, 2009, 12:27am UTC](https://www.ruby-forum.com/t/monthly-publication-checklist-newbie/166225 "2009-04-23T00:27:22Z")

</div>

I need to design a small app for a print publication that mails monthly. It is my first project and I am having trouble getting started. The app would consist of a form that would be updated by the client for each mon…

---

## [Complex relationships in Ruby - display data across many tables](https://www.ruby-forum.com/t/complex-relationships-in-ruby-display-data-across-many-tables/166224)

<div class="topic-metadata">

**Author:** [@tandrei](https://www.ruby-forum.com/u/tandrei)\
**Replies:** 0\
**Last updated:** [April 23, 2009, 12:27am UTC](https://www.ruby-forum.com/t/complex-relationships-in-ruby-display-data-across-many-tables/166224 "2009-04-23T00:27:22Z")

</div>

Hi, I have designed an application consisting of 20+ tables, and utilizing Ruby on Rails. I am using an authentication system for users to login. I want to display to the user, when he logs in, information related to…

---

## [How to selectively ignore some model validations?](https://www.ruby-forum.com/t/how-to-selectively-ignore-some-model-validations/166156)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 8\
**Last updated:** [April 23, 2009, 12:08am UTC](https://www.ruby-forum.com/t/how-to-selectively-ignore-some-model-validations/166156 "2009-04-23T00:08:39Z")

</div>

Hi - So, I have a user model, with a bunch of validations, one of which is validates\_acceptance\_of :terms\_of\_service. I’ve decided to keep a database column tracking this attribute, and it works just as intended for …

---

## [Location based application](https://www.ruby-forum.com/t/location-based-application/165993)

<div class="topic-metadata">

**Author:** [@wouter](https://www.ruby-forum.com/u/wouter)\
**Replies:** 6\
**Last updated:** [April 22, 2009, 11:49pm UTC](https://www.ruby-forum.com/t/location-based-application/165993 "2009-04-22T23:49:53Z")

</div>

Hey, I am developing a location based application and i have already a small social network site with users and friends! I want : user to check in at a current place (and share location) see the friends on a map geo…

---

## [UltraSphinx help anyone?](https://www.ruby-forum.com/t/ultrasphinx-help-anyone/166188)

<div class="topic-metadata">

**Author:** [@internetchris](https://www.ruby-forum.com/u/internetchris)\
**Replies:** 3\
**Last updated:** [April 22, 2009, 11:43pm UTC](https://www.ruby-forum.com/t/ultrasphinx-help-anyone/166188 "2009-04-22T23:43:27Z")

</div>

Hey Everyone, So I posted a thread last night with my problem, but since then I have figured out the syntax a little better. I am trying to create indexes on 2 separate models. I have an Account model that “has\_many :…

---

## [Attachment\_fu problems with image\_science](https://www.ruby-forum.com/t/attachment-fu-problems-with-image-science/138941)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 6\
**Last updated:** [April 22, 2009, 11:22pm UTC](https://www.ruby-forum.com/t/attachment-fu-problems-with-image-science/138941 "2009-04-22T23:22:30Z")

</div>

I’m following clark’s tutorial on attachment\_fu and the upload works great, but the code fails to generate thumbnails. I get this error “Problems loading image\_scienceProcessor: no such file to load – image\_science” t…

---

## [What escape or sanitize functions are out there?](https://www.ruby-forum.com/t/what-escape-or-sanitize-functions-are-out-there/166191)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 2\
**Last updated:** [April 22, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/what-escape-or-sanitize-functions-are-out-there/166191 "2009-04-22T23:10:25Z")

</div>

i found the following functions or method to escape HTML, URL params, or Javascript data: \<%= h @ha %\> \<%= sanitize @ha %\> \<%= u @ha %\> \<%= @ha.to\_json %\> \<%= strip\_tags @ha %\> are they more functions or methods t…

---

## [Listing elements from a table](https://www.ruby-forum.com/t/listing-elements-from-a-table/166163)

<div class="topic-metadata">

**Author:** [@furrot](https://www.ruby-forum.com/u/furrot)\
**Replies:** 3\
**Last updated:** [April 22, 2009, 10:26pm UTC](https://www.ruby-forum.com/t/listing-elements-from-a-table/166163 "2009-04-22T22:26:58Z")

</div>

I am writing an application where users can become members of different groups. On each group page I want to list all the members of the group by user name and also the groups to which they belong. My group table cons…

---

## [Active Scaffold](https://www.ruby-forum.com/t/active-scaffold/166212)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 8:26pm UTC](https://www.ruby-forum.com/t/active-scaffold/166212 "2009-04-22T20:26:03Z")

</div>

Hello, I’m using ActiveScaffold plugin for data grid listing. I would like to use custom query that includes joins for the model I want to display data from. Do you know how I can do that? Thanks, Tam

---

## [HABTM Checkboxes and Multiple Records headache](https://www.ruby-forum.com/t/habtm-checkboxes-and-multiple-records-headache/166210)

<div class="topic-metadata">

**Author:** [@infinteVerve](https://www.ruby-forum.com/u/infinteVerve)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 7:38pm UTC](https://www.ruby-forum.com/t/habtm-checkboxes-and-multiple-records-headache/166210 "2009-04-22T19:38:14Z")

</div>

I haven’t been able to get this to work for some reason, and its driving me nuts, and help is greatly appreciated. So here’s the deal: I’m have a table called Songs Each song has\_many versions called Production\_edits …

---

## [Processing Incoming Email With Rails](https://www.ruby-forum.com/t/processing-incoming-email-with-rails/166192)

<div class="topic-metadata">

**Author:** [@Geekyra](https://www.ruby-forum.com/u/Geekyra)\
**Replies:** 2\
**Last updated:** [April 22, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/processing-incoming-email-with-rails/166192 "2009-04-22T19:35:52Z")

</div>

Hello Which is the best way to process incoming email with Rails ? I’m already googling it and found some link to do it but there are pro and cons bout it, so which way is the best ? Thanx

---

## [Test ftp connection from web form](https://www.ruby-forum.com/t/test-ftp-connection-from-web-form/166202)

<div class="topic-metadata">

**Author:** [@brianzimmer](https://www.ruby-forum.com/u/brianzimmer)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 6:37pm UTC](https://www.ruby-forum.com/t/test-ftp-connection-from-web-form/166202 "2009-04-22T18:37:56Z")

</div>

Hello, I’m trying to figure out the best method to test an ftp connection from a web form. For example, There is a web form with fields for ftp\_host, ftp\_username, ftp\_password. I created a controller action ‘ftp\_co…

---

## [Need to restart server every time a controller is generated?](https://www.ruby-forum.com/t/need-to-restart-server-every-time-a-controller-is-generated/166179)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 4\
**Last updated:** [April 22, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/need-to-restart-server-every-time-a-controller-is-generated/166179 "2009-04-22T18:22:18Z")

</div>

i thought we don’t need to restart the server by ruby script/server after we use ruby script/generate controller Bar index help ? but if i don’t restart the server, it will say for localhost:3000/bar Routing Error …

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

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