# Rails

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

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

---

## [Mock/Stub out ActiveMerchant?](https://www.ruby-forum.com/t/mock-stub-out-activemerchant/91714)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 5\
**Last updated:** [April 11, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/mock-stub-out-activemerchant/91714 "2007-04-11T21:55:41Z")

</div>

I’m trying to write some unit tests for a class of mine that uses ActiveMerchant (AM) to talk to Authorize.net (A.net). For the tests though, I don’t want AM to actually talk to A.net. Partly because it slows the te…

---

## [How To: Special Date Formats](https://www.ruby-forum.com/t/how-to-special-date-formats/91590)

<div class="topic-metadata">

**Author:** [@d6veteran](https://www.ruby-forum.com/u/d6veteran)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/how-to-special-date-formats/91590 "2007-04-11T21:32:39Z")

</div>

I can’t find how to format dates in Rails. For example I want to display a datetime as: “Tuesday, April 10th, 2007” The closest I’ve been able to get is something like: foo.created\_at.to\_s(:short) Is there a way to …

---

## [Finding and defeating a stale object](https://www.ruby-forum.com/t/finding-and-defeating-a-stale-object/91719)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/finding-and-defeating-a-stale-object/91719 "2007-04-11T20:57:36Z")

</div>

Hello, After a rather major update to our site, suddenly we are getting a large of “Attempted to update a stale object” errors. I am quite new to rails and I understand the concept of optimistic locking but I don’…

---

## [Count in a date field](https://www.ruby-forum.com/t/count-in-a-date-field/91715)

<div class="topic-metadata">

**Author:** [@marcoscunhalima](https://www.ruby-forum.com/u/marcoscunhalima)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/count-in-a-date-field/91715 "2007-04-11T20:39:51Z")

</div>

Hi all We have a table that has a datetime field (created\_at) that we have to summarize based on it. For instance, we have to count all posts grouped by created\_at field. Our first approach is: self.count(:all, :co…

---

## [Localized active record errors](https://www.ruby-forum.com/t/localized-active-record-errors/91711)

<div class="topic-metadata">

**Author:** [@danny](https://www.ruby-forum.com/u/danny)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/localized-active-record-errors/91711 "2007-04-11T20:35:17Z")

</div>

Hello people, I was wondering how to make the errors that an active record model throws during form validation apear in dutch. the message is easily adaptable, but the subject of the error still shows up in english. t…

---

## [Follow-Up: Receiving Inbound Email and Creating Data in Rail](https://www.ruby-forum.com/t/follow-up-receiving-inbound-email-and-creating-data-in-rail/91329)

<div class="topic-metadata">

**Author:** [@nathandelane](https://www.ruby-forum.com/u/nathandelane)\
**Replies:** 4\
**Last updated:** [April 11, 2007, 8:34pm UTC](https://www.ruby-forum.com/t/follow-up-receiving-inbound-email-and-creating-data-in-rail/91329 "2007-04-11T20:34:00Z")

</div>

I just wanted to post back to the group with my potential solution for receiving inbound email and creating data in my Rails application, including attached images. Hope this will be helpful for others. Of course, …

---

## [Mongrel Cluster/Apache 2.2 OR FastCGI/Apache 1.3?](https://www.ruby-forum.com/t/mongrel-cluster-apache-2-2-or-fastcgi-apache-1-3/91611)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 8:09pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-apache-2-2-or-fastcgi-apache-1-3/91611 "2007-04-11T20:09:29Z")

</div>

Hi, Can someone tell me the main differences between using a cluster of mongrel instances with Apache 2/load balancing and just using straight up fastCGI with Apache 1.3? I’ve got the mongrel setup now, but the live …

---

## [\[Correction\] \[ANN\] Milwaukee RUG Meeting on Wednesday 4/18 @](https://www.ruby-forum.com/t/correction-ann-milwaukee-rug-meeting-on-wednesday-4-18/91710)

<div class="topic-metadata">

**Author:** [@tomjerry](https://www.ruby-forum.com/u/tomjerry)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 7:54pm UTC](https://www.ruby-forum.com/t/correction-ann-milwaukee-rug-meeting-on-wednesday-4-18/91710 "2007-04-11T19:54:28Z")

</div>

Due to weather conditions, the meeting has been postponed until next week. Thanks, – Tom. On 4/11/07, Tom J. removed\_email\_address@domain.invalid wrote: The agenda will include a discussion of some live projects at…

---

## [\[ANN\] Milwaukee RUG Meeting tonight @ 5:30](https://www.ruby-forum.com/t/ann-milwaukee-rug-meeting-tonight-5-30/91708)

<div class="topic-metadata">

**Author:** [@tomjerry](https://www.ruby-forum.com/u/tomjerry)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 7:48pm UTC](https://www.ruby-forum.com/t/ann-milwaukee-rug-meeting-tonight-5-30/91708 "2007-04-11T19:48:28Z")

</div>

Map =\> Stark Investments Development Center - Google My Maps \<from\_roland\> The Wednesday Milwaukee Ruby U. Group Meeting will be at Stark Investment’s Development Center located on the 11th floor of the 1000 N. Water…

---

## [Getting auto-generated id without calling save](https://www.ruby-forum.com/t/getting-auto-generated-id-without-calling-save/91689)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 1\
**Last updated:** [April 11, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/getting-auto-generated-id-without-calling-save/91689 "2007-04-11T19:26:16Z")

</div>

Hi, I have a bunch of models that are all related to each other through various has\_one, has\_many, belongs\_to relationships. I am trying to create a set of these related objects when parsing through an XML file, but…

---

## [Ruby Module in ROR](https://www.ruby-forum.com/t/ruby-module-in-ror/91704)

<div class="topic-metadata">

**Author:** [@rama](https://www.ruby-forum.com/u/rama)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/ruby-module-in-ror/91704 "2007-04-11T19:23:35Z")

</div>

in Ruby module “D3” i have defined : def dumpAttributes(strPrefix = “”) @attributes.each\_pair do | key, value | puts “#{strPrefix}#{key} : #{value}” end end and in my Controller when i use : @mdb.dumpAttributes("==\>…

---

## [Easiest way to order similar items in results/ActiveRecord](https://www.ruby-forum.com/t/easiest-way-to-order-similar-items-in-results-activerecord/91702)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/easiest-way-to-order-similar-items-in-results-activerecord/91702 "2007-04-11T18:59:22Z")

</div>

Hopefully this will be as easy to achieve as most other things in rails… How could I order a resultset so that the following order would occur: Quickstart guid to Ruby on Rails Ruby on Rails Cookbook The Ruby on Rai…

---

## [Does Ruby 1.8.6 fix the Breakpointer problem?](https://www.ruby-forum.com/t/does-ruby-1-8-6-fix-the-breakpointer-problem/91700)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 1\
**Last updated:** [April 11, 2007, 6:26pm UTC](https://www.ruby-forum.com/t/does-ruby-1-8-6-fix-the-breakpointer-problem/91700 "2007-04-11T18:26:53Z")

</div>

Hello, Does anyone here know if Ruby 1.8.6 fixes the “BreakPointer” problem in Rails? The reason I ask is that I have been working with Curt Hibb’s InstantRails in Window (at last I have found a usable Rails system o…

---

## [Dynamic models](https://www.ruby-forum.com/t/dynamic-models/91603)

<div class="topic-metadata">

**Author:** [@linoj](https://www.ruby-forum.com/u/linoj)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/dynamic-models/91603 "2007-04-11T18:16:20Z")

</div>

Anyone know of a plugin that lets you create dynamic models? eg an app with multiple projects and each project manager can add their own fields to the project profile

---

## [Attachment\_fu cropping](https://www.ruby-forum.com/t/attachment-fu-cropping/91558)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [April 11, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/attachment-fu-cropping/91558 "2007-04-11T17:42:17Z")

</div>

attachment\_fu doesn’t have cropping, I’m trying to bake some in using ImageScience. Firstly this requires the enabling of the ‘!’ modifier in the geometry.rb file. However in the to\_s method I don’t think it’s passin…

---

## [Script to reorder your migrations](https://www.ruby-forum.com/t/script-to-reorder-your-migrations/91696)

<div class="topic-metadata">

**Author:** [@elliterate](https://www.ruby-forum.com/u/elliterate)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/script-to-reorder-your-migrations/91696 "2007-04-11T17:38:16Z")

</div>

Hi, This is a little script to rename your migrations should you ever need to delete one in the middle of your bunch. e.g: $ ls 001\_foo.rb 002\_bar.rb 003\_baz.rb $ rm 002\_bar.rb $ ruby migration-reorder.rb . …

---

## [What's the best way to learn how to program](https://www.ruby-forum.com/t/whats-the-best-way-to-learn-how-to-program/91641)

<div class="topic-metadata">

**Author:** [@zak](https://www.ruby-forum.com/u/zak)\
**Replies:** 3\
**Last updated:** [April 11, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-learn-how-to-program/91641 "2007-04-11T17:33:01Z")

</div>

I want to learn how to write computer programs and have started with watching lynda.com videos and going through a couple SitePoint books. I told a friend of mine the other day that it feels like I am just learning ho…

---

## [Ferret](https://www.ruby-forum.com/t/ferret/91695)

<div class="topic-metadata">

**Author:** [@alexmic](https://www.ruby-forum.com/u/alexmic)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 5:23pm UTC](https://www.ruby-forum.com/t/ferret/91695 "2007-04-11T17:23:20Z")

</div>

Hi, can someone give me a basic guide or any links to install the ferret plugin. Ive searched the forum but stil having problems. Im currently looking at this: http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutoria…

---

## [Search field bug](https://www.ruby-forum.com/t/search-field-bug/91692)

<div class="topic-metadata">

**Author:** [@arthurfruchtman](https://www.ruby-forum.com/u/arthurfruchtman)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 5:15pm UTC](https://www.ruby-forum.com/t/search-field-bug/91692 "2007-04-11T17:15:27Z")

</div>

I have a search field in my application. As I type into it, it shows all available entries. But when I delete what I typed, instead of showing all entries, it shows nothing. How can I fix this?

---

## [How to get the content of text\_area in controller?](https://www.ruby-forum.com/t/how-to-get-the-content-of-text-area-in-controller/91461)

<div class="topic-metadata">

**Author:** [@feng](https://www.ruby-forum.com/u/feng)\
**Replies:** 3\
**Last updated:** [April 11, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/how-to-get-the-content-of-text-area-in-controller/91461 "2007-04-11T17:07:51Z")

</div>

hi all, i have a text\_area \<%= text\_area :myarea, :rows =\> 20, :cols =\> 40 %\> and want to get it’s content when submit due to form\_remote\_tag. how can i get it’s content where user input ? i tried @context = para…

---

## [How to get around observe\_field 'template missing' error?](https://www.ruby-forum.com/t/how-to-get-around-observe-field-template-missing-error/91496)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 3\
**Last updated:** [April 11, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/how-to-get-around-observe-field-template-missing-error/91496 "2007-04-11T16:45:08Z")

</div>

When my params for my observe\_field are empty or 0 I get the ‘template missing’ error. I’m trying to emulate the ‘user name is valid/not valid’ feature that many apps have when signing up. As long as the params is gre…

---

## [RMagick: unable to open image \`big-duck.gif': No such file](https://www.ruby-forum.com/t/rmagick-unable-to-open-image-big-duck-gif-no-such-file/91686)

<div class="topic-metadata">

**Author:** [@jazzybuddy](https://www.ruby-forum.com/u/jazzybuddy)\
**Replies:** 1\
**Last updated:** [April 11, 2007, 3:55pm UTC](https://www.ruby-forum.com/t/rmagick-unable-to-open-image-big-duck-gif-no-such-file/91686 "2007-04-11T15:55:02Z")

</div>

Hai, This is the first time I am trying RMagick. I have a little problem when trying to create a small and simple application involving RMagick. I have installed RMagick and also ImageMagick. The RMagick I have inst…

---

## [Problem con :include with pagination in Site5](https://www.ruby-forum.com/t/problem-con-include-with-pagination-in-site5/91473)

<div class="topic-metadata">

**Author:** [@infelix](https://www.ruby-forum.com/u/infelix)\
**Replies:** 3\
**Last updated:** [April 11, 2007, 3:18pm UTC](https://www.ruby-forum.com/t/problem-con-include-with-pagination-in-site5/91473 "2007-04-11T15:18:57Z")

</div>

In the deployment of my Ruby app in Site5 hosting, I found that all the calls to the paginate function that have the :nclude option produce an error For example: @episode\_pages, @episodes = paginate :pod\_updates, :or…

---

## [Observers, environment.rb and application.rb](https://www.ruby-forum.com/t/observers-environment-rb-and-application-rb/91670)

<div class="topic-metadata">

**Author:** [@jotape](https://www.ruby-forum.com/u/jotape)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/observers-environment-rb-and-application-rb/91670 "2007-04-11T15:11:38Z")

</div>

Hi. I’m running some tests with Observers and I’m having trouble making them work. I’ve tried to follow the code that’s on the API, but that does not work. I’ve name my Observer after a model, as said, and added it i…

---

## [Sending the values of Date\_select form field through Post](https://www.ruby-forum.com/t/sending-the-values-of-date-select-form-field-through-post/69986)

<div class="topic-metadata">

**Author:** [@Lakshan\_Perera](https://www.ruby-forum.com/u/Lakshan_Perera)\
**Replies:** 3\
**Last updated:** [April 11, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/sending-the-values-of-date-select-form-field-through-post/69986 "2007-04-11T15:00:54Z")

</div>

I’ve got a form which only consists of two Date\_select elements, which sends two date values to a action in same controller to retrive some data. This works fine when I test in my local machine with web brick server. …

---

## [Newbee can not install rails](https://www.ruby-forum.com/t/newbee-can-not-install-rails/91663)

<div class="topic-metadata">

**Author:** [@yusufcelik](https://www.ruby-forum.com/u/yusufcelik)\
**Replies:** 8\
**Last updated:** [April 11, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/newbee-can-not-install-rails/91663 "2007-04-11T14:36:24Z")

</div>

Hi, When I try to install rails with the following command I get the following error. c:\\ruby\>gem install rails --include-dependencies ERROR: While executing gem … (RuntimeError) Error instaling rails: rails requi…

---

## [How do I define a multi-layer aggregation structure?](https://www.ruby-forum.com/t/how-do-i-define-a-multi-layer-aggregation-structure/91676)

<div class="topic-metadata">

**Author:** [@allen](https://www.ruby-forum.com/u/allen)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 2:03pm UTC](https://www.ruby-forum.com/t/how-do-i-define-a-multi-layer-aggregation-structure/91676 "2007-04-11T14:03:47Z")

</div>

Hi all, I’ve posted this question before. Someone told me to see the RDoc of ActiveRecord::Associations::ClassMethods, but I cannot find any related information about multi-layer aggregation in this document. This is…

---

## [Double array](https://www.ruby-forum.com/t/double-array/91658)

<div class="topic-metadata">

**Author:** [@kickflip](https://www.ruby-forum.com/u/kickflip)\
**Replies:** 1\
**Last updated:** [April 11, 2007, 1:40pm UTC](https://www.ruby-forum.com/t/double-array/91658 "2007-04-11T13:40:43Z")

</div>

Hi, I have an ASCII file that looks like: 1 0 3 0 4 4 3 2 9 8 3 0 9 9 7 I am able to store each whole line as an seperate array. But I cannot find out how I can get the input of that file and store it into a double …

---

## [Open Browser Window help](https://www.ruby-forum.com/t/open-browser-window-help/91647)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 1:03pm UTC](https://www.ruby-forum.com/t/open-browser-window-help/91647 "2007-04-11T13:03:40Z")

</div>

When I previously designed my static sites in dreamweaver, I used an Open Browser Window behavior which opened a URL in a new window of fixed size by inserting the following: \<a href=“javascript:;” onclick="MM\_openBr…

---

## [Two databases in testing](https://www.ruby-forum.com/t/two-databases-in-testing/91460)

<div class="topic-metadata">

**Author:** [@Karni](https://www.ruby-forum.com/u/Karni)\
**Replies:** 3\
**Last updated:** [April 11, 2007, 12:32pm UTC](https://www.ruby-forum.com/t/two-databases-in-testing/91460 "2007-04-11T12:32:38Z")

</div>

Hi Friends, I am usiing the two databases in my project. But when i am writing the test cases,I am unable to specify the two databses,. Can u give advice ,How can i specify the two databases in testing. I hope i wil…

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

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