# Rails

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

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

---

## [How to deal with one user-visible object stored as two logical objects](https://www.ruby-forum.com/t/how-to-deal-with-one-user-visible-object-stored-as-two-logical-objects/115960)

<div class="topic-metadata">

**Author:** [@markds75](https://www.ruby-forum.com/u/markds75)\
**Replies:** 5\
**Last updated:** [October 3, 2007, 1:00am UTC](https://www.ruby-forum.com/t/how-to-deal-with-one-user-visible-object-stored-as-two-logical-objects/115960 "2007-10-03T01:00:30Z")

</div>

I’m not sure the Subject really captures what I’m trying to figure out how to do, so bear with me while I describe what I’m doing. I’ve got two classes that I’m trying to figure out how best to structure. One of the c…

---

## [GLoc Internationalization Plugin error](https://www.ruby-forum.com/t/gloc-internationalization-plugin-error/116155)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 12:16am UTC](https://www.ruby-forum.com/t/gloc-internationalization-plugin-error/116155 "2007-10-03T00:16:38Z")

</div>

Hi, I just installed the GLoc plugin, and set up my application to use symbols instead of hard coded strings. I did this for the English, language, and everything worked like a charm. I then added a fr.yml (french …

---

## [Ignore path](https://www.ruby-forum.com/t/ignore-path/116102)

<div class="topic-metadata">

**Author:** [@prism](https://www.ruby-forum.com/u/prism)\
**Replies:** 5\
**Last updated:** [October 2, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/ignore-path/116102 "2007-10-02T23:57:18Z")

</div>

Hi. I’m trying to rewrite a path to a different application with Apache. My Apache Rewrite rule is RewriteRule ^/(service)/(.\*)$ balancer://myapp\_service\_cluster%{REQUEST\_URI} \[P,QSA,L\] My other rewrites for this s…

---

## [Ruby servers and command line and gems... what's that! (I'm a php guy)](https://www.ruby-forum.com/t/ruby-servers-and-command-line-and-gems-whats-that-im-a-php-guy/116149)

<div class="topic-metadata">

**Author:** [@snaggy](https://www.ruby-forum.com/u/snaggy)\
**Replies:** 2\
**Last updated:** [October 2, 2007, 11:56pm UTC](https://www.ruby-forum.com/t/ruby-servers-and-command-line-and-gems-whats-that-im-a-php-guy/116149 "2007-10-02T23:56:43Z")

</div>

I’m used to working in php, where I have my .php files and all I have to do is put them in a www directory served by apache, or upload them to a php host. Now I’m trying ruby and RoR and first I discover they don’t us…

---

## [Question about MVC](https://www.ruby-forum.com/t/question-about-mvc/116147)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 1\
**Last updated:** [October 2, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/question-about-mvc/116147 "2007-10-02T23:52:00Z")

</div>

Hi all, I have a question about a MVC-“problem” and how to handle so a case. I want page which lists some users. You can add users with a dropdown-list. So something like: %h2 Selected users user1 user2 %h2 Add …

---

## [Using flash to pass data between pages](https://www.ruby-forum.com/t/using-flash-to-pass-data-between-pages/116135)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 3\
**Last updated:** [October 2, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/using-flash-to-pass-data-between-pages/116135 "2007-10-02T23:43:52Z")

</div>

Hi all, Is it considered good practice to use the flash to pass temporary data between pages? Items such a id’s for model objects in case I want to retrieve the object that was used in the previous page. Or, should I …

---

## [Temporary active records](https://www.ruby-forum.com/t/temporary-active-records/116072)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 13\
**Last updated:** [October 2, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/temporary-active-records/116072 "2007-10-02T23:42:05Z")

</div>

I would like to create some activerecord instances in my application that don’t ever get written to the database while others do. Is that possible?

---

## [Oracle :time field issue](https://www.ruby-forum.com/t/oracle-time-field-issue/116037)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 5\
**Last updated:** [October 2, 2007, 8:20pm UTC](https://www.ruby-forum.com/t/oracle-time-field-issue/116037 "2007-10-02T20:20:21Z")

</div>

What field type should I use to store time in oracle? I tried :time but that actually creates a date field that doesn’t work with time\_select, it gives me the error “1 error(s) on assignment of multiparameter attribu…

---

## [Rake db:migrate fail! bad descriptor](https://www.ruby-forum.com/t/rake-db-migrate-fail-bad-descriptor/116085)

<div class="topic-metadata">

**Author:** [@BCSnow](https://www.ruby-forum.com/u/BCSnow)\
**Replies:** 11\
**Last updated:** [October 2, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-fail-bad-descriptor/116085 "2007-10-02T20:06:19Z")

</div>

Dear All, I am just getting into Ruby on Rails, after successfully failing at getting any other programming language to work locally. RoR appears to be a repeat! One problem I keep running into is getting a database u…

---

## [Rails email contacts importer?](https://www.ruby-forum.com/t/rails-email-contacts-importer/116134)

<div class="topic-metadata">

**Author:** [@Mojave](https://www.ruby-forum.com/u/Mojave)\
**Replies:** 0\
**Last updated:** [October 2, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/rails-email-contacts-importer/116134 "2007-10-02T19:34:36Z")

</div>

Is there Ruby on Rails based code to import contacts from gmail, yahoo, hotmail, etc.? I’ve seen this on many sites and have found php- based code but nothing yet for Ruby.

---

## [Showing popup window without showing any status on taskbar](https://www.ruby-forum.com/t/showing-popup-window-without-showing-any-status-on-taskbar/116126)

<div class="topic-metadata">

**Author:** [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Replies:** 0\
**Last updated:** [October 2, 2007, 5:32pm UTC](https://www.ruby-forum.com/t/showing-popup-window-without-showing-any-status-on-taskbar/116126 "2007-10-02T17:32:19Z")

</div>

Hi friends, I am new to ROR , I want to show the popup window instead of using the title attribute of the link\_to tag so that I can reseize it, Is there any way to do that Please Help Me… Kiran P., removed\_email\_…

---

## [Finding "has\_many :through" items without any associated items](https://www.ruby-forum.com/t/finding-has-many-through-items-without-any-associated-items/116123)

<div class="topic-metadata">

**Author:** [@Gareth\_A](https://www.ruby-forum.com/u/Gareth_A)\
**Replies:** 1\
**Last updated:** [October 2, 2007, 5:09pm UTC](https://www.ruby-forum.com/t/finding-has-many-through-items-without-any-associated-items/116123 "2007-10-02T17:09:11Z")

</div>

Hi guys, I have a class Foo has\_many :foo\_bars has\_many :bars, :through =\> :foo\_bars end What’s the simplest way to find all Foos that don’t have any Bars? I know I could go through some convoluted process like fi…

---

## [Question about string compares with ruby](https://www.ruby-forum.com/t/question-about-string-compares-with-ruby/116069)

<div class="topic-metadata">

**Author:** [@LAB](https://www.ruby-forum.com/u/LAB)\
**Replies:** 4\
**Last updated:** [October 2, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/question-about-string-compares-with-ruby/116069 "2007-10-02T16:49:15Z")

</div>

Say I have two entries in my database: Bartlett Peabody A user runs a search, and I want to return all matches to the name above. So the user types in “Bartlett Street”, and I want it to return #1 above. My ruby c…

---

## [Date Validation problem](https://www.ruby-forum.com/t/date-validation-problem/116115)

<div class="topic-metadata">

**Author:** [@GPB](https://www.ruby-forum.com/u/GPB)\
**Replies:** 3\
**Last updated:** [October 2, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/date-validation-problem/116115 "2007-10-02T16:36:54Z")

</div>

Hello, I have this validation code in my model. def validate errors.add(:last\_action\_date, “some message”) if next\_action\_date \< last\_action\_date end Two date select fields. Without the code, as long as dates are …

---

## [Rake db:migrate strange behaviour "wrong number of arguments](https://www.ruby-forum.com/t/rake-db-migrate-strange-behaviour-wrong-number-of-arguments/107572)

<div class="topic-metadata">

**Author:** [@rafael](https://www.ruby-forum.com/u/rafael)\
**Replies:** 7\
**Last updated:** [October 2, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-strange-behaviour-wrong-number-of-arguments/107572 "2007-10-02T16:25:13Z")

</div>

Hi everybody, May be somebody has a clue, why I get these errors below, while trying to migrate. Any help is very appreciated! Greetinx Rafael I was trying to experiment a litte bit with redMine (www.redmine.org). …

---

## [\[ANN\] London Ruby User Group - 08th October, 2007](https://www.ruby-forum.com/t/ann-london-ruby-user-group-08th-october-2007/116112)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 3\
**Last updated:** [October 2, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/ann-london-ruby-user-group-08th-october-2007/116112 "2007-10-02T16:12:46Z")

</div>

Hi all, The next London Ruby U. Group meeting is on this coming Monday: Date: October 10th Time: 6:30pm onwards Location: the Skills Matter offices at 1 Sekeford Street, EC1R 0BEL\[1\] Closest tube: Farringdon Agenda…

---

## [How do I make toggle appear not disapear](https://www.ruby-forum.com/t/how-do-i-make-toggle-appear-not-disapear/116078)

<div class="topic-metadata">

**Author:** [@kbowerma](https://www.ruby-forum.com/u/kbowerma)\
**Replies:** 2\
**Last updated:** [October 2, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/how-do-i-make-toggle-appear-not-disapear/116078 "2007-10-02T16:02:14Z")

</div>

In my partial I iterate displaying many ‘roles’ in a side bar. each role has 0 or more services. I then iterated over the services and set their div id to that of the parent service ( you will notice in the code that…

---

## [Open new window](https://www.ruby-forum.com/t/open-new-window/95393)

<div class="topic-metadata">

**Author:** [@Santiago\_Hirschfeld](https://www.ruby-forum.com/u/Santiago_Hirschfeld)\
**Replies:** 2\
**Last updated:** [October 2, 2007, 3:58pm UTC](https://www.ruby-forum.com/t/open-new-window/95393 "2007-10-02T15:58:17Z")

</div>

First, I’m very new in rails, i’m loving it and didn’t encounter any problems in the simple tasks i’m doing yet. What I’d like to do is to open a new window containing the info of a Model (something like the show sca…

---

## [REXML - XML query only returning one (last) result](https://www.ruby-forum.com/t/rexml-xml-query-only-returning-one-last-result/115880)

<div class="topic-metadata">

**Author:** [@Giant\_Jam\_Sandwich](https://www.ruby-forum.com/u/Giant_Jam_Sandwich)\
**Replies:** 2\
**Last updated:** [October 2, 2007, 3:37pm UTC](https://www.ruby-forum.com/t/rexml-xml-query-only-returning-one-last-result/115880 "2007-10-02T15:37:02Z")

</div>

I’m really new to Ruby on Rails, and I’m trying to read an XML file with REXML. No matter what I try, I am only getting the last result returned from my query. I should be getting 365 results. Here is the code: inclu…

---

## [Routes both nested and RESTful](https://www.ruby-forum.com/t/routes-both-nested-and-restful/116065)

<div class="topic-metadata">

**Author:** [@datorrey](https://www.ruby-forum.com/u/datorrey)\
**Replies:** 3\
**Last updated:** [October 2, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/routes-both-nested-and-restful/116065 "2007-10-02T15:21:41Z")

</div>

Most of the material on custom routes and URL generation in Rails assumes non-nested, non-RESTful routes it seems. Especially for non-crud actions it is difficult to find good examples for nested resources. RESTful …

---

## [Modifying iframe source](https://www.ruby-forum.com/t/modifying-iframe-source/116113)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 0\
**Last updated:** [October 2, 2007, 2:43pm UTC](https://www.ruby-forum.com/t/modifying-iframe-source/116113 "2007-10-02T14:43:37Z")

</div>

Dear all, Currently I am struggling with the following; I am building an app in with external sites are reviewed by humans. The reviewing focusses on certain link which I want to highlight. In the past I could just p…

---

## [Graphing in ruby](https://www.ruby-forum.com/t/graphing-in-ruby/116106)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 4\
**Last updated:** [October 2, 2007, 1:34pm UTC](https://www.ruby-forum.com/t/graphing-in-ruby/116106 "2007-10-02T13:34:53Z")

</div>

I need to do some x /y plots in ruby for a rails app, with a log scale, does anyone know of any gems / libraries that can do this. Tom

---

## [Using local gems](https://www.ruby-forum.com/t/using-local-gems/116098)

<div class="topic-metadata">

**Author:** [@edhel](https://www.ruby-forum.com/u/edhel)\
**Replies:** 8\
**Last updated:** [October 2, 2007, 12:39pm UTC](https://www.ruby-forum.com/t/using-local-gems/116098 "2007-10-02T12:39:42Z")

</div>

Hello, I have successfully installed some local gems on my rails host. I checked that through irb: irb(main):002:0\> require ‘rubygems’ =\> true irb(main):003:0\> require\_gem ‘mylocalgem’ =\> true irb(main):003:0\> a =…

---

## [Rails development using Unified Process](https://www.ruby-forum.com/t/rails-development-using-unified-process/116059)

<div class="topic-metadata">

**Author:** [@Christian\_WattengSS](https://www.ruby-forum.com/u/Christian_WattengSS)\
**Replies:** 2\
**Last updated:** [October 2, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/rails-development-using-unified-process/116059 "2007-10-02T12:34:26Z")

</div>

So I’m doing a school project in Rails. But they force us to use UP as development process. Any suggestions on how to get started with Rails in sort of UP fashion? I really want to start coding, but I know that’s not …

---

## [Problem with render\_component](https://www.ruby-forum.com/t/problem-with-render-component/116015)

<div class="topic-metadata">

**Author:** [@Kiran\_P](https://www.ruby-forum.com/u/Kiran_P)\
**Replies:** 5\
**Last updated:** [October 2, 2007, 12:24pm UTC](https://www.ruby-forum.com/t/problem-with-render-component/116015 "2007-10-02T12:24:21Z")

</div>

Hi, Friends, I am working on ruby on rails, I have created a login form \<%=flash\[:notice\].to\_s%\> \<legend\> Please Log In \</legend\> \<% form\_tag do %\> \<p\> \<label for="name"\>Name:\</label\>\<br/\>\<br/\>\<br/\> \<%= tex…

---

## [/info/properties was not found](https://www.ruby-forum.com/t/info-properties-was-not-found/116096)

<div class="topic-metadata">

**Author:** [@prsty](https://www.ruby-forum.com/u/prsty)\
**Replies:** 0\
**Last updated:** [October 2, 2007, 11:22am UTC](https://www.ruby-forum.com/t/info-properties-was-not-found/116096 "2007-10-02T11:22:34Z")

</div>

Hi all, I’ve installed ruby on rails in to ubuntu feisty.And now i got a lil problem with it.The error is come when i click on “About your applicationâ€™s environment”,they say like this : Not Found The requested UR…

---

## [Form urls and activeresource object](https://www.ruby-forum.com/t/form-urls-and-activeresource-object/116041)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 1\
**Last updated:** [October 2, 2007, 11:10am UTC](https://www.ruby-forum.com/t/form-urls-and-activeresource-object/116041 "2007-10-02T11:10:19Z")

</div>

I have an update form that looks like this: \<% form\_for @article do |f| %\> Title \<%= f.text\_field :title %\> \<%= f.submit "Update" %\> and when I try to update it doesn’t work because it print…

---

## [Set a rails variable to the output of a javascript function?](https://www.ruby-forum.com/t/set-a-rails-variable-to-the-output-of-a-javascript-function/110243)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 7\
**Last updated:** [October 2, 2007, 9:18am UTC](https://www.ruby-forum.com/t/set-a-rails-variable-to-the-output-of-a-javascript-function/110243 "2007-10-02T09:18:15Z")

</div>

I have a javascript function that outputs a string. In my rhtml view file, i want to set a rails variable to the output from this function? Can anyone tell me how to set this up please?

---

## [Reloading of lib files in development mode](https://www.ruby-forum.com/t/reloading-of-lib-files-in-development-mode/106500)

<div class="topic-metadata">

**Author:** [@reven](https://www.ruby-forum.com/u/reven)\
**Replies:** 1\
**Last updated:** [October 2, 2007, 8:16am UTC](https://www.ruby-forum.com/t/reloading-of-lib-files-in-development-mode/106500 "2007-10-02T08:16:21Z")

</div>

Hi, I’ve been using engines for one month now and find it perfect so far, it helped me a lot to keep separate my admin interface code from the main app. Congratulation for this plugin ! I do use some modules to keep …

---

## [Funky error message on OS X](https://www.ruby-forum.com/t/funky-error-message-on-os-x/116079)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 0\
**Last updated:** [October 2, 2007, 5:32am UTC](https://www.ruby-forum.com/t/funky-error-message-on-os-x/116079 "2007-10-02T05:32:23Z")

</div>

I’m following along with Peepcode’s guide to using Capistrano to deploy Rails apps right now, but I’ve hit a snag and I have no idea what to do to fix it. When I try to “sudo gem install railsmachine –include-dependen…

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

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