# Rails

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

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

---

## [Multiple Inserts](https://www.ruby-forum.com/t/multiple-inserts/108479)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 0\
**Last updated:** [July 3, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/multiple-inserts/108479 "2007-07-03T23:37:42Z")

</div>

Hello, I am trying to optimize my Rails code for database inserts. I often have to insert/update several thousand records after web crawls. Once I have all the data to insert/update, what are some good ways to optimi…

---

## [Broken Tests in ActionPack](https://www.ruby-forum.com/t/broken-tests-in-actionpack/108477)

<div class="topic-metadata">

**Author:** [@nickretallack](https://www.ruby-forum.com/u/nickretallack)\
**Replies:** 0\
**Last updated:** [July 3, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/broken-tests-in-actionpack/108477 "2007-07-03T23:23:40Z")

</div>

The ActionPack tests are borked. Unrelated tests affect each other. For proof, try removing the “unless defined?” clause around Customer in the beginning of actionpack/tests/controllers/render\_test.rb. It is actuall…

---

## [Server-to-Server SSL Connection](https://www.ruby-forum.com/t/server-to-server-ssl-connection/107855)

<div class="topic-metadata">

**Author:** [@ChrisN](https://www.ruby-forum.com/u/ChrisN)\
**Replies:** 2\
**Last updated:** [July 3, 2007, 10:57pm UTC](https://www.ruby-forum.com/t/server-to-server-ssl-connection/107855 "2007-07-03T22:57:38Z")

</div>

Hi everyone, I need to make a server-to-server connection in my rails app to confirm online credit card payments on the fly. When the confirm payment action is run it calls a method in the ‘Order’ model object, the m…

---

## [Monit disable logging](https://www.ruby-forum.com/t/monit-disable-logging/108295)

<div class="topic-metadata">

**Author:** [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Replies:** 2\
**Last updated:** [July 3, 2007, 10:27pm UTC](https://www.ruby-forum.com/t/monit-disable-logging/108295 "2007-07-03T22:27:35Z")

</div>

Hi, I have monit setup to request a page every minute and was wondering what the easiest way to completely disable the logging for this request would be. I run pl\_analyze against my logs and it would be better for th…

---

## [Will there be a release between 1.2.3 and 2.0?](https://www.ruby-forum.com/t/will-there-be-a-release-between-1-2-3-and-2-0/108469)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 0\
**Last updated:** [July 3, 2007, 9:57pm UTC](https://www.ruby-forum.com/t/will-there-be-a-release-between-1-2-3-and-2-0/108469 "2007-07-03T21:57:22Z")

</div>

2.0 doesn’t seem to be coming very soon, and meanwhile there are many fixes and features in edge that would be useful even without all of 2.0’s goodness. Does anyone know if there are plans for a 1.3 (or whatever it w…

---

## [Session in Integration Test](https://www.ruby-forum.com/t/session-in-integration-test/108467)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 0\
**Last updated:** [July 3, 2007, 9:54pm UTC](https://www.ruby-forum.com/t/session-in-integration-test/108467 "2007-07-03T21:54:22Z")

</div>

Can someone tell me why my session is cleared out following a get in my integration test? def test\_session get ‘/’ session\[:foo\] = ‘bar’ assert\_equal ‘bar’, session\[:foo\] # passes get ‘/’ assert\_equal ‘bar’, sessi…

---

## [Changing model name](https://www.ruby-forum.com/t/changing-model-name/108468)

<div class="topic-metadata">

**Author:** [@jacques\_lanfranchi](https://www.ruby-forum.com/u/jacques_lanfranchi)\
**Replies:** 0\
**Last updated:** [July 3, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/changing-model-name/108468 "2007-07-03T21:35:19Z")

</div>

Hi Railers, As a newby I’m cutting my teeth on ROR doing all kind of things. Here’s one: The command: script/generate model create the model and all the Rails files related to this one. Developping the application …

---

## [Nil.each error](https://www.ruby-forum.com/t/nil-each-error/108463)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 4\
**Last updated:** [July 3, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/nil-each-error/108463 "2007-07-03T21:29:23Z")

</div>

When I run the following code in the console I get the following error: s\_date = Date.new(2007,6,3) e\_date = Date.new(2007,7,3) due\_dates = DueDate.find(:all, :conditions =\> \[‘stamp \>= ? and stamp \<= ?’,s\_date.to\_s(:…

---

## [Deleting](https://www.ruby-forum.com/t/deleting/108383)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 4\
**Last updated:** [July 3, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/deleting/108383 "2007-07-03T20:50:11Z")

</div>

I have been try to make a page where a user can add something to a list and then delete something from the same list all without re-loading the page. The adding part is easy, but the deleting part is turning out to be…

---

## [Memory requirements of FCGI process versus mongrel server](https://www.ruby-forum.com/t/memory-requirements-of-fcgi-process-versus-mongrel-server/108437)

<div class="topic-metadata">

**Author:** [@Hasham](https://www.ruby-forum.com/u/Hasham)\
**Replies:** 1\
**Last updated:** [July 3, 2007, 8:02pm UTC](https://www.ruby-forum.com/t/memory-requirements-of-fcgi-process-versus-mongrel-server/108437 "2007-07-03T20:02:05Z")

</div>

I think running multiple fcgi processes require less memory and cpu resources than equal number of mongrel servers, then what is reason of mongrel being platform of choice? And is there any work in progress to make ra…

---

## [RESTful Password Resetting](https://www.ruby-forum.com/t/restful-password-resetting/108461)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 3, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/restful-password-resetting/108461 "2007-07-03T19:35:02Z")

</div>

I’m using the restful\_authentication plugin at the moment, and need to add support for resetting forgotten passwords. There’s plenty of good code snippets here, http://technoweenie.stikipad.com/plugins/show/Password+R…

---

## [Save as document that can open in msword or openoffice](https://www.ruby-forum.com/t/save-as-document-that-can-open-in-msword-or-openoffice/108261)

<div class="topic-metadata">

**Author:** [@Alias](https://www.ruby-forum.com/u/Alias)\
**Replies:** 4\
**Last updated:** [July 3, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/save-as-document-that-can-open-in-msword-or-openoffice/108261 "2007-07-03T18:45:38Z")

</div>

If anyone can help me, i would like a button that converts html view(mostly reports with tables) into a document that can open in msword or openoffice where i can edit it later.

---

## [Finding all "documents" belonging to a "category" using "act](https://www.ruby-forum.com/t/finding-all-documents-belonging-to-a-category-using-act/108446)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 1\
**Last updated:** [July 3, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/finding-all-documents-belonging-to-a-category-using-act/108446 "2007-07-03T18:00:54Z")

</div>

I have a “categories” table built using acts\_as\_tree and a “documents” table that belongs to a specific category. Each category is a child of a “root” category and I’d like to get all of the documents belonging to the…

---

## [Undefined method \`+' for nil:NilClass](https://www.ruby-forum.com/t/undefined-method-for-nil-nilclass/108454)

<div class="topic-metadata">

**Author:** [@scrajesh](https://www.ruby-forum.com/u/scrajesh)\
**Replies:** 2\
**Last updated:** [July 3, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/undefined-method-for-nil-nilclass/108454 "2007-07-03T17:58:17Z")

</div>

I’m trying to send emails in my application. the email function in under the ActionMailer::Base as follows: def xxxxx(aaa, recipient, bbb, burl) @from = aaa.email @recipients = \[ recipient \] @subject …

---

## [Vikrant@linmark.com](https://www.ruby-forum.com/t/vikrant-linmark-com/108452)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 1\
**Last updated:** [July 3, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/vikrant-linmark-com/108452 "2007-07-03T17:38:51Z")

</div>

Either this email has been bouncing to those who post to this list since at least March, or the address got removed, and then added back on. Will an admin here please remove, or better yet, Ban, that email address fro…

---

## [LiveTree problem: non-AR model](https://www.ruby-forum.com/t/livetree-problem-non-ar-model/108372)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 1\
**Last updated:** [July 3, 2007, 5:32pm UTC](https://www.ruby-forum.com/t/livetree-problem-non-ar-model/108372 "2007-07-03T17:32:19Z")

</div>

Hi you all, I’m trying to use LiveTree with a non-AR model. As a trial, I’ve written this model, that may be wrong. It just generates nodes. class Elemento attr\_reader :nombre attr\_reader :id attr\_reader :parent de…

---

## [How can I get the current path which is processed by rails?](https://www.ruby-forum.com/t/how-can-i-get-the-current-path-which-is-processed-by-rails/108408)

<div class="topic-metadata">

**Author:** [@allen](https://www.ruby-forum.com/u/allen)\
**Replies:** 3\
**Last updated:** [July 3, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/how-can-i-get-the-current-path-which-is-processed-by-rails/108408 "2007-07-03T17:24:49Z")

</div>

Hi all, I want something like action\_name in my controller which could store the current path, say /categories/1;edit. Is there any way to get this? Thanks. allen

---

## [Migration: 'unique' column constraint](https://www.ruby-forum.com/t/migration-unique-column-constraint/108450)

<div class="topic-metadata">

**Author:** [@eclubb](https://www.ruby-forum.com/u/eclubb)\
**Replies:** 0\
**Last updated:** [July 3, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/migration-unique-column-constraint/108450 "2007-07-03T17:01:03Z")

</div>

I’m using a legacy sqlite3 database for an app I’m developing. I’m trying to create a migration that creates a table containing a column with a ‘unique’ constraint. Here’s my migration: class CreateEvents \< ActiveRe…

---

## [Undefind local variable error](https://www.ruby-forum.com/t/undefind-local-variable-error/108440)

<div class="topic-metadata">

**Author:** [@jfjfjf](https://www.ruby-forum.com/u/jfjfjf)\
**Replies:** 3\
**Last updated:** [July 3, 2007, 4:47pm UTC](https://www.ruby-forum.com/t/undefind-local-variable-error/108440 "2007-07-03T16:47:20Z")

</div>

I’m getting the following error when I run this line in the console: History.find\_ec\_id(770893) NameError: undefined local variable or method \`target\_history’ for History:Class I have the following methods in my Hist…

---

## [Looking for a Rails partner](https://www.ruby-forum.com/t/looking-for-a-rails-partner/108444)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 3, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/looking-for-a-rails-partner/108444 "2007-07-03T16:37:44Z")

</div>

All, My company is looking for a partner(s) to help build several new and exciting sports oriented web sites. The first site is scheduled to launch in late August with a private beta in early August. The candidate s…

---

## [Not passing placeholder text](https://www.ruby-forum.com/t/not-passing-placeholder-text/108084)

<div class="topic-metadata">

**Author:** [@rubylover](https://www.ruby-forum.com/u/rubylover)\
**Replies:** 2\
**Last updated:** [July 3, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/not-passing-placeholder-text/108084 "2007-07-03T15:50:29Z")

</div>

I have several fields in a form that contain placeholder text prior to the user populating it with their own data. It’s just a mix of javascript onfocus/onblur tags to show/hide the placeholder text. I’m looking fo…

---

## [Guests and Rooms - programming logic question](https://www.ruby-forum.com/t/guests-and-rooms-programming-logic-question/108432)

<div class="topic-metadata">

**Author:** [@jens](https://www.ruby-forum.com/u/jens)\
**Replies:** 0\
**Last updated:** [July 3, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/guests-and-rooms-programming-logic-question/108432 "2007-07-03T14:22:13Z")

</div>

Hi everybody, I am writing the registration and administration backend for a worldwide youth club organisation, which will expect about 12’000 visitors next year on their meeting. For the activities and accommodation…

---

## [How to pass 2 ids](https://www.ruby-forum.com/t/how-to-pass-2-ids/108416)

<div class="topic-metadata">

**Author:** [@mahen1981](https://www.ruby-forum.com/u/mahen1981)\
**Replies:** 7\
**Last updated:** [July 3, 2007, 2:08pm UTC](https://www.ruby-forum.com/t/how-to-pass-2-ids/108416 "2007-07-03T14:08:55Z")

</div>

Hi, I want to pass 2 ids to same controller.How can i do this? I have following code \<%= link\_to “delete”, :action =\> “delete”, :id =\> @met.id %\> I also want to pass project.id to id

---

## [Acts\_as\_authnticated test problems](https://www.ruby-forum.com/t/acts-as-authnticated-test-problems/108428)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [July 3, 2007, 1:13pm UTC](https://www.ruby-forum.com/t/acts-as-authnticated-test-problems/108428 "2007-07-03T13:13:43Z")

</div>

Hi, I have the following functional test in my account\_controller\_test that seems to fall over when it gets to the create method function with the following error message: NoMethodError: undefined method \`create’ for…

---

## [Fixnum Mysql error](https://www.ruby-forum.com/t/fixnum-mysql-error/108427)

<div class="topic-metadata">

**Author:** [@giaco](https://www.ruby-forum.com/u/giaco)\
**Replies:** 0\
**Last updated:** [July 3, 2007, 12:53pm UTC](https://www.ruby-forum.com/t/fixnum-mysql-error/108427 "2007-07-03T12:53:25Z")

</div>

The error is ‘wrong argument type Fixnum (expected Mysql::RowOffset)’ on this line of code: res.row\_seek(0) I get this error on my machine but the other developer doesnt.

---

## [Break Word?](https://www.ruby-forum.com/t/break-word/108415)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 3, 2007, 9:54am UTC](https://www.ruby-forum.com/t/break-word/108415 "2007-07-03T09:54:24Z")

</div>

On my app I allow users to post comments. I’m afraid some user might post something like this: “whateveeeeeeeeeeee…eeeeeeer” This will stretch my page and mess up my entire layout. Rails’ break\_word helper doesn’t wo…

---

## [Geat URL check this out](https://www.ruby-forum.com/t/geat-url-check-this-out/108418)

<div class="topic-metadata">

**Author:** [@erwinc](https://www.ruby-forum.com/u/erwinc)\
**Replies:** 0\
**Last updated:** [July 3, 2007, 9:45am UTC](https://www.ruby-forum.com/t/geat-url-check-this-out/108418 "2007-07-03T09:45:27Z")

</div>

check out this sites my friends. . . http://www.freewebs.com/netcrawl

---

## [HOW TO: Easily output alternating item styles via metaprogra](https://www.ruby-forum.com/t/how-to-easily-output-alternating-item-styles-via-metaprogra/108409)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 5\
**Last updated:** [July 3, 2007, 9:33am UTC](https://www.ruby-forum.com/t/how-to-easily-output-alternating-item-styles-via-metaprogra/108409 "2007-07-03T09:33:22Z")

</div>

I always need to apply alternating item styles when outputting a collection, here’s what I’ve been using recently. In the app helper I define this method: def alternate(items,alt=false items.map{|i| i.class}.each { …

---

## [How to call a fuction on onclick event](https://www.ruby-forum.com/t/how-to-call-a-fuction-on-onclick-event/108413)

<div class="topic-metadata">

**Author:** [@chryste](https://www.ruby-forum.com/u/chryste)\
**Replies:** 2\
**Last updated:** [July 3, 2007, 9:32am UTC](https://www.ruby-forum.com/t/how-to-call-a-fuction-on-onclick-event/108413 "2007-07-03T09:32:54Z")

</div>

Hi all, I’m using a set of radio buttons, which when selected will transfer the control to a javascript function. But the issue is that the javascript function isn’t triggered. Is there any error in my code? Given be…

---

## [Auto\_complete\_field works for all BUT Opera](https://www.ruby-forum.com/t/auto-complete-field-works-for-all-but-opera/108412)

<div class="topic-metadata">

**Author:** [@Digimage](https://www.ruby-forum.com/u/Digimage)\
**Replies:** 0\
**Last updated:** [July 3, 2007, 9:11am UTC](https://www.ruby-forum.com/t/auto-complete-field-works-for-all-but-opera/108412 "2007-07-03T09:11:19Z")

</div>

The following code works fine for all browser except Opera… Opera does not update the textfield selection when I select one of the item from the pop-up list and press “Enter”… Is there any way I could force the broswe…

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

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