# Rails

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

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

---

## [Of spam](https://www.ruby-forum.com/t/of-spam/112858)

<div class="topic-metadata">

**Author:** [@Faisal\_N\_Jawdat](https://www.ruby-forum.com/u/Faisal_N_Jawdat)\
**Replies:** 2\
**Last updated:** [August 23, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/of-spam/112858 "2007-08-23T23:10:04Z")

</div>

After talking with DHH I will be attempting to help weed out the spam. In practice this means I’ll be able to to remove spam messages from the web archive, and to remove spammers from the list. Due to an unfortunate…

---

## [Active scaffold polymorphic model](https://www.ruby-forum.com/t/active-scaffold-polymorphic-model/112851)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 0\
**Last updated:** [August 23, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/active-scaffold-polymorphic-model/112851 "2007-08-23T21:34:51Z")

</div>

Hi I am trying to use active scaffold to build a polymorphic model . I have a number of models that can be featured and I have a Feature model that belongs\_to :item, :polymorphic =\> true In my config.columns I inclu…

---

## [Building associations](https://www.ruby-forum.com/t/building-associations/112752)

<div class="topic-metadata">

**Author:** [@Wiliam\_Langshaw](https://www.ruby-forum.com/u/Wiliam_Langshaw)\
**Replies:** 3\
**Last updated:** [August 23, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/building-associations/112752 "2007-08-23T21:21:50Z")

</div>

I have a model with has\_many (not :through) and am adding members to it like this: class Panda \< AR::Base has\_many :baby\_bears, :after\_add =\> :increment\_baby\_count def do\_it self.baby\_bears \<\< BabyBear.create({:name…

---

## [Unique domain name routing](https://www.ruby-forum.com/t/unique-domain-name-routing/112849)

<div class="topic-metadata">

**Author:** [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Replies:** 0\
**Last updated:** [August 23, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/unique-domain-name-routing/112849 "2007-08-23T21:04:17Z")

</div>

I am setting up a direct mail service with ruby on rails and have a question before I get going. I apologize, as I am new to this glorious framework. What I need: I am setting up a direct mail campaign, using variabl…

---

## [Production version skips validation](https://www.ruby-forum.com/t/production-version-skips-validation/112845)

<div class="topic-metadata">

**Author:** [@jen](https://www.ruby-forum.com/u/jen)\
**Replies:** 0\
**Last updated:** [August 23, 2007, 8:38pm UTC](https://www.ruby-forum.com/t/production-version-skips-validation/112845 "2007-08-23T20:38:42Z")

</div>

I’m trying to validate\_presence\_of a hidden\_field, which works fine on my machine, but when I upload it to the production server (Apache front-end running WEBrick behind) it skips validation every time. The form fiel…

---

## [How can I set controller-wide layout and template?](https://www.ruby-forum.com/t/how-can-i-set-controller-wide-layout-and-template/112764)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 2\
**Last updated:** [August 23, 2007, 8:36pm UTC](https://www.ruby-forum.com/t/how-can-i-set-controller-wide-layout-and-template/112764 "2007-08-23T20:36:09Z")

</div>

Hi, When you want to change the default layout and template, you can do the following. render :layout =\> “some\_controller/my\_layout” :template =\> “my\_template” I’m in a situation where I need to change the layout and…

---

## [Samples of full ROR applications](https://www.ruby-forum.com/t/samples-of-full-ror-applications/112773)

<div class="topic-metadata">

**Author:** [@sunny\_beach](https://www.ruby-forum.com/u/sunny_beach)\
**Replies:** 3\
**Last updated:** [August 23, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/samples-of-full-ror-applications/112773 "2007-08-23T20:23:32Z")

</div>

I was wondering if there are any sites/resources out there with full ROR apps that I could download and look through. I still have a lot to learn and find that looking through other “creations” is helpful. Thanks, S…

---

## [TOTAL noobie](https://www.ruby-forum.com/t/total-noobie/112833)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 3\
**Last updated:** [August 23, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/total-noobie/112833 "2007-08-23T20:10:30Z")

</div>

If I were wanting to pursue a career in programming using Ruby on Rails, could someone take a minute and jot down a few suggestions for HOW a non-programmer might most successfully begin in this language/environment? …

---

## [Multiple views for the same action?](https://www.ruby-forum.com/t/multiple-views-for-the-same-action/112826)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 23, 2007, 8:09pm UTC](https://www.ruby-forum.com/t/multiple-views-for-the-same-action/112826 "2007-08-23T20:09:30Z")

</div>

I expect those that have taken the time to read this crazy title think, ! Whoa ! what terrible newbie question is this?? I am writing a generic inventory application that handles a WIDE variety of inventory items whos…

---

## [Redirect\_to from component](https://www.ruby-forum.com/t/redirect-to-from-component/112838)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 0\
**Last updated:** [August 23, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/redirect-to-from-component/112838 "2007-08-23T18:59:14Z")

</div>

I am trying to redirect to one of my main controllers from a component. I am using use\_component\_template\_root inside the component so any redirects use the component as the root. Is there a way to redirect out of c…

---

## [How to execute custom javascript code inside an rjs template](https://www.ruby-forum.com/t/how-to-execute-custom-javascript-code-inside-an-rjs-template/112822)

<div class="topic-metadata">

**Author:** [@Marko\_Vuksanovic](https://www.ruby-forum.com/u/Marko_Vuksanovic)\
**Replies:** 1\
**Last updated:** [August 23, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/how-to-execute-custom-javascript-code-inside-an-rjs-template/112822 "2007-08-23T18:13:05Z")

</div>

I’d like to execute a piece of javascript code, for example funcion f1() { alert(‘test’); } in an rjs template “page\[:ticket\_being\_deleted\].visual\_effect :fade” I know this executes some javascript, but is there a …

---

## [Prettier code in views for chained values?](https://www.ruby-forum.com/t/prettier-code-in-views-for-chained-values/112830)

<div class="topic-metadata">

**Author:** [@Mario\_TSL](https://www.ruby-forum.com/u/Mario_TSL)\
**Replies:** 3\
**Last updated:** [August 23, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/prettier-code-in-views-for-chained-values/112830 "2007-08-23T18:00:43Z")

</div>

Sometimes in a view I have written wretchedly, ugly code like this: \<%= @person.company.address.city if @person and @person.company and @person.company.address and @person.company.address.city %\> I’m calling this a ch…

---

## [Date from params (another solution)](https://www.ruby-forum.com/t/date-from-params-another-solution/112824)

<div class="topic-metadata">

**Author:** [@Tom\_Nurkkala](https://www.ruby-forum.com/u/Tom_Nurkkala)\
**Replies:** 0\
**Last updated:** [August 23, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/date-from-params-another-solution/112824 "2007-08-23T16:41:51Z")

</div>

There have been several postings about how to extract a :date out of the params hash, none of which seem to make use of Rails own functionality. When a model includes a :date field, the params list coming back from a…

---

## [\[OT\] Virtualization mailing list](https://www.ruby-forum.com/t/ot-virtualization-mailing-list/112821)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 0\
**Last updated:** [August 23, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/ot-virtualization-mailing-list/112821 "2007-08-23T16:29:50Z")

</div>

Hello, Does anyone know of a good mailing list of forum for discussing Virtualization technologies (such as VMWare, Vrituozzo, etc) and its uses? Thanks, Marcelo.

---

## [Data from params (another solution)](https://www.ruby-forum.com/t/data-from-params-another-solution/112820)

<div class="topic-metadata">

**Author:** [@Tom\_Nurkkala](https://www.ruby-forum.com/u/Tom_Nurkkala)\
**Replies:** 0\
**Last updated:** [August 23, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/data-from-params-another-solution/112820 "2007-08-23T16:28:50Z")

</div>

There have been several postings about how to extract a :date out of the params hash, none of which seem to make use of Rails own functionality. When a model includes a :date field, the params list coming back from a…

---

## [Setup problem](https://www.ruby-forum.com/t/setup-problem/94050)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 7\
**Last updated:** [August 23, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/setup-problem/94050 "2007-08-23T16:26:08Z")

</div>

I am trying to set up rails and am have problems. I have googled everything I could think of, but have not found my problem. Here are my specs. Gentoo Linux 2006.0 Apache 2.2 Ruby 1.8.4 Gems 1.8 Rails 1.1.2 mod…

---

## [Medication Lists and doses](https://www.ruby-forum.com/t/medication-lists-and-doses/112819)

<div class="topic-metadata">

**Author:** [@Tim.Graham](https://www.ruby-forum.com/u/Tim.Graham)\
**Replies:** 0\
**Last updated:** [August 23, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/medication-lists-and-doses/112819 "2007-08-23T16:13:48Z")

</div>

Hi, I am generally a newbie at rails, I come from a medical background. We are building an application that generates dynamic forms for ordering various tests in a medical application. We want to have the ability to …

---

## [Need help trying to debug - included screenshot](https://www.ruby-forum.com/t/need-help-trying-to-debug-included-screenshot/112814)

<div class="topic-metadata">

**Author:** [@bradkenyon](https://www.ruby-forum.com/u/bradkenyon)\
**Replies:** 2\
**Last updated:** [August 23, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/need-help-trying-to-debug-included-screenshot/112814 "2007-08-23T16:12:49Z")

</div>

I have attached a screen shot of the error I am running into. I am on page 138 of the Agile Web D. with Rails book by Pragmatic Programmers. I am developing the depot store, and I ran into an error, with hidden\_div\_i…

---

## [Dragging to a scrollable region](https://www.ruby-forum.com/t/dragging-to-a-scrollable-region/112792)

<div class="topic-metadata">

**Author:** [@lee](https://www.ruby-forum.com/u/lee)\
**Replies:** 1\
**Last updated:** [August 23, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/dragging-to-a-scrollable-region/112792 "2007-08-23T15:34:40Z")

</div>

I have a div which contains a list of elements. Each element can receive other draggable elements. The div is scrollable to accomodate longer lists as I want a footer below the div to remain visible at all times. Whe…

---

## [In\_place\_edit\_field help](https://www.ruby-forum.com/t/in-place-edit-field-help/196443)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 6\
**Last updated:** [August 23, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/in-place-edit-field-help/196443 "2007-08-23T15:29:38Z")

</div>

Hello, i got this: site\_controller Menu.content\_columns.each do |column| in\_place\_edit\_for :menu, column.name end :menu, is a model with the sections names and contents In my view i have: \<%= in\_place\_editor\_field…

---

## [Advanced rest interface tips](https://www.ruby-forum.com/t/advanced-rest-interface-tips/112761)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 2\
**Last updated:** [August 23, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/advanced-rest-interface-tips/112761 "2007-08-23T15:20:38Z")

</div>

All the tutorials I see on doing a rest interface with rails only show how to do it with resources 1 level deep, i.e., they don’t show a good way to go about doing a rest interface for nested type rest interfaces. For…

---

## [Getting ip adres](https://www.ruby-forum.com/t/getting-ip-adres/112809)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 1\
**Last updated:** [August 23, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/getting-ip-adres/112809 "2007-08-23T14:22:31Z")

</div>

How can i get the ip adress from a user ? TANKS! Robert

---

## [Form Helpers](https://www.ruby-forum.com/t/form-helpers/112804)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 2\
**Last updated:** [August 23, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/form-helpers/112804 "2007-08-23T13:47:37Z")

</div>

Hi everyone! I’m using the advice in ‘Agile Web D. With Rails’ and creating a FormBuilder sub-class to handle the formatting of elements in my standard forms. Hence, I have the following view: \[code\]\<%= error\_message…

---

## [How do I install RoR](https://www.ruby-forum.com/t/how-do-i-install-ror/112765)

<div class="topic-metadata">

**Author:** [@RoxyNelson](https://www.ruby-forum.com/u/RoxyNelson)\
**Replies:** 4\
**Last updated:** [August 23, 2007, 1:44pm UTC](https://www.ruby-forum.com/t/how-do-i-install-ror/112765 "2007-08-23T13:44:24Z")

</div>

OK, I’ve heard how easy RoR is and how quick it is to develop with … but why is it so obscure to find what it is I need to download to install it? I can’t follow what I need to do from this initial message: Source: C…

---

## [Paginating several objects](https://www.ruby-forum.com/t/paginating-several-objects/112801)

<div class="topic-metadata">

**Author:** [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Replies:** 2\
**Last updated:** [August 23, 2007, 12:39pm UTC](https://www.ruby-forum.com/t/paginating-several-objects/112801 "2007-08-23T12:39:15Z")

</div>

Hello, I am trying to paginate several objects into 1 set of pages. I have 2 classes topics and polls. I want to get all the topics and polls as one collection and have pages for both of them combined. Is this possib…

---

## [Strange unexplainable error](https://www.ruby-forum.com/t/strange-unexplainable-error/112795)

<div class="topic-metadata">

**Author:** [@martinos](https://www.ruby-forum.com/u/martinos)\
**Replies:** 1\
**Last updated:** [August 23, 2007, 11:43am UTC](https://www.ruby-forum.com/t/strange-unexplainable-error/112795 "2007-08-23T11:43:06Z")

</div>

In one of my Controllers I stumbled upon a really strange error. On render :action =\> :create I get this error message: NoMethodError in Admin/machines/baseController#save undefined method \`to\_str’ for \[:action, :crea…

---

## [Help with account location plugin](https://www.ruby-forum.com/t/help-with-account-location-plugin/112793)

<div class="topic-metadata">

**Author:** [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Replies:** 1\
**Last updated:** [August 23, 2007, 11:09am UTC](https://www.ruby-forum.com/t/help-with-account-location-plugin/112793 "2007-08-23T11:09:00Z")

</div>

Hi All, I’m using the account\_location plugin and have got it setup OK so that when I view the index action in my controller, the objects displayed are those restricted to that account (done by an account\_id attribute …

---

## [Euro sign in Select box](https://www.ruby-forum.com/t/euro-sign-in-select-box/112791)

<div class="topic-metadata">

**Author:** [@stalkert](https://www.ruby-forum.com/u/stalkert)\
**Replies:** 5\
**Last updated:** [August 23, 2007, 10:59am UTC](https://www.ruby-forum.com/t/euro-sign-in-select-box/112791 "2007-08-23T10:59:34Z")

</div>

For hours I tried to get an Euro sign in my selectbox. Anyone have an idea how I can do this. I try: \<%= select(“prijs”, “prijs”, \['â‚¬12.500,‘12500’\], \[‘â‚¬25.000’,‘25000’\]\], :selected =\> session\[:zoek\_prijs\]) %\> …

---

## [BackgrounDRb & WinXP](https://www.ruby-forum.com/t/backgroundrb-winxp/103878)

<div class="topic-metadata">

**Author:** [@Zirael](https://www.ruby-forum.com/u/Zirael)\
**Replies:** 2\
**Last updated:** [August 23, 2007, 10:42am UTC](https://www.ruby-forum.com/t/backgroundrb-winxp/103878 "2007-08-23T10:42:28Z")

</div>

Hi, I have problem with backgrounDRb. First I installed plugin ruby script/plugin install http://svn.devjavu.com/backgroundrb/tags/release-0.2.1 and then, when I try to run rails server I got an error. The same err…

---

## [Max upload file size](https://www.ruby-forum.com/t/max-upload-file-size/99279)

<div class="topic-metadata">

**Author:** [@fishman2001](https://www.ruby-forum.com/u/fishman2001)\
**Replies:** 4\
**Last updated:** [August 23, 2007, 9:01am UTC](https://www.ruby-forum.com/t/max-upload-file-size/99279 "2007-08-23T09:01:55Z")

</div>

Can any one tell me if Rails has a max file size upload limit? and if so what is it and can I change it? Cheers.

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

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