# Rails

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

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

---

## [How ca I validate two correlated fields?](https://www.ruby-forum.com/t/how-ca-i-validate-two-correlated-fields/120158)

<div class="topic-metadata">

**Author:** [@jprogramista](https://www.ruby-forum.com/u/jprogramista)\
**Replies:** 4\
**Last updated:** [November 14, 2007, 11:28am UTC](https://www.ruby-forum.com/t/how-ca-i-validate-two-correlated-fields/120158 "2007-11-14T11:28:51Z")

</div>

Hello, I have problem with custom validator which should check such situation: I have two fields text\_field ‘object’, ‘others’ and text\_field ‘object’, ‘others\_area’ I “raise” error if others is nil but others\_area …

---

## [Tool for testing application in RoR](https://www.ruby-forum.com/t/tool-for-testing-application-in-ror/120160)

<div class="topic-metadata">

**Author:** [@vedika](https://www.ruby-forum.com/u/vedika)\
**Replies:** 8\
**Last updated:** [November 14, 2007, 11:23am UTC](https://www.ruby-forum.com/t/tool-for-testing-application-in-ror/120160 "2007-11-14T11:23:53Z")

</div>

Hi, I am very new to RoR. I want to know which automation tool we can use for testing application in RoR. Please help me. Thanks in advance, Regards, Vedika

---

## [Insert Records in Multiple Tables with One Form](https://www.ruby-forum.com/t/insert-records-in-multiple-tables-with-one-form/120164)

<div class="topic-metadata">

**Author:** [@burttonboarder](https://www.ruby-forum.com/u/burttonboarder)\
**Replies:** 0\
**Last updated:** [November 14, 2007, 11:14am UTC](https://www.ruby-forum.com/t/insert-records-in-multiple-tables-with-one-form/120164 "2007-11-14T11:14:31Z")

</div>

I’m currently working on my first rails project and I’m running into a frustrating problem. I have two tables, one called People and one called Addresses, with person and address active record models respectively. I’v…

---

## [Generating the use statistics graphs](https://www.ruby-forum.com/t/generating-the-use-statistics-graphs/120157)

<div class="topic-metadata">

**Author:** [@meerkalim](https://www.ruby-forum.com/u/meerkalim)\
**Replies:** 0\
**Last updated:** [November 14, 2007, 8:29am UTC](https://www.ruby-forum.com/t/generating-the-use-statistics-graphs/120157 "2007-11-14T08:29:04Z")

</div>

HI guys I am working with the ROR proj presently i am in statistical package i need to generate the use statistics with graphs just have a look at this link http://gems.rubyforge.org/usage/usage\_200511.html the s…

---

## [Generating the graphs](https://www.ruby-forum.com/t/generating-the-graphs/120155)

<div class="topic-metadata">

**Author:** [@meerkalim](https://www.ruby-forum.com/u/meerkalim)\
**Replies:** 0\
**Last updated:** [November 14, 2007, 8:05am UTC](https://www.ruby-forum.com/t/generating-the-graphs/120155 "2007-11-14T08:05:10Z")

</div>

Hi, guys I am working with a ROR project ,presently i am in statistics part of our proj , i need to generate graphs with sparklines Can any one help me out with samples code of generating the graphs with sparkli…

---

## [NoMethodError in / Nil Object error](https://www.ruby-forum.com/t/nomethoderror-in-nil-object-error/120041)

<div class="topic-metadata">

**Author:** [@pat](https://www.ruby-forum.com/u/pat)\
**Replies:** 9\
**Last updated:** [November 14, 2007, 5:39am UTC](https://www.ruby-forum.com/t/nomethoderror-in-nil-object-error/120041 "2007-11-14T05:39:01Z")

</div>

This is one of those bugs that drives a person crazy, but it’s probably something simple that I’m missing (as newb to rails dev). Here’s my problem. I have the following controller. def new @document = Document.new …

---

## [How to prevent the browser to go back page?](https://www.ruby-forum.com/t/how-to-prevent-the-browser-to-go-back-page/120051)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 5\
**Last updated:** [November 14, 2007, 5:21am UTC](https://www.ruby-forum.com/t/how-to-prevent-the-browser-to-go-back-page/120051 "2007-11-14T05:21:18Z")

</div>

how to prevent the browser to go back page ?. actually i wrote “before\_filter :authorize” in every controller except login\_controller.rb but after logout,If you click “Back Page” icon in browser ,then it will go to …

---

## [How to know which test is currently running?](https://www.ruby-forum.com/t/how-to-know-which-test-is-currently-running/120120)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 1\
**Last updated:** [November 14, 2007, 3:50am UTC](https://www.ruby-forum.com/t/how-to-know-which-test-is-currently-running/120120 "2007-11-14T03:50:52Z")

</div>

I have a unit test that seems to be taking a long time (~ 2 minutes), but with the “dot dot dot” display, I don’t know which one it is. I’ve tried “rake test --trace”, but that only increases the verbosity of the setu…

---

## [Getting Net::SMTPFatalError (550 Forged HELO: you are not jettobox.com when running ordermailer](https://www.ruby-forum.com/t/getting-net-smtpfatalerror-550-forged-helo-you-are-not-jettobox-com-when-running-ordermailer/120145)

<div class="topic-metadata">

**Author:** [@chanhuai](https://www.ruby-forum.com/u/chanhuai)\
**Replies:** 0\
**Last updated:** [November 14, 2007, 3:34am UTC](https://www.ruby-forum.com/t/getting-net-smtpfatalerror-550-forged-helo-you-are-not-jettobox-com-when-running-ordermailer/120145 "2007-11-14T03:34:29Z")

</div>

hi i try to send mail using actionmailer in production and this is the error i get from the production log is there something wrong? i actually set all the smtp setting and use jettobox, my own domain to send the mai…

---

## [Composite primary key doesn't work](https://www.ruby-forum.com/t/composite-primary-key-doesnt-work/120028)

<div class="topic-metadata">

**Author:** [@jojobert](https://www.ruby-forum.com/u/jojobert)\
**Replies:** 5\
**Last updated:** [November 14, 2007, 3:28am UTC](https://www.ruby-forum.com/t/composite-primary-key-doesnt-work/120028 "2007-11-14T03:28:38Z")

</div>

i followed doctor nic’s tutorial on composite primary key but it didn’t work for me, i’m not sure why, could someone take a look please? i added the following to the bottom of my environment.rb file ==\> require ‘compo…

---

## [Expiring fragments from runners: best practice?](https://www.ruby-forum.com/t/expiring-fragments-from-runners-best-practice/120138)

<div class="topic-metadata">

**Author:** [@jlundigard](https://www.ruby-forum.com/u/jlundigard)\
**Replies:** 0\
**Last updated:** [November 14, 2007, 1:56am UTC](https://www.ruby-forum.com/t/expiring-fragments-from-runners-best-practice/120138 "2007-11-14T01:56:34Z")

</div>

I’m working on a complicated fragment caching scheme using memcache and I’m hoping someone has experience expiring fragments from runner/background scripts. Since expire\_fragment has only controller/action scope, I w…

---

## [Populating a survey and persisting the user's response](https://www.ruby-forum.com/t/populating-a-survey-and-persisting-the-users-response/120137)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 0\
**Last updated:** [November 14, 2007, 1:38am UTC](https://www.ruby-forum.com/t/populating-a-survey-and-persisting-the-users-response/120137 "2007-11-14T01:38:43Z")

</div>

Let’s say I want to build a survey app that pulls questions and their types out of one table (QUESTIONS) processes these questions into say a 10 question form, user fills in form fully and submits or partly and comes b…

---

## [The following dependencies failed. SVN could not be found?](https://www.ruby-forum.com/t/the-following-dependencies-failed-svn-could-not-be-found/120132)

<div class="topic-metadata">

**Author:** [@josef](https://www.ruby-forum.com/u/josef)\
**Replies:** 0\
**Last updated:** [November 14, 2007, 1:14am UTC](https://www.ruby-forum.com/t/the-following-dependencies-failed-svn-could-not-be-found/120132 "2007-11-14T01:14:13Z")

</div>

I am trying to run “cap -q deploy:check” from my local machine and I run in to this error: domain.com: sh: which: command not found The following dependencies failed. Please check them and try again: → \`/usr/bin/sv…

---

## [Undefined method in my plugin](https://www.ruby-forum.com/t/undefined-method-in-my-plugin/120129)

<div class="topic-metadata">

**Author:** [@kevin\_ySkim](https://www.ruby-forum.com/u/kevin_ySkim)\
**Replies:** 0\
**Last updated:** [November 14, 2007, 12:48am UTC](https://www.ruby-forum.com/t/undefined-method-in-my-plugin/120129 "2007-11-14T00:48:27Z")

</div>

I’ve got a plugin that is really a collection of plugins, and I want one plugin to see methods from another. I’ve tried to simplify what I’ve done and what I’m seeing So my (simplified) file structure looks like this: …

---

## [Reload specific plugins on every request in dev mode?](https://www.ruby-forum.com/t/reload-specific-plugins-on-every-request-in-dev-mode/120109)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [November 14, 2007, 12:01am UTC](https://www.ruby-forum.com/t/reload-specific-plugins-on-every-request-in-dev-mode/120109 "2007-11-14T00:01:58Z")

</div>

Hi all I have in mind to extract some functionality of my Rails app into plugins. So I’m already placing them into vendor/plugins with the same structure that a “real” plugin has. Now I have the problem that the plug…

---

## [Imitate "Unknown action"?](https://www.ruby-forum.com/t/imitate-unknown-action/120107)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 6\
**Last updated:** [November 13, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/imitate-unknown-action/120107 "2007-11-13T23:52:53Z")

</div>

Hi all I’m integrating some basic authorization stuff. When a user hits /countries/some\_unknown\_action, then Rails displays a “Unknown action” message (in development mode). When an unauthorized user hits /countries/…

---

## [Newbie - how to pass info from one screen to another](https://www.ruby-forum.com/t/newbie-how-to-pass-info-from-one-screen-to-another/120112)

<div class="topic-metadata">

**Author:** [@gorgeoussoul](https://www.ruby-forum.com/u/gorgeoussoul)\
**Replies:** 7\
**Last updated:** [November 13, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/newbie-how-to-pass-info-from-one-screen-to-another/120112 "2007-11-13T23:12:25Z")

</div>

I know this is undoubtably a stupid question, but I beg your patience. I’m just getting started and I used to program mostly in VB. I have a company model/table and a quote model/table. When someone clicks Create New…

---

## [FasterCSV: ignoring returns within a db field](https://www.ruby-forum.com/t/fastercsv-ignoring-returns-within-a-db-field/120125)

<div class="topic-metadata">

**Author:** [@soleil](https://www.ruby-forum.com/u/soleil)\
**Replies:** 0\
**Last updated:** [November 13, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/fastercsv-ignoring-returns-within-a-db-field/120125 "2007-11-13T23:10:10Z")

</div>

Hello, my goal is to import data into a MySQL-Database using FasterCSV: Does anyone have an idea how I can force FasterCSV to ignore carriage returns that occur within(!) a database text field and to read until “line…

---

## [Schema\_info always wants to be 3, even when set to 7](https://www.ruby-forum.com/t/schema-info-always-wants-to-be-3-even-when-set-to-7/119919)

<div class="topic-metadata">

**Author:** [@combray](https://www.ruby-forum.com/u/combray)\
**Replies:** 7\
**Last updated:** [November 13, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/schema-info-always-wants-to-be-3-even-when-set-to-7/119919 "2007-11-13T23:03:38Z")

</div>

Hi all, I’m having a very odd problem with db:migrate. I’m using Rails 1.2.5 on Windows XP SP2 and Ruby 1.8.6 I have seven migrations. If I run them with an empty database, it runs the first three, then halts. Whe…

---

## [Newbie question regarding single table inheritance](https://www.ruby-forum.com/t/newbie-question-regarding-single-table-inheritance/119756)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 3\
**Last updated:** [November 13, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/newbie-question-regarding-single-table-inheritance/119756 "2007-11-13T22:41:57Z")

</div>

In STI, how does one tell whether a subclass uses a certain attribute or not? Eric

---

## [Non Numeric IDs](https://www.ruby-forum.com/t/non-numeric-ids/120074)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 5\
**Last updated:** [November 13, 2007, 9:24pm UTC](https://www.ruby-forum.com/t/non-numeric-ids/120074 "2007-11-13T21:24:43Z")

</div>

So, I’ve seen several references to Rails’ preference for numeric IDs, and a couple places suggesting that not having them will cause problems. I have legacy (and frankly prefer) random alphanum strings. Ultimately is…

---

## [Trouble positioning partial in IE](https://www.ruby-forum.com/t/trouble-positioning-partial-in-ie/120017)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 2\
**Last updated:** [November 13, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/trouble-positioning-partial-in-ie/120017 "2007-11-13T21:06:18Z")

</div>

I am having trouble positioning my ‘events’ partial in IE. When I put a static object inside the ‘sidebar’ div, it renders on the upper right side of the page like a good browser. Once I toss in the ‘events’ partial, …

---

## [User specific data in subdomains](https://www.ruby-forum.com/t/user-specific-data-in-subdomains/119963)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [November 13, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/user-specific-data-in-subdomains/119963 "2007-11-13T20:59:29Z")

</div>

Hi, I have an app with specific data to each user. I want user george to be able to access his data at george.domain.com, user dan to access his data at dan.domain.com and so on. So I’d have a Users controller and I …

---

## [How to retrieve an object from form\_remote\_tag?](https://www.ruby-forum.com/t/how-to-retrieve-an-object-from-form-remote-tag/120022)

<div class="topic-metadata">

**Author:** [@GlennNZ](https://www.ruby-forum.com/u/GlennNZ)\
**Replies:** 7\
**Last updated:** [November 13, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/how-to-retrieve-an-object-from-form-remote-tag/120022 "2007-11-13T20:46:37Z")

</div>

Hi everyone, my misadventures with rails continues… If I have a cart object which contains CartItem objects and then use partials to display them, how do I go about getting a copy of a CartItem object to a controller …

---

## [Newbie: Modifying blank option from 'collection\_select'](https://www.ruby-forum.com/t/newbie-modifying-blank-option-from-collection-select/105605)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 9\
**Last updated:** [November 13, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/newbie-modifying-blank-option-from-collection-select/105605 "2007-11-13T19:44:56Z")

</div>

Hi all, Very new to RoR, but having great fun so far. I have a question which I thought would be a common one but haven’t found a clear answer on the forums through searching, so apologies: I want to have a select co…

---

## [REST-based controller using HEAD to test for exist?/status?](https://www.ruby-forum.com/t/rest-based-controller-using-head-to-test-for-exist-status/120102)

<div class="topic-metadata">

**Author:** [@Drew\_Wilson](https://www.ruby-forum.com/u/Drew_Wilson)\
**Replies:** 0\
**Last updated:** [November 13, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/rest-based-controller-using-head-to-test-for-exist-status/120102 "2007-11-13T19:35:41Z")

</div>

I’d like to add an API to my REST-based controller that indicates the existence of a resource (and maybe other status like the last time it was updated.) If I understand REST correctly, this seems like a natural use o…

---

## [Warning: require\_gem is obsolete. Use gem instead](https://www.ruby-forum.com/t/warning-require-gem-is-obsolete-use-gem-instead/103579)

<div class="topic-metadata">

**Author:** [@karry](https://www.ruby-forum.com/u/karry)\
**Replies:** 6\
**Last updated:** [November 13, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/warning-require-gem-is-obsolete-use-gem-instead/103579 "2007-11-13T19:31:24Z")

</div>

Hello Friends, This is a very common warning that everyone gets. I upgarded my gem and rails version to gem 0.9.2 and rails1.2.3 After i changed the version i got the warning “warning: require\_gem is obsolete. Use g…

---

## [How to use attachment\_fu from the console?](https://www.ruby-forum.com/t/how-to-use-attachment-fu-from-the-console/120100)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 0\
**Last updated:** [November 13, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/how-to-use-attachment-fu-from-the-console/120100 "2007-11-13T19:24:28Z")

</div>

Hey all, I’m trying to use attachment\_fu from the console because I need to upload a batch of picture that are locally on the same disk as my app. I tried doing that: Picture.new(File.open(“pic.jpg”)).save but obviou…

---

## [Capistrano, Rails, Leopard: Upgrade has broken my capistrano rake](https://www.ruby-forum.com/t/capistrano-rails-leopard-upgrade-has-broken-my-capistrano-rake/120098)

<div class="topic-metadata">

**Author:** [@sw0rdfish](https://www.ruby-forum.com/u/sw0rdfish)\
**Replies:** 0\
**Last updated:** [November 13, 2007, 7:08pm UTC](https://www.ruby-forum.com/t/capistrano-rails-leopard-upgrade-has-broken-my-capistrano-rake/120098 "2007-11-13T19:08:04Z")

</div>

Hopefully someone here has a better idea of what’s going on. For the longest time now I’ve been using Capistrano to deploy my project from the SVN repository, to the live server… When Leopard came out from Apple, I …

---

## [How to architect a global application \[in Rails\]](https://www.ruby-forum.com/t/how-to-architect-a-global-application-in-rails/119887)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 4\
**Last updated:** [November 13, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/how-to-architect-a-global-application-in-rails/119887 "2007-11-13T18:32:55Z")

</div>

Hello list, I’m building an application that will soon probably be translated and localized for different languages and cultures (countries). And here lies the issue. I’m not sure how to architect the application so t…

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

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