# Rails

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

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

---

## [Anyone set up DAV using Nginx?](https://www.ruby-forum.com/t/anyone-set-up-dav-using-nginx/113760)

<div class="topic-metadata">

**Author:** [@seth](https://www.ruby-forum.com/u/seth)\
**Replies:** 1\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/anyone-set-up-dav-using-nginx/113760 "2007-09-17T13:25:22Z")

</div>

I am setting up a new server and I’m trying to avoid installing Apache. All of our sites will be running mongrel\_clusters through nginx and our SVN will be accessible via svn+ssh. The only piece I haven’t been able …

---

## [One line to print the statement AS WELL AS the evaluated val](https://www.ruby-forum.com/t/one-line-to-print-the-statement-as-well-as-the-evaluated-val/196467)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/one-line-to-print-the-statement-as-well-as-the-evaluated-val/196467 "2007-09-17T13:25:17Z")

</div>

i wonder in Ruby, is there a line method to do something like in C print\_val(“Array\[3\] + 1”) and get the printout of Array\[3\] + 1 is 3.345

---

## [Setting custom variables per environment](https://www.ruby-forum.com/t/setting-custom-variables-per-environment/196466)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/setting-custom-variables-per-environment/196466 "2007-09-17T13:25:15Z")

</div>

Hi, I’d like to be able to set a variable for each environment I have. It’s a path to a folder that’s different on each system: development and production. I then, need to be able to read it from my controller. How c…

---

## [Sharing view code across actions with the same function](https://www.ruby-forum.com/t/sharing-view-code-across-actions-with-the-same-function/114354)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 5\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/sharing-view-code-across-actions-with-the-same-function/114354 "2007-09-17T13:25:14Z")

</div>

Does anyone have any techniques for sharing view code generators (partials, helpers, yielding to content\_for) across actions in different controllers that essentionally do the same thing. The biggest discernable weakn…

---

## [How to put alert messages on changing screen access](https://www.ruby-forum.com/t/how-to-put-alert-messages-on-changing-screen-access/196465)

<div class="topic-metadata">

**Author:** [@pragati](https://www.ruby-forum.com/u/pragati)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/how-to-put-alert-messages-on-changing-screen-access/196465 "2007-09-17T13:25:14Z")

</div>

Hi, I have a small application. I have two features for instance, NEW and SEARCH. When a user presses NEW, he’s supposed to enter around 14 entries in the form. Now, let’s take he entered 8 entries and switches to S…

---

## [Advice on changing actions when in process flow and out of i](https://www.ruby-forum.com/t/advice-on-changing-actions-when-in-process-flow-and-out-of-i/114757)

<div class="topic-metadata">

**Author:** [@stephen\_OSD](https://www.ruby-forum.com/u/stephen_OSD)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/advice-on-changing-actions-when-in-process-flow-and-out-of-i/114757 "2007-09-17T13:25:14Z")

</div>

Guys, Say I have an action, :new, that allows a user to create a new ‘item’ in my app. To create this new item, they have to move through several steps, first add some details (in :new which creates the item), then …

---

## [Re: True expression still evaluates false](https://www.ruby-forum.com/t/re-true-expression-still-evaluates-false/114755)

<div class="topic-metadata">

**Author:** [@Tyler\_MacDonald](https://www.ruby-forum.com/u/Tyler_MacDonald)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/re-true-expression-still-evaluates-false/114755 "2007-09-17T13:25:13Z")

</div>

Chris removed\_email\_address@domain.invalid wrote: templates.push star is in my model code. What’s going on here? If one is a string, and the other is an integer, that will evaluate to false; irb(main):001:0\> …

---

## [ActiveRecord, blocking or async, logging, syslog/udp](https://www.ruby-forum.com/t/activerecord-blocking-or-async-logging-syslog-udp/114356)

<div class="topic-metadata">

**Author:** [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Replies:** 3\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/activerecord-blocking-or-async-logging-syslog-udp/114356 "2007-09-17T13:25:12Z")

</div>

Here’s a gedanken experiment for those w/ far more knowledge than I about ActiveRecord, etc.: Let’s say my database is very remote and on a very slow machine. Let’s further say that my app has an action that leads t…

---

## [Database full?](https://www.ruby-forum.com/t/database-full/114539)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 2\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/database-full/114539 "2007-09-17T13:25:11Z")

</div>

I have a table named logs … I have noticed that when the record numbers reach 127, it stops accepting more records. Any idea?

---

## [How to set the session hash from an IntegrationTest?](https://www.ruby-forum.com/t/how-to-set-the-session-hash-from-an-integrationtest/114750)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/how-to-set-the-session-hash-from-an-integrationtest/114750 "2007-09-17T13:25:10Z")

</div>

Railsters: The traditional way to log a user into an integration test is to get ‘/login’. Our login is elaborate and out-of-band. (Actually, it’s just \>cough\< Facebook.) How do we reach out to the session hash from …

---

## [Nested Resource Single Form](https://www.ruby-forum.com/t/nested-resource-single-form/114749)

<div class="topic-metadata">

**Author:** [@davox](https://www.ruby-forum.com/u/davox)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/nested-resource-single-form/114749 "2007-09-17T13:25:09Z")

</div>

Hi all, I’m curious to what is the best practice/solution for handling one-to-many relationships in a single form not using AJAX. For example, if I have a question with many choices (e.g. a multiple choice survey), I…

---

## [Good to deal with Controller and Action logic in RJS?](https://www.ruby-forum.com/t/good-to-deal-with-controller-and-action-logic-in-rjs/114746)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/good-to-deal-with-controller-and-action-logic-in-rjs/114746 "2007-09-17T13:25:07Z")

</div>

Anybody up to this question? The question is, should we deal with Controller and Action logic in the RJS file? If so, is it quite “spaghetti-like”? This is actually for the Agile Web book Shopping Cart example: If …

---

## [Place for special scripts in the framework?](https://www.ruby-forum.com/t/place-for-special-scripts-in-the-framework/114570)

<div class="topic-metadata">

**Author:** [@yeago](https://www.ruby-forum.com/u/yeago)\
**Replies:** 6\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/place-for-special-scripts-in-the-framework/114570 "2007-09-17T13:25:05Z")

</div>

Hey there, I have a script which scrapes a website. Since it takes nearly an hour to complete, making it part of the controller doesn’t make sense because it would simply time out. However, this script needs access t…

---

## [Multi-table join issue with Legacy tables](https://www.ruby-forum.com/t/multi-table-join-issue-with-legacy-tables/114742)

<div class="topic-metadata">

**Author:** [@nshanny](https://www.ruby-forum.com/u/nshanny)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/multi-table-join-issue-with-legacy-tables/114742 "2007-09-17T13:25:01Z")

</div>

Hi there, I have been banging my head against the wall and need to reach out and ask for help. I have three tables and thus three models, Cars, entity\_map, and wiki\_edits. Cars has a primary key named id entity\_map…

---

## [Next/Previous record?](https://www.ruby-forum.com/t/next-previous-record/114672)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 1\
**Last updated:** [September 17, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/next-previous-record/114672 "2007-09-17T13:25:00Z")

</div>

Is there a way to get the next or previous record from a table or from a model? Thanks, John

---

## [Erubis and actionpack 1.13.3](https://www.ruby-forum.com/t/erubis-and-actionpack-1-13-3/114737)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/erubis-and-actionpack-1-13-3/114737 "2007-09-17T13:24:59Z")

</div>

Has anyone gotten erubis \>= 2.2.0 to work with actionpack 1.13.3? When I use erubis with actionpack \<= 1.13.2 it works fine, but I get errors related to ActionView when I use it with actionpack 1.13.3. I’ll spare ever…

---

## [Counter cache like plugin for sum](https://www.ruby-forum.com/t/counter-cache-like-plugin-for-sum/114429)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 1\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/counter-cache-like-plugin-for-sum/114429 "2007-09-17T13:24:57Z")

</div>

Hi list, Is there a plugin similar to counter\_cache except for caching sums instead of counts? The reason I ask is for performance and convenience for reporting.

---

## [Manual form validation - how to return user-entered data?](https://www.ruby-forum.com/t/manual-form-validation-how-to-return-user-entered-data/114736)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/manual-form-validation-how-to-return-user-entered-data/114736 "2007-09-17T13:24:56Z")

</div>

I have a form and I want to perform some validation on the fields (not with validate\_smth because it’s not in the model) How do I redirect back to the form so that the fields are filled with previous data? I manage t…

---

## [Arts and entertainment](https://www.ruby-forum.com/t/arts-and-entertainment/114732)

<div class="topic-metadata">

**Author:** [@Madan](https://www.ruby-forum.com/u/Madan)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/arts-and-entertainment/114732 "2007-09-17T13:24:52Z")

</div>

Share your thoughts , videos , webpages , photos and make friends through a new powerful website. It’s http://goodtolove.com . You will really enjoy surfing it.As well the best is that you can make money through this…

---

## [Each loop in a helper?](https://www.ruby-forum.com/t/each-loop-in-a-helper/114580)

<div class="topic-metadata">

**Author:** [@andywatts](https://www.ruby-forum.com/u/andywatts)\
**Replies:** 3\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/each-loop-in-a-helper/114580 "2007-09-17T13:24:51Z")

</div>

Hi, I have the following code in a helper. def menu( menu ) menu.keys.each{|key| if !menu\[key\]\[‘action’\].nil? then content\_tag( :li, link\_to( key, menu\[key\]\[‘action’\] ) ) end } end It seems using ‘menu.keys.each{|k…

---

## [Erubis and actionpack 1.13.3](https://www.ruby-forum.com/t/erubis-and-actionpack-1-13-3/114725)

<div class="topic-metadata">

**Author:** [@Thomas\_Macklin](https://www.ruby-forum.com/u/Thomas_Macklin)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/erubis-and-actionpack-1-13-3/114725 "2007-09-17T13:24:48Z")

</div>

Has anyone gotten erubis \>= 2.2.0 to work with actionpack 1.13.3? When I use erubis with actionpack \<= 1.13.2 it works fine, but I get errors related to ActionView when I use it with actionpack 1.13.3. I’ll spare ever…

---

## [Getting the session cookie name](https://www.ruby-forum.com/t/getting-the-session-cookie-name/114722)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/getting-the-session-cookie-name/114722 "2007-09-17T13:24:47Z")

</div>

Hi, I have a session in my app. A session is just a cookie that references something in my db, right? I’m using the swfupload code and I need to have it include the cookie in it’s headers when it makes a request. I …

---

## [Can emails be read from spiders if they are embedded in a ru](https://www.ruby-forum.com/t/can-emails-be-read-from-spiders-if-they-are-embedded-in-a-ru/114719)

<div class="topic-metadata">

**Author:** [@pel](https://www.ruby-forum.com/u/pel)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/can-emails-be-read-from-spiders-if-they-are-embedded-in-a-ru/114719 "2007-09-17T13:24:45Z")

</div>

Hello, I am new to ruby, but used php a little bit before. I used php for my contact formular so nobody spider could read the email. But can a spider read my email if its included in a rhtml file or is there a way to…

---

## [Hopelessly unrelated to programming in Rails, but fun noneth](https://www.ruby-forum.com/t/hopelessly-unrelated-to-programming-in-rails-but-fun-noneth/114705)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/hopelessly-unrelated-to-programming-in-rails-but-fun-noneth/114705 "2007-09-17T13:24:33Z")

</div>

I’ve had a fun little side project going on now for a couple of months: http://rails.tumblecast.com There’s a growing number of subscribers to the feed, which means a growing appetite for more content. Has anyone go…

---

## [How to save multiple data](https://www.ruby-forum.com/t/how-to-save-multiple-data/114701)

<div class="topic-metadata">

**Author:** [@SMARTEGURU](https://www.ruby-forum.com/u/SMARTEGURU)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/how-to-save-multiple-data/114701 "2007-09-17T13:24:31Z")

</div>

hi, i have 3 models: class Company \< ActiveRecord::Base has\_many :company\_branches end class CompanyBranch \< ActiveRecord::Base has\_many :branch\_contacts belongs\_to :companies end class BranchContact \< ActiveRec…

---

## [Models...revisited](https://www.ruby-forum.com/t/models-revisited/114595)

<div class="topic-metadata">

**Author:** [@subimage](https://www.ruby-forum.com/u/subimage)\
**Replies:** 2\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/models-revisited/114595 "2007-09-17T13:24:25Z")

</div>

Reviving a 2 year old thread, how is everyone extending their models in engines these days? I’m attempting to move Substruct to a module system as described here: http://www.ruby-forum.com/topic/51339 …but I’m gettin…

---

## [Help wrtiting test for models that use CSV data](https://www.ruby-forum.com/t/help-wrtiting-test-for-models-that-use-csv-data/114695)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/help-wrtiting-test-for-models-that-use-csv-data/114695 "2007-09-17T13:24:19Z")

</div>

Hi, could use some help with this. I have an app that imports CSV data (which it receives from another app as an automated entry to a data field on a form) I want to write test for the models that use this data. I …

---

## [1.2.3 Upgrade from 1.1.6 dependencies issues](https://www.ruby-forum.com/t/1-2-3-upgrade-from-1-1-6-dependencies-issues/114642)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 1\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/1-2-3-upgrade-from-1-1-6-dependencies-issues/114642 "2007-09-17T13:24:14Z")

</div>

Is there a tutorial or good example of what to look for for dependencies issues in a Rails application. I am working with a large Rails application that is in the process of being ported to 1.2.3 and could use ideas.…

---

## [Lavoro: RubyOnRails](https://www.ruby-forum.com/t/lavoro-rubyonrails/114610)

<div class="topic-metadata">

**Author:** [@marco](https://www.ruby-forum.com/u/marco)\
**Replies:** 1\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/lavoro-rubyonrails/114610 "2007-09-17T13:24:11Z")

</div>

Scusate, Non so se questo annuncio dovrebbe essere fatto qui. Pero, noi (zooppa.com) abbiamo bisogno di un FULL TIME developer che conosce RubyOnRails. Se conoscete qualcuno che puo lavorare vicino Treviso con noi, v…

---

## [Deal with Controller and Action logic in RJS?](https://www.ruby-forum.com/t/deal-with-controller-and-action-logic-in-rjs/114680)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/deal-with-controller-and-action-logic-in-rjs/114680 "2007-09-17T13:24:04Z")

</div>

The question is, should we deal with Controller and Action logic in the RJS file? If so, is it quite “spaghetti-like”? This is actually for the Agile Web book Shopping Cart example: If the user clicks “Remove Item” …

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

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