# Rails

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

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

---

## [Deeply nested assocations](https://www.ruby-forum.com/t/deeply-nested-assocations/158475)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 6:25pm UTC](https://www.ruby-forum.com/t/deeply-nested-assocations/158475 "2009-01-23T18:25:04Z")

</div>

I am working on a database that has the following associations It’s not my database, so I am stuck with the structure): class DimTeam \< ActiveRecord::Base set\_primary\_key “team\_id” has\_many :work\_match\_map\_teams, :fo…

---

## [Session ID changes, causing loss of session](https://www.ruby-forum.com/t/session-id-changes-causing-loss-of-session/158471)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 6:14pm UTC](https://www.ruby-forum.com/t/session-id-changes-causing-loss-of-session/158471 "2009-01-23T18:14:27Z")

</div>

I’m having a problem with sessions. I’m using Rails 2.0.2, and Firefox. The problem is that the session\_id sometimes changes while users are using the application. This makes it appear to users that they have been ‘l…

---

## [Undefined method \`table\_name' for REXML::Comment:Class](https://www.ruby-forum.com/t/undefined-method-table-name-for-rexml-class/149612)

<div class="topic-metadata">

**Author:** [@neetinforum](https://www.ruby-forum.com/u/neetinforum)\
**Replies:** 3\
**Last updated:** [January 23, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/undefined-method-table-name-for-rexml-class/149612 "2009-01-23T17:42:39Z")

</div>

i am using rexml and try to find id from Comment table i got the error my code is like this… XPath.each(new\_article, ‘comments’) do |comments| XPath.each(comments, ‘comment’) do |new\_comment| c\_oldid = XmlMigratedDa…

---

## [Small footprint?](https://www.ruby-forum.com/t/small-footprint/158456)

<div class="topic-metadata">

**Author:** [@rickf](https://www.ruby-forum.com/u/rickf)\
**Replies:** 3\
**Last updated:** [January 23, 2009, 5:12pm UTC](https://www.ruby-forum.com/t/small-footprint/158456 "2009-01-23T17:12:24Z")

</div>

Hello, I am just curious what the options are for small footprint databases. I understand SQLite is available, are there others in production use as well? I’d appreciate any recommendations etc. Firebird? SQLite see…

---

## [Authorization with RESTful\_ACL (index)](https://www.ruby-forum.com/t/authorization-with-restful-acl-index/158393)

<div class="topic-metadata">

**Author:** [@jmfreitas](https://www.ruby-forum.com/u/jmfreitas)\
**Replies:** 3\
**Last updated:** [January 23, 2009, 5:09pm UTC](https://www.ruby-forum.com/t/authorization-with-restful-acl-index/158393 "2009-01-23T17:09:07Z")

</div>

I’m using the latest RESTful\_ACL plugin - and so far it has fulfilled my app needs… I control the access to the several models depending on the user’s role and the REST action. Although, I have a question: For exa…

---

## [Eager loading in the Model versus in find](https://www.ruby-forum.com/t/eager-loading-in-the-model-versus-in-find/158465)

<div class="topic-metadata">

**Author:** [@vinhboy](https://www.ruby-forum.com/u/vinhboy)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/eager-loading-in-the-model-versus-in-find/158465 "2009-01-23T17:02:40Z")

</div>

Hi, Can you someone help me understand this. When I am eager loading something in the Model, like this: Class Customer \< ActiveRecord::Base has\_many :orders, :include =\> :line\_items end ( assume orders and line\_ite…

---

## [How to edit xml file?](https://www.ruby-forum.com/t/how-to-edit-xml-file/158427)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 3\
**Last updated:** [January 23, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/how-to-edit-xml-file/158427 "2009-01-23T17:02:04Z")

</div>

Dear all, I have an xml server settings file and iam in process of editing the xml server settings file. could anyone suggest me how to edit the xml file. My xml file. /home/user/pictures 192.168.0.111 I need…

---

## [\[jobs\] Philadelphia, PA position](https://www.ruby-forum.com/t/jobs-philadelphia-pa-position/158461)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 4:17pm UTC](https://www.ruby-forum.com/t/jobs-philadelphia-pa-position/158461 "2009-01-23T16:17:54Z")

</div>

The position below is an entry level web developer who’s familiar with a modern scripting language framework (like Ruby or Python, not Java or PHP) and some front-end/UI work using JavaScript/AJAX/etc. Slight emphasi…

---

## [Problem with "Hello World Program"](https://www.ruby-forum.com/t/problem-with-hello-world-program/158438)

<div class="topic-metadata">

**Author:** [@agrinshtein](https://www.ruby-forum.com/u/agrinshtein)\
**Replies:** 7\
**Last updated:** [January 23, 2009, 2:56pm UTC](https://www.ruby-forum.com/t/problem-with-hello-world-program/158438 "2009-01-23T14:56:33Z")

</div>

Hey I am new to RoR. I used Dan Benjamins install. Installing MySQL and RoR using the terminal. I made two files. One the controller, called say\_controller and than I made a views file, called hello.html.erb Instea…

---

## [BOOK: "Pro Active Record" - Chapter 3](https://www.ruby-forum.com/t/book-pro-active-record-chapter-3/158384)

<div class="topic-metadata">

**Author:** [@frank\_programmer](https://www.ruby-forum.com/u/frank_programmer)\
**Replies:** 2\
**Last updated:** [January 23, 2009, 1:30pm UTC](https://www.ruby-forum.com/t/book-pro-active-record-chapter-3/158384 "2009-01-23T13:30:28Z")

</div>

Good morning, I’m reading the book “Pro Active Record” by Marshall, Pytel, & Yurek. Currently stuck on chapter 3. I’m using \[Ruby 1.8.6 \<2007-09-24\> patchlevel 111\] & \[Rails 2.1.1\]. Chapter 3 discusses migrations. …

---

## [Pass values popup window to parent window](https://www.ruby-forum.com/t/pass-values-popup-window-to-parent-window/158446)

<div class="topic-metadata">

**Author:** [@devirv](https://www.ruby-forum.com/u/devirv)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 1:00pm UTC](https://www.ruby-forum.com/t/pass-values-popup-window-to-parent-window/158446 "2009-01-23T13:00:22Z")

</div>

Hi, How to get the values from the child form(it’s a popup) to the partent form when child form(popup)is closed? Any one knows the please suggest me… Thanks in advance. Regards devirv.

---

## [URL rewrite to other domain for all local requests](https://www.ruby-forum.com/t/url-rewrite-to-other-domain-for-all-local-requests/158444)

<div class="topic-metadata">

**Author:** [@blackflash](https://www.ruby-forum.com/u/blackflash)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 12:41pm UTC](https://www.ruby-forum.com/t/url-rewrite-to-other-domain-for-all-local-requests/158444 "2009-01-23T12:41:43Z")

</div>

Is it possible to rewrite all URL’s (routes) inside a rails app for all local request to link to other domain if RAILS\_ENV=test. If I open the application at www.domain\_for\_private\_site.com, then all forms, links, etc…

---

## [Runner suddenly fails](https://www.ruby-forum.com/t/runner-suddenly-fails/158283)

<div class="topic-metadata">

**Author:** [@mattias](https://www.ruby-forum.com/u/mattias)\
**Replies:** 5\
**Last updated:** [January 23, 2009, 12:15pm UTC](https://www.ruby-forum.com/t/runner-suddenly-fails/158283 "2009-01-23T12:15:07Z")

</div>

I have some jobs running through cron jobs and runner that suddenly starts failing. This is how it looks: from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/runner.rb:47 from /usr/local/lib/ruby/site\_r…

---

## [Link picture of slideshow](https://www.ruby-forum.com/t/link-picture-of-slideshow/158439)

<div class="topic-metadata">

**Author:** [@Rabia](https://www.ruby-forum.com/u/Rabia)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 12:13pm UTC](https://www.ruby-forum.com/t/link-picture-of-slideshow/158439 "2009-01-23T12:13:24Z")

</div>

Hi I am using smooth gallery for the slide show. When I made link of picture to another page it do not go to the picture on which we click. Can any body help me to resolve this problem. Thanks Rabia

---

## [Forms and controller scope](https://www.ruby-forum.com/t/forms-and-controller-scope/158435)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 2\
**Last updated:** [January 23, 2009, 11:59am UTC](https://www.ruby-forum.com/t/forms-and-controller-scope/158435 "2009-01-23T11:59:07Z")

</div>

Is it possible to pass predefined arguments along with a form with form\_for? i.e. an id etc? I have a task model with usual title, completed(bool), duedate and a foreign key field called project\_id (a project has many…

---

## [Return type of Finder? How to append?](https://www.ruby-forum.com/t/return-type-of-finder-how-to-append/158367)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 4\
**Last updated:** [January 23, 2009, 10:50am UTC](https://www.ruby-forum.com/t/return-type-of-finder-how-to-append/158367 "2009-01-23T10:50:28Z")

</div>

Hi all, Please help me solve the issue given below. Scenario: I’m fetching few rows from one table to a variable. Then I want to append that variable with another row of the same table, based on a condition. For th…

---

## [Execute Action every x minutes](https://www.ruby-forum.com/t/execute-action-every-x-minutes/158383)

<div class="topic-metadata">

**Author:** [@pure](https://www.ruby-forum.com/u/pure)\
**Replies:** 4\
**Last updated:** [January 23, 2009, 9:30am UTC](https://www.ruby-forum.com/t/execute-action-every-x-minutes/158383 "2009-01-23T09:30:29Z")

</div>

Hey all, i want to execute a action (located in lib) every 5 minutes. For now i use periodically\_call\_remote. But every time i navigate on my site, the countdown is reseting to zero and starts again. I want a countd…

---

## [NameError: uninitialized constant I18n](https://www.ruby-forum.com/t/nameerror-uninitialized-constant-i18n/158434)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 8:53am UTC](https://www.ruby-forum.com/t/nameerror-uninitialized-constant-i18n/158434 "2009-01-23T08:53:35Z")

</div>

Just installed the plugin as described on the link below. If i fire up my console and then: I18n.default\_locale = “en” i got the error message: NameError: uninitialized constant I18n from /Library/Ruby/Gems/1.8/g…

---

## [Help with making TemplateHandlers for rails 2.2.2](https://www.ruby-forum.com/t/help-with-making-templatehandlers-for-rails-2-2-2/158432)

<div class="topic-metadata">

**Author:** [@cmo-0](https://www.ruby-forum.com/u/cmo-0)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 8:37am UTC](https://www.ruby-forum.com/t/help-with-making-templatehandlers-for-rails-2-2-2/158432 "2009-01-23T08:37:08Z")

</div>

Hi, i want to create a custom template handler for an intranet app. the template handler will be like erb template (maybe inherent from ERB handler), but the final substituted result will be passed to some unix tools…

---

## [Sanitize + form\_for](https://www.ruby-forum.com/t/sanitize-form-for/158366)

<div class="topic-metadata">

**Author:** [@petan](https://www.ruby-forum.com/u/petan)\
**Replies:** 1\
**Last updated:** [January 23, 2009, 8:17am UTC](https://www.ruby-forum.com/t/sanitize-form-for/158366 "2009-01-23T08:17:59Z")

</div>

Hi, I am trying to sanitize some bad html tags using sanitize (Sanitize: A whitelist-based Ruby HTML sanitizer - wonko.com). I have a basic form: \<% form\_for … do |f| %\> \<%= Sanitize.clean(f.text\_field :title, Sani…

---

## [JOBS - RoR Web Developer - San Francisco](https://www.ruby-forum.com/t/jobs-ror-web-developer-san-francisco/152185)

<div class="topic-metadata">

**Author:** [@bkunkel](https://www.ruby-forum.com/u/bkunkel)\
**Replies:** 1\
**Last updated:** [January 23, 2009, 7:02am UTC](https://www.ruby-forum.com/t/jobs-ror-web-developer-san-francisco/152185 "2009-01-23T07:02:57Z")

</div>

Senior Web D. (RoR) We’ve been retained by a well positioned and managed San Francisco based (SOMA) startup to find an exceptional Ruby on Rails (RoR) business applications developer. Be a key part of a brilliant tea…

---

## [Rails table naming issue](https://www.ruby-forum.com/t/rails-table-naming-issue/158422)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 4:19am UTC](https://www.ruby-forum.com/t/rails-table-naming-issue/158422 "2009-01-23T04:19:14Z")

</div>

I have a about 4 or so tables all linked together in a chain type. shelf-\>card-\>port-\>sts. the problem is with the sts table. when I do: "port =Port.find\_by\_card\_id(??) then i do: port.sts.count It keeps saying P…

---

## [Helep with "ActionController::InvalidAuthenticityToken"](https://www.ruby-forum.com/t/helep-with-actioncontroller-invalidauthenticitytoken/158419)

<div class="topic-metadata">

**Author:** [@rustam](https://www.ruby-forum.com/u/rustam)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 2:32am UTC](https://www.ruby-forum.com/t/helep-with-actioncontroller-invalidauthenticitytoken/158419 "2009-01-23T02:32:19Z")

</div>

hi all ! i have a rails app and it worked very well one day before.when i turn on my computer next time i have got this error ActionController::InvalidAuthenticityToken every time i try to process the form .also i h…

---

## [Auto complete rjs problem](https://www.ruby-forum.com/t/auto-complete-rjs-problem/158416)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 2:03am UTC](https://www.ruby-forum.com/t/auto-complete-rjs-problem/158416 "2009-01-23T02:03:17Z")

</div>

I want to use auto\_complete plugin for a field. I have a ajax call that loads a js partial that will insert into DOM a text field with auto complete (the plugin will insert for me css styles, an input, a div and a new…

---

## [Jobs: Authors Needed](https://www.ruby-forum.com/t/jobs-authors-needed/158413)

<div class="topic-metadata">

**Author:** [@rich](https://www.ruby-forum.com/u/rich)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 1:22am UTC](https://www.ruby-forum.com/t/jobs-authors-needed/158413 "2009-01-23T01:22:33Z")

</div>

My name is Rich Hein and I work for Jupitermedia Corporation. I run several sites for them. I’m currently looking for authors to write articles and on open source programming languages like Ruby, Rails, Python or Ruby…

---

## [Deployment on Bluehost](https://www.ruby-forum.com/t/deployment-on-bluehost/158411)

<div class="topic-metadata">

**Author:** [@Hendro\_Wijaya](https://www.ruby-forum.com/u/Hendro_Wijaya)\
**Replies:** 0\
**Last updated:** [January 23, 2009, 1:22am UTC](https://www.ruby-forum.com/t/deployment-on-bluehost/158411 "2009-01-23T01:22:33Z")

</div>

Hi All, I’m a total newbie when it comes to Rails. At the moment, i’m trying to deploy my super-simple rails apps on bluehost account and i have been having troubles for a couple of days. I really appreciate it if t…

---

## [Problem running rake test](https://www.ruby-forum.com/t/problem-running-rake-test/158199)

<div class="topic-metadata">

**Author:** [@safestate](https://www.ruby-forum.com/u/safestate)\
**Replies:** 4\
**Last updated:** [January 23, 2009, 12:48am UTC](https://www.ruby-forum.com/t/problem-running-rake-test/158199 "2009-01-23T00:48:01Z")

</div>

I’m using the One-click 1.8.7rc2 Ruby Windows installer, everything has been working fine up till now, when i want to start getting into testing, i got this error, any reason why? C:/Ruby/bin/ruby -Ilib;test “C:/Ruby/…

---

## [\[JOB\] Rails Back-End Consultant (NY, NJ, CT, PA)](https://www.ruby-forum.com/t/job-rails-back-end-consultant-ny-nj-ct-pa/158401)

<div class="topic-metadata">

**Author:** [@superiorss](https://www.ruby-forum.com/u/superiorss)\
**Replies:** 0\
**Last updated:** [January 22, 2009, 10:55pm UTC](https://www.ruby-forum.com/t/job-rails-back-end-consultant-ny-nj-ct-pa/158401 "2009-01-22T22:55:15Z")

</div>

My Greenwich, CT based client adds a social layer to the entire internet, turning every website into a social environment where consumers can make friends, find relevant content, and buy, sell and trade digital goods. …

---

## [Script/plugin and polluted(?) sources](https://www.ruby-forum.com/t/script-plugin-and-polluted-sources/158399)

<div class="topic-metadata">

**Author:** [@fritza](https://www.ruby-forum.com/u/fritza)\
**Replies:** 0\
**Last updated:** [January 22, 2009, 10:35pm UTC](https://www.ruby-forum.com/t/script-plugin-and-polluted-sources/158399 "2009-01-22T22:35:03Z")

</div>

I recently had trouble installing the ssl\_requirement plugin. script/plugin said it couldn’t find ssl\_requirement. I “solved” this by running “script/plugin discover” and accepting the addition of a bunch of other rep…

---

## [SSL plugin](https://www.ruby-forum.com/t/ssl-plugin/156990)

<div class="topic-metadata">

**Author:** [@gilbertsavier](https://www.ruby-forum.com/u/gilbertsavier)\
**Replies:** 6\
**Last updated:** [January 22, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/ssl-plugin/156990 "2009-01-22T21:59:01Z")

</div>

HAppy new year. I was trying to turn on SSL. On trying to install the plugin for ssl I get an error message that the plugin was not found. Any one with an alternative can help me out. This is what I used to instalthe…

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

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