# Rails

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

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

---

## [One server with two rails applications](https://www.ruby-forum.com/t/one-server-with-two-rails-applications/115586)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 11\
**Last updated:** [September 28, 2007, 4:35pm UTC](https://www.ruby-forum.com/t/one-server-with-two-rails-applications/115586 "2007-09-28T16:35:31Z")

</div>

Hello all, I have one machine and two ruby applications, app1 and app2. Currently, I have an Apache server and a mongrel server. Apache runs on port 80 and proxies to mongrel on port 3001, which runs app1. But I wi…

---

## [Page cached performance](https://www.ruby-forum.com/t/page-cached-performance/115789)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 3\
**Last updated:** [September 28, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/page-cached-performance/115789 "2007-09-28T16:19:46Z")

</div>

Hello, I added caching for my welcome-page, and i get 31reqs/sec. Is it good enough? How i can speedup page loading? Thanks Processing WelcomeController#index (for 127.0.0.1 at 2007-09-28 16:47:25) \[GET\] Session ID…

---

## [TeX in Ruby on Rails](https://www.ruby-forum.com/t/tex-in-ruby-on-rails/115673)

<div class="topic-metadata">

**Author:** [@snoop1990](https://www.ruby-forum.com/u/snoop1990)\
**Replies:** 2\
**Last updated:** [September 28, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/tex-in-ruby-on-rails/115673 "2007-09-28T15:40:26Z")

</div>

Hello, I’m new to ruby on rails, but I’m looking for a possibility to integrate TeX documents in my blog! I thought it might be possible to convert a TeX document to Xml and then sent the file to the webpage. On the …

---

## [Problem with multiple insert](https://www.ruby-forum.com/t/problem-with-multiple-insert/115781)

<div class="topic-metadata">

**Author:** [@soni\_rajesh](https://www.ruby-forum.com/u/soni_rajesh)\
**Replies:** 0\
**Last updated:** [September 28, 2007, 2:55pm UTC](https://www.ruby-forum.com/t/problem-with-multiple-insert/115781 "2007-09-28T14:55:54Z")

</div>

I have 2 model: Company has\_many :company\_references CompanyReference belongs\_to :companies in create form i have multiple entries for references: i am doing in view like : \<% for j in 0…2 %\> \<%= text\_field "cr\_…

---

## [How to reload fixture instance?](https://www.ruby-forum.com/t/how-to-reload-fixture-instance/115749)

<div class="topic-metadata">

**Author:** [@eric](https://www.ruby-forum.com/u/eric)\
**Replies:** 1\
**Last updated:** [September 28, 2007, 2:52pm UTC](https://www.ruby-forum.com/t/how-to-reload-fixture-instance/115749 "2007-09-28T14:52:24Z")

</div>

In my test case, I have lines that reads something like this: fixtures :orders assert\_equal 0, orders(:eric).amount Order.update\_all\_amounts assert\_equal 30, orders(:eric).amount This wouldn’t work because, apparent…

---

## [Login Engine issue with Ajaxscaffold](https://www.ruby-forum.com/t/login-engine-issue-with-ajaxscaffold/115778)

<div class="topic-metadata">

**Author:** [@scrajesh](https://www.ruby-forum.com/u/scrajesh)\
**Replies:** 1\
**Last updated:** [September 28, 2007, 2:47pm UTC](https://www.ruby-forum.com/t/login-engine-issue-with-ajaxscaffold/115778 "2007-09-28T14:47:08Z")

</div>

In the portal’s admin-section i use ajaxscaffold to manipulate the User list. When create a user and try to login with the same credentials to the portal, the login is not successful. When i tried to find out the reas…

---

## [Controlling attribute mass assignment in the controller](https://www.ruby-forum.com/t/controlling-attribute-mass-assignment-in-the-controller/115753)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 1\
**Last updated:** [September 28, 2007, 12:12pm UTC](https://www.ruby-forum.com/t/controlling-attribute-mass-assignment-in-the-controller/115753 "2007-09-28T12:12:27Z")

</div>

Rails nicely lets me do this in a controller: @user = User.new(params\[:user\]) and provides the attr\_protected (and attr\_accessible) model methods to hide attributes from this sort of the mass assignment. Problem is,…

---

## [Anyone have skill about emacs-rails?](https://www.ruby-forum.com/t/anyone-have-skill-about-emacs-rails/115767)

<div class="topic-metadata">

**Author:** [@ChandleWEi](https://www.ruby-forum.com/u/ChandleWEi)\
**Replies:** 0\
**Last updated:** [September 28, 2007, 11:54am UTC](https://www.ruby-forum.com/t/anyone-have-skill-about-emacs-rails/115767 "2007-09-28T11:54:49Z")

</div>

rails’s freshman require some skill about emacs-rails. how get api help under emacs.I can’t use F1 to get rails api help that key ‘F1’ be used by gnome

---

## [\[ANN\] dike-0.0.2 - a memory leak debugger for rails](https://www.ruby-forum.com/t/ann-dike-0-0-2-a-memory-leak-debugger-for-rails/115754)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 2\
**Last updated:** [September 28, 2007, 11:40am UTC](https://www.ruby-forum.com/t/ann-dike-0-0-2-a-memory-leak-debugger-for-rails/115754 "2007-09-28T11:40:46Z")

</div>

NAME dike SYNOPSIS a simple memory leak detector for ruby with preconfigured rails hooks. INSTALL gem install dike URIS http://www.codeforpeople.com/lib/ruby/ http://rubyforge.org/projects/codeforpeople/ DESCRI…

---

## [2 models -\> 1 model and class with array](https://www.ruby-forum.com/t/2-models-1-model-and-class-with-array/115765)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 0\
**Last updated:** [September 28, 2007, 10:46am UTC](https://www.ruby-forum.com/t/2-models-1-model-and-class-with-array/115765 "2007-09-28T10:46:13Z")

</div>

Hello, I need a solution for my question - i have 2 models, for example person and city. model city will have 3 records every time(for example London, Berlin, Madrid). Actually i used belongs\_to, has\_many between th…

---

## [Overriding Dynamic Scaffolding](https://www.ruby-forum.com/t/overriding-dynamic-scaffolding/115739)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 1\
**Last updated:** [September 28, 2007, 5:29am UTC](https://www.ruby-forum.com/t/overriding-dynamic-scaffolding/115739 "2007-09-28T05:29:24Z")

</div>

All of the documentation that I’ve read relating to the overriding of dynamic scaffolding seems to indicate that the way the override is to be accomplished is to add an appropriate method to the controller class (e.g.…

---

## [Rails doc download](https://www.ruby-forum.com/t/rails-doc-download/115732)

<div class="topic-metadata">

**Author:** [@jalal](https://www.ruby-forum.com/u/jalal)\
**Replies:** 3\
**Last updated:** [September 28, 2007, 3:55am UTC](https://www.ruby-forum.com/t/rails-doc-download/115732 "2007-09-28T03:55:53Z")

</div>

hello everyone, i want to download the rails documentation, is there a version in pdf or chm format available for download? i need a local copy of this doc. thanks in advance.

---

## [Read-only](https://www.ruby-forum.com/t/read-only/115740)

<div class="topic-metadata">

**Author:** [@dureza](https://www.ruby-forum.com/u/dureza)\
**Replies:** 0\
**Last updated:** [September 28, 2007, 3:05am UTC](https://www.ruby-forum.com/t/read-only/115740 "2007-09-28T03:05:40Z")

</div>

hi, good day! got problem in my view/account/login if i change code i cannot save it. The “parent of resource: login.rhtml is marked as read-only” will appear, somebody can help me with this, thanks

---

## [Getting the position of a record within an index](https://www.ruby-forum.com/t/getting-the-position-of-a-record-within-an-index/115722)

<div class="topic-metadata">

**Author:** [@Ben\_Nevile](https://www.ruby-forum.com/u/Ben_Nevile)\
**Replies:** 2\
**Last updated:** [September 28, 2007, 2:37am UTC](https://www.ruby-forum.com/t/getting-the-position-of-a-record-within-an-index/115722 "2007-09-28T02:37:21Z")

</div>

Hi, Let’s say that in my “users” table I have a column called “points” that is indexed. I would like to be able to query the position of any given user within that index. In other words, I want the same data that t…

---

## [Code cleanup](https://www.ruby-forum.com/t/code-cleanup/115735)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 0\
**Last updated:** [September 28, 2007, 2:08am UTC](https://www.ruby-forum.com/t/code-cleanup/115735 "2007-09-28T02:08:35Z")

</div>

I am tossed an error by errormailer every time a new record is saved to my ‘referral\_notes’ model. The record is saved and the problem is simply the informational error message that I am sent but I don’t get this type …

---

## [Best Practice: Document Attachments](https://www.ruby-forum.com/t/best-practice-document-attachments/115706)

<div class="topic-metadata">

**Author:** [@gfook](https://www.ruby-forum.com/u/gfook)\
**Replies:** 1\
**Last updated:** [September 28, 2007, 1:00am UTC](https://www.ruby-forum.com/t/best-practice-document-attachments/115706 "2007-09-28T01:00:30Z")

</div>

Hi all, I’m working on a project for a local charity to track donors, donations, assets, and a few other things. They would like the ability to attach files/documents to all of their records. Do I have to setup data…

---

## [Lost :with Parameter on :observe\_field](https://www.ruby-forum.com/t/lost-with-parameter-on-observe-field/115708)

<div class="topic-metadata">

**Author:** [@christian](https://www.ruby-forum.com/u/christian)\
**Replies:** 1\
**Last updated:** [September 27, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/lost-with-parameter-on-observe-field/115708 "2007-09-27T23:43:39Z")

</div>

I am using an :observe\_field on a series of select elements. It is pretty successful. I think I have found a bug though. When I change the option in a select, the :with parameter is sent, the next element is updated, …

---

## [Validates\_uniqueness\_of and Multiple Columns](https://www.ruby-forum.com/t/validates-uniqueness-of-and-multiple-columns/115715)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 8\
**Last updated:** [September 27, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-and-multiple-columns/115715 "2007-09-27T23:37:47Z")

</div>

Yep, a newbie :wink: I first\_name and last\_name in a table. I’d like to know how I can use validates\_uniqueness\_of to make sure the combination of the two only appears once in my database. Thanks a ton. -Dan

---

## [Form\_remote\_for with collection\_select](https://www.ruby-forum.com/t/form-remote-for-with-collection-select/115725)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 0\
**Last updated:** [September 27, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/form-remote-for-with-collection-select/115725 "2007-09-27T23:37:17Z")

</div>

I am having trouble converting a form from form\_remote\_tag to form\_remote\_for. The text fields on lines 3-5 work fine, but I can’t get the collection\_select on line 2 working (wrong number of arguments error). 1 \<% f…

---

## [How to call a model object method for validation?](https://www.ruby-forum.com/t/how-to-call-a-model-object-method-for-validation/115707)

<div class="topic-metadata">

**Author:** [@datorrey](https://www.ruby-forum.com/u/datorrey)\
**Replies:** 1\
**Last updated:** [September 27, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/how-to-call-a-model-object-method-for-validation/115707 "2007-09-27T23:00:52Z")

</div>

This is the code I’m trying to get to work: validates\_inclusion\_of :status, :in =\> poll\_statuses().keys def poll\_statuses return { “closed” =\> “Closed”, “open” =\> “Open” } end It says there’s no poll\_statuses…

---

## [New to ruby](https://www.ruby-forum.com/t/new-to-ruby/115703)

<div class="topic-metadata">

**Author:** [@nishant](https://www.ruby-forum.com/u/nishant)\
**Replies:** 1\
**Last updated:** [September 27, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/new-to-ruby/115703 "2007-09-27T21:46:00Z")

</div>

Hey everyone, m new to this grp, nd fairly new to this programing world. i wanted to know a lil abt what exactly is ruby?? how a bigginer can go abt learnign it?? what r the easy way to learn for a n00b??? thanx in a…

---

## [Ruby to JRuby guide](https://www.ruby-forum.com/t/ruby-to-jruby-guide/115692)

<div class="topic-metadata">

**Author:** [@Marlon\_M](https://www.ruby-forum.com/u/Marlon_M)\
**Replies:** 1\
**Last updated:** [September 27, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/ruby-to-jruby-guide/115692 "2007-09-27T21:41:52Z")

</div>

Is there something available for developers that will show you how to migrate your rails app to JRuby. I’m referring to stuff like “If you use ImageMagick to resize your images, here’s how to do it with a java compon…

---

## [Storing dynamic data models in a database](https://www.ruby-forum.com/t/storing-dynamic-data-models-in-a-database/115713)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 27, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/storing-dynamic-data-models-in-a-database/115713 "2007-09-27T21:26:36Z")

</div>

I’m not quite sure if that subject is on the money or not but here’s my question. If you want to give the users of your app the ability to dynamically create tables… how do you effectively store that in a database? S…

---

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

<div class="topic-metadata">

**Author:** [@Davi](https://www.ruby-forum.com/u/Davi)\
**Replies:** 2\
**Last updated:** [September 27, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/attachment-fu-default-path/115502 "2007-09-27T20:26:29Z")

</div>

Hi all. I’ve done a little google search, but doesn’t find anything (with “attachment\_fu default path”) that could help me in changing attachment\_fu’s default path. My model: \[audio.rb\] has\_attachment :max\_size …

---

## [MySQL won't start in Instant Rails](https://www.ruby-forum.com/t/mysql-wont-start-in-instant-rails/115381)

<div class="topic-metadata">

**Author:** [@datorrey](https://www.ruby-forum.com/u/datorrey)\
**Replies:** 1\
**Last updated:** [September 27, 2007, 8:20pm UTC](https://www.ruby-forum.com/t/mysql-wont-start-in-instant-rails/115381 "2007-09-27T20:20:18Z")

</div>

I feel a little silly because what could be easier than installing Instant Rails, right? Following the tutorial no less. Nonetheless, when I launch InstantRails, I don’t see the MySQL server starting. I try to right…

---

## [Tinymce on multiple views](https://www.ruby-forum.com/t/tinymce-on-multiple-views/115687)

<div class="topic-metadata">

**Author:** [@bakedbean](https://www.ruby-forum.com/u/bakedbean)\
**Replies:** 1\
**Last updated:** [September 27, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/tinymce-on-multiple-views/115687 "2007-09-27T19:42:58Z")

</div>

Hello, I’m pretty much brand new to ruby and rails. I’ve successfully created a rails project and followed this tutorial: http://developer.apple.com/tools/rubyonrails.html I then wanted to play around with the tinym…

---

## [Making attachment\_fu polymorphic](https://www.ruby-forum.com/t/making-attachment-fu-polymorphic/114870)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 27, 2007, 7:28pm UTC](https://www.ruby-forum.com/t/making-attachment-fu-polymorphic/114870 "2007-09-27T19:28:54Z")

</div>

I am working on a small model mixin called attachment\_kung to make attachment\_fu polymorphic, so you no longer need a different table and Model class for every associated attachment (Productimage, Ad\_doc, etc). All yo…

---

## [Class variables in action controller](https://www.ruby-forum.com/t/class-variables-in-action-controller/115469)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 8\
**Last updated:** [September 27, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/class-variables-in-action-controller/115469 "2007-09-27T19:03:17Z")

</div>

Would someone please help i scrape the data and want to store in the @@job\_list (class variable). However when I try to access the class variable from another action, it refers to another class variable. is there a …

---

## [Using a constant in both unit tests and in fixtures](https://www.ruby-forum.com/t/using-a-constant-in-both-unit-tests-and-in-fixtures/115639)

<div class="topic-metadata">

**Author:** [@creativelogic](https://www.ruby-forum.com/u/creativelogic)\
**Replies:** 1\
**Last updated:** [September 27, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/using-a-constant-in-both-unit-tests-and-in-fixtures/115639 "2007-09-27T19:00:43Z")

</div>

I create a number of users in a database through a fixture. I then run a unit test to verify that the number of users in the database is correct. I want to make this number a constant that is only defined in one pla…

---

## [Production\_log\_analyzer & observer classes](https://www.ruby-forum.com/t/production-log-analyzer-observer-classes/115694)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 0\
**Last updated:** [September 27, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/production-log-analyzer-observer-classes/115694 "2007-09-27T18:29:39Z")

</div>

Hello, I’ve installed production\_log\_analyzer but it throws an exception when I have an observer class activated. It doesn’t matter what the observer class has, this happens even if the observer class is an empty stu…

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

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