# Rails

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

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

---

## [A problem about routing request](https://www.ruby-forum.com/t/a-problem-about-routing-request/164352)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 2\
**Last updated:** [April 1, 2009, 2:51am UTC](https://www.ruby-forum.com/t/a-problem-about-routing-request/164352 "2009-04-01T02:51:30Z")

</div>

I created a scaffold and generated index, new, show, update, destory actions and its related views. When I open the index view, I will got the error: You have a nil object when you didn’t expect it! The error occurre…

---

## [Mongrel and application's public path problem](https://www.ruby-forum.com/t/mongrel-and-applications-public-path-problem/164408)

<div class="topic-metadata">

**Author:** [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Replies:** 0\
**Last updated:** [April 1, 2009, 2:43am UTC](https://www.ruby-forum.com/t/mongrel-and-applications-public-path-problem/164408 "2009-04-01T02:43:45Z")

</div>

Hi all, Im trying to fix a path problem. My app was developed while using fastcgi. When I did FileUtils.mkdir it created a new directory under the public directory in my application. Now in production we use mongrel …

---

## [Feed tools compatible with latest rails version 2.32](https://www.ruby-forum.com/t/feed-tools-compatible-with-latest-rails-version-2-32/164304)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 2\
**Last updated:** [April 1, 2009, 12:39am UTC](https://www.ruby-forum.com/t/feed-tools-compatible-with-latest-rails-version-2-32/164304 "2009-04-01T00:39:54Z")

</div>

does nayone know if the latest feed tools is compatible with the latest version of rails Ive just installed feed tools, and tryed out some sample code to check it works/ i have got two errors first error after booti…

---

## [Output to Printer](https://www.ruby-forum.com/t/output-to-printer/164025)

<div class="topic-metadata">

**Author:** [@eengnerd](https://www.ruby-forum.com/u/eengnerd)\
**Replies:** 3\
**Last updated:** [April 1, 2009, 12:12am UTC](https://www.ruby-forum.com/t/output-to-printer/164025 "2009-04-01T00:12:01Z")

</div>

It was very surprising to me to find out that there is no current, GPL’ed “ruby-” package designed for outputting HTML / CSS pages to a printer. For reasons of principle, I won’t use any add on modules for ruby that …

---

## [A new column on Rails for Linux Magazine](https://www.ruby-forum.com/t/a-new-column-on-rails-for-linux-magazine/164402)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 0\
**Last updated:** [April 1, 2009, 12:07am UTC](https://www.ruby-forum.com/t/a-new-column-on-rails-for-linux-magazine/164402 "2009-04-01T00:07:45Z")

</div>

I was Editor-in-Chief of Linux Magazine from 2002-2007. I’ve joined forces with LM again to lead the magazine’s coverage of Web technologies, including writing my own column. Since I’ve been working in Rails a bunch, …

---

## [Can RJS render new javascript?](https://www.ruby-forum.com/t/can-rjs-render-new-javascript/164308)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 7\
**Last updated:** [March 31, 2009, 11:36pm UTC](https://www.ruby-forum.com/t/can-rjs-render-new-javascript/164308 "2009-03-31T23:36:42Z")

</div>

Hi - I’m trying to create a widget where my rails code generates a fresh widget (which is javascript) to replace the old one. To do this, I need to insert new javascript with AJAX with RJS (so my partial begins with…

---

## [Question: An application made with Ruby on Rails is Open Source by default?](https://www.ruby-forum.com/t/question-an-application-made-with-ruby-on-rails-is-open-source-by-default/164341)

<div class="topic-metadata">

**Author:** [@Dorian](https://www.ruby-forum.com/u/Dorian)\
**Replies:** 6\
**Last updated:** [March 31, 2009, 10:35pm UTC](https://www.ruby-forum.com/t/question-an-application-made-with-ruby-on-rails-is-open-source-by-default/164341 "2009-03-31T22:35:47Z")

</div>

Hello everybody, I’m about to enter the Ruby on Rails Community after reading a lot of good feedback on the Internet and the Agile Programming book also. Before starting to develop my application I would like to clear…

---

## [Safari 4 invalid auth token](https://www.ruby-forum.com/t/safari-4-invalid-auth-token/164339)

<div class="topic-metadata">

**Author:** [@matthooks](https://www.ruby-forum.com/u/matthooks)\
**Replies:** 2\
**Last updated:** [March 31, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/safari-4-invalid-auth-token/164339 "2009-03-31T21:25:21Z")

</div>

Getting an odd error in Safari 4: Here’s the auth token that’s output to my javascript: 4HB8yAW4gU2xEavWOc+kiMoj4XIyCBUK/t704aOQ+co= Here’s what’s listed in the parameters: “authenticity\_token”=\>“4HB8yAW4gU2xEavWOc k…

---

## [Routing every request to same action](https://www.ruby-forum.com/t/routing-every-request-to-same-action/164259)

<div class="topic-metadata">

**Author:** [@umair](https://www.ruby-forum.com/u/umair)\
**Replies:** 5\
**Last updated:** [March 31, 2009, 8:19pm UTC](https://www.ruby-forum.com/t/routing-every-request-to-same-action/164259 "2009-03-31T20:19:05Z")

</div>

Hi, I have some problem, I want to route every request from URL to an action in my one controller. Like if I enter localhost:3000/rac .Here it will take the ‘rac’ as a controller name and then route it to the ‘index’…

---

## [Some light security on a voting web site](https://www.ruby-forum.com/t/some-light-security-on-a-voting-web-site/164389)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 2\
**Last updated:** [March 31, 2009, 8:16pm UTC](https://www.ruby-forum.com/t/some-light-security-on-a-voting-web-site/164389 "2009-03-31T20:16:38Z")

</div>

I’m creating a site where a profile can be voted on by guest users. I want to prevent basic fraud by disallowing multiple votes for the same profile in one session. I was thinking about using a session array and check…

---

## [:first and :all giving different first records](https://www.ruby-forum.com/t/first-and-all-giving-different-first-records/164297)

<div class="topic-metadata">

**Author:** [@jimmyether](https://www.ruby-forum.com/u/jimmyether)\
**Replies:** 3\
**Last updated:** [March 31, 2009, 7:07pm UTC](https://www.ruby-forum.com/t/first-and-all-giving-different-first-records/164297 "2009-03-31T19:07:43Z")

</div>

I’m trying to track down a strange test error. This project has Rails 2.1.0 frozen in vendor/rails . On my MacBook Pro, the problem boils down to this: (rdb:1) Invoice.first(:order=\>‘id desc’) #\<Invoice id: 3, type…

---

## [Updating a new id created from Ajax call in the same .js.rjs](https://www.ruby-forum.com/t/updating-a-new-id-created-from-ajax-call-in-the-same-js-rjs/164385)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 0\
**Last updated:** [March 31, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/updating-a-new-id-created-from-ajax-call-in-the-same-js-rjs/164385 "2009-03-31T18:57:34Z")

</div>

Hello, I’m playing a little with ajax and some visual effects. What I’m doing is creating and modifying rows, open a new window with ajax, do the stuff, and update the main div page with the new row. The action can b…

---

## [Using pagination to group pages by attribute value](https://www.ruby-forum.com/t/using-pagination-to-group-pages-by-attribute-value/164075)

<div class="topic-metadata">

**Author:** [@gte351s](https://www.ruby-forum.com/u/gte351s)\
**Replies:** 1\
**Last updated:** [March 31, 2009, 6:16pm UTC](https://www.ruby-forum.com/t/using-pagination-to-group-pages-by-attribute-value/164075 "2009-03-31T18:16:39Z")

</div>

Hi - I’m trying to group records based on some attribute they or an association of their’s have. The simplest example I could think of to drive my point is this: Assume the following model associations (pardon my but…

---

## [Many to many question](https://www.ruby-forum.com/t/many-to-many-question/164120)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 4\
**Last updated:** [March 31, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/many-to-many-question/164120 "2009-03-31T18:12:33Z")

</div>

I have a form that has an inline contact creation form to create a contact that will be associated to the form. How do I make it so when the from is submitted I can associate the contact to the form without doing a b…

---

## [Rails 2.3.2 bug? Detecting changed fields](https://www.ruby-forum.com/t/rails-2-3-2-bug-detecting-changed-fields/164379)

<div class="topic-metadata">

**Author:** [@Meech](https://www.ruby-forum.com/u/Meech)\
**Replies:** 3\
**Last updated:** [March 31, 2009, 5:44pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-bug-detecting-changed-fields/164379 "2009-03-31T17:44:58Z")

</div>

I have a text field in the database, lets call it log. If I do something like this: x = MyModel.find(1) x.log \<\< “append some text” x.save Nothing is saved. If I do something like this: x = MyModel.find(1) x.log…

---

## [Job Oppurtunity: Ruby on Rails Developer - London](https://www.ruby-forum.com/t/job-oppurtunity-ruby-on-rails-developer-london/164380)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 31, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/job-oppurtunity-ruby-on-rails-developer-london/164380 "2009-03-31T17:41:27Z")

</div>

I have a job opportunity for “Ruby on Rails Developer”, with our one of my client is based in “London”. If any one is interested, please Email your resume to: removed\_email\_address@domain.invalid

---

## [How can I divide my Page into different Sections?](https://www.ruby-forum.com/t/how-can-i-divide-my-page-into-different-sections/164265)

<div class="topic-metadata">

**Author:** [@pwesner](https://www.ruby-forum.com/u/pwesner)\
**Replies:** 1\
**Last updated:** [March 31, 2009, 5:33pm UTC](https://www.ruby-forum.com/t/how-can-i-divide-my-page-into-different-sections/164265 "2009-03-31T17:33:16Z")

</div>

Hello, I have the following Problem: On my site I’d like to have different sections like Community, Shop, etc to be accessed via domain.tld/ Community/Controller/… Its all in the same app and I am using restful Route…

---

## [Handle Net::FTP connection timeout](https://www.ruby-forum.com/t/handle-net-ftp-connection-timeout/164370)

<div class="topic-metadata">

**Author:** [@brianzimmer](https://www.ruby-forum.com/u/brianzimmer)\
**Replies:** 4\
**Last updated:** [March 31, 2009, 5:18pm UTC](https://www.ruby-forum.com/t/handle-net-ftp-connection-timeout/164370 "2009-03-31T17:18:35Z")

</div>

Hello, This may be more of a Ruby question but I’m using Ruby on Rails so I thought I would post it here. Hopefully someone can provide a suggestion on how to approach this. I have a method that uploads a selection o…

---

## [Routing error in nested resources](https://www.ruby-forum.com/t/routing-error-in-nested-resources/164324)

<div class="topic-metadata">

**Author:** [@neubyr](https://www.ruby-forum.com/u/neubyr)\
**Replies:** 2\
**Last updated:** [March 31, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/routing-error-in-nested-resources/164324 "2009-03-31T17:07:26Z")

</div>

I am using nested resources as follows: map.resources :topics do |topics| topics.resources :items do |items| items.resources :attachments end end When I generate a RESTful path for new item in the console: app.new…

---

## [Developer position available, Nashville TN](https://www.ruby-forum.com/t/developer-position-available-nashville-tn/164371)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 0\
**Last updated:** [March 31, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/developer-position-available-nashville-tn/164371 "2009-03-31T16:43:21Z")

</div>

Nashville, TN The Center for Human Genetics Research at Vanderbilt University Medical Center is looking to hire a new developer. https://www5.recruitingcenter.net/Clients/vanderbiltjobs/PublicJobs/controller.cfm?jbact…

---

## [Accept POST data from external source?](https://www.ruby-forum.com/t/accept-post-data-from-external-source/164309)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 3\
**Last updated:** [March 31, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/accept-post-data-from-external-source/164309 "2009-03-31T16:20:15Z")

</div>

Ok, this is harder than I thought. I’ve got a hunk of XML coming in from an entirely external source that I do not control (but another department in my company does, so it’s not like a giant security hole). I was ho…

---

## [Pariah?](https://www.ruby-forum.com/t/pariah/164285)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 13\
**Last updated:** [March 31, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/pariah/164285 "2009-03-31T16:00:26Z")

</div>

Or just invisible? Or posting issues that are too hard? I’ve posted a handful of interesting/challenging questions the past couple weeks and received nary a reply to any of them. I’m just wondering if I’m being ignore…

---

## [Database Migration error](https://www.ruby-forum.com/t/database-migration-error/164046)

<div class="topic-metadata">

**Author:** [@doelsengupta](https://www.ruby-forum.com/u/doelsengupta)\
**Replies:** 5\
**Last updated:** [March 31, 2009, 3:36pm UTC](https://www.ruby-forum.com/t/database-migration-error/164046 "2009-03-31T15:36:46Z")

</div>

This is my first post to the forum, when I try to run a migration that has a t.column, I get this: rake aborted! undefined method \`column’ for #ActiveRecord::ConnectionAdapters::TableDefinition:0x487c194

---

## [Force Create on scaffold Save](https://www.ruby-forum.com/t/force-create-on-scaffold-save/164363)

<div class="topic-metadata">

**Author:** [@Luciano](https://www.ruby-forum.com/u/Luciano)\
**Replies:** 0\
**Last updated:** [March 31, 2009, 3:05pm UTC](https://www.ruby-forum.com/t/force-create-on-scaffold-save/164363 "2009-03-31T15:05:21Z")

</div>

Hello there, I working on a form, but I would like to save a news version after the edit form, I changed my form\_for to: \<%# form\_for(@quote) do |f| %\> \<% form\_for :quote, :url =\> { :action =\> “create” } do |f| %\> b…

---

## [Not able to see the the controls and database entries](https://www.ruby-forum.com/t/not-able-to-see-the-the-controls-and-database-entries/164356)

<div class="topic-metadata">

**Author:** [@eeeabhi](https://www.ruby-forum.com/u/eeeabhi)\
**Replies:** 3\
**Last updated:** [March 31, 2009, 2:22pm UTC](https://www.ruby-forum.com/t/not-able-to-see-the-the-controls-and-database-entries/164356 "2009-03-31T14:22:39Z")

</div>

Hi am a newbie to RoR. I am starting RoR with Ruby on Rails For Dummies. And i am working on RadRails. I have executed the very first program Company project (with Employee module and Employee Scafold. I am using MYSQ…

---

## [Methode Controleur non prise en compte](https://www.ruby-forum.com/t/methode-controleur-non-prise-en-compte/164346)

<div class="topic-metadata">

**Author:** [@babiben](https://www.ruby-forum.com/u/babiben)\
**Replies:** 1\
**Last updated:** [March 31, 2009, 12:19pm UTC](https://www.ruby-forum.com/t/methode-controleur-non-prise-en-compte/164346 "2009-03-31T12:19:33Z")

</div>

Bonjour, Je voudrais bien comprendre pourquoi si j’ajoute une mÃ©thode traiter dans mon controleur “trucs\_controller” il ne l’a pas prend pas en compte si je l’intÃ¨gre dans un lien. Par exemple, sur ma page index.er…

---

## [How can I change the rails default page?](https://www.ruby-forum.com/t/how-can-i-change-the-rails-default-page/164342)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 3\
**Last updated:** [March 31, 2009, 11:39am UTC](https://www.ruby-forum.com/t/how-can-i-change-the-rails-default-page/164342 "2009-03-31T11:39:27Z")

</div>

I start rails server and the default(http://localhost:3000) page would be Ruby on Rails welcome page. Can I change this page or redirect to a controller?

---

## [Internal mail system : model definition issue](https://www.ruby-forum.com/t/internal-mail-system-model-definition-issue/164344)

<div class="topic-metadata">

**Author:** [@akyrho](https://www.ruby-forum.com/u/akyrho)\
**Replies:** 0\
**Last updated:** [March 31, 2009, 11:09am UTC](https://www.ruby-forum.com/t/internal-mail-system-model-definition-issue/164344 "2009-03-31T11:09:06Z")

</div>

Hi all, I try to implement an internal mail system to my rails app. I found this message \[1\] on another mailing list, but i need it to be a little different. So here’s the case : i got a user table, a message table, …

---

## [How can I let rails working on non-block mode?](https://www.ruby-forum.com/t/how-can-i-let-rails-working-on-non-block-mode/164222)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 10\
**Last updated:** [March 31, 2009, 10:52am UTC](https://www.ruby-forum.com/t/how-can-i-let-rails-working-on-non-block-mode/164222 "2009-03-31T10:52:32Z")

</div>

When I run “ruby script/server” to start rails server, the current shell will be blocked and all the output from rails will be written to the current console. Does rails support a non-block mode and let the output to …

---

## [About AR relationship](https://www.ruby-forum.com/t/about-ar-relationship/164104)

<div class="topic-metadata">

**Author:** [@judge](https://www.ruby-forum.com/u/judge)\
**Replies:** 4\
**Last updated:** [March 31, 2009, 10:47am UTC](https://www.ruby-forum.com/t/about-ar-relationship/164104 "2009-03-31T10:47:50Z")

</div>

Hi, I would like to make a relation using a different way then the classic belongs\_to/has\_many association. Instead of this, I would like to save the foreign key in the parent class as a list of ids. For instance, we…

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

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