# Rails

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

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

---

## [One RonR applications serving hundreds of domains...how do I point many to one DNS?](https://www.ruby-forum.com/t/one-ronr-applications-serving-hundreds-of-domains-how-do-i-point-many-to-one-dns/120235)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [November 15, 2007, 2:23am UTC](https://www.ruby-forum.com/t/one-ronr-applications-serving-hundreds-of-domains-how-do-i-point-many-to-one-dns/120235 "2007-11-15T02:23:02Z")

</div>

I write this letter to ask what could be a simple one line answer or require much study. I am self taught and have spent the last year putting in 2,000 hours in developing a Ruby on Rails application that will service…

---

## [Errors starting god](https://www.ruby-forum.com/t/errors-starting-god/120236)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 0\
**Last updated:** [November 15, 2007, 2:18am UTC](https://www.ruby-forum.com/t/errors-starting-god/120236 "2007-11-15T02:18:57Z")

</div>

I was able to run god earlier in the day, but now I get this error: god load config/mms-service.god The server is not available (or you do not have permissions to access it) Anybody know what this error means?

---

## [RMagick install on Media Temple grid (gs)](https://www.ruby-forum.com/t/rmagick-install-on-media-temple-grid-gs/120042)

<div class="topic-metadata">

**Author:** [@BDS](https://www.ruby-forum.com/u/BDS)\
**Replies:** 1\
**Last updated:** [November 15, 2007, 2:03am UTC](https://www.ruby-forum.com/t/rmagick-install-on-media-temple-grid-gs/120042 "2007-11-15T02:03:46Z")

</div>

Hey there, Has anybody determined yet if it is necessary to build ImageMagick and its libraries before installing the specific RMagick gem on Media Temple grid (gs) ??–apart from the dedicated plan. From what I have …

---

## [Application layouts/helpers no longer working?](https://www.ruby-forum.com/t/application-layouts-helpers-no-longer-working/120234)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 0\
**Last updated:** [November 15, 2007, 1:30am UTC](https://www.ruby-forum.com/t/application-layouts-helpers-no-longer-working/120234 "2007-11-15T01:30:28Z")

</div>

Could very well be something on my end, but methods from helpers/application\_helper.rb are no longer available from any views, and layouts/application.rb no longer gets applied. This is after upgrading to 2.0 PR/RC1. …

---

## [Validate\_presence\_of unit testing with if condition](https://www.ruby-forum.com/t/validate-presence-of-unit-testing-with-if-condition/120199)

<div class="topic-metadata">

**Author:** [@joan2kus](https://www.ruby-forum.com/u/joan2kus)\
**Replies:** 3\
**Last updated:** [November 15, 2007, 1:25am UTC](https://www.ruby-forum.com/t/validate-presence-of-unit-testing-with-if-condition/120199 "2007-11-15T01:25:13Z")

</div>

In the layer.rb model, I have validates\_presence\_of :data\_source validates\_presence\_of :url, :if =\> :other\_dataset? def other\_dataset? data\_source == ‘other’ end When I tried to do the unit testing, def test…

---

## [SVN import & add--way to exclude directories?](https://www.ruby-forum.com/t/svn-import-add-way-to-exclude-directories/120128)

<div class="topic-metadata">

**Author:** [@miravol](https://www.ruby-forum.com/u/miravol)\
**Replies:** 2\
**Last updated:** [November 15, 2007, 12:38am UTC](https://www.ruby-forum.com/t/svn-import-add-way-to-exclude-directories/120128 "2007-11-15T00:38:11Z")

</div>

Is there way on import or add to exclude directories? (Obvious candidate being log or tmp dirs.) I’m imagining something like this: $ svn import mytree file:///usr/local/svn/newrepos/some/project –exclude /tmp --exclu…

---

## [New Foxy Fixtures (Rails 2) & STI (Single Table Inheritance)](https://www.ruby-forum.com/t/new-foxy-fixtures-rails-2-sti-single-table-inheritance/120217)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 15, 2007, 12:04am UTC](https://www.ruby-forum.com/t/new-foxy-fixtures-rails-2-sti-single-table-inheritance/120217 "2007-11-15T00:04:33Z")

</div>

I’ve got some problems right now using the new model for relationships in fixtures (by label, not by id) and STI. What I’ve got, is a couple of models: Attachment –\> FileDownload Version Version has\_one file\_downl…

---

## [How can I debug fragment cache or expire all?](https://www.ruby-forum.com/t/how-can-i-debug-fragment-cache-or-expire-all/120105)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 14, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/how-can-i-debug-fragment-cache-or-expire-all/120105 "2007-11-14T22:58:28Z")

</div>

I have been using fragment caching and it seemed like it was working pretty well. I added some things and now it is not working. Could I have screwed it up if I deleted the cache files by hand that it had in the temp…

---

## [A few add\_index questions](https://www.ruby-forum.com/t/a-few-add-index-questions/120147)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 6\
**Last updated:** [November 14, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/a-few-add-index-questions/120147 "2007-11-14T21:49:58Z")

</div>

on previous apps i hadn’t really worried much about adding foreign key indexes on my tables just because they’ve been fairly small and i didn’t really think i needed them. well, i’m working on something now that has t…

---

## [Building ruby for rails on ubuntu? all the little packages](https://www.ruby-forum.com/t/building-ruby-for-rails-on-ubuntu-all-the-little-packages/120219)

<div class="topic-metadata">

**Author:** [@uncle](https://www.ruby-forum.com/u/uncle)\
**Replies:** 1\
**Last updated:** [November 14, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/building-ruby-for-rails-on-ubuntu-all-the-little-packages/120219 "2007-11-14T21:16:35Z")

</div>

Ok, I have downloaded the latest ruby (1.8.6 p110) and am trying to get it all working with rails. Why? because I am getting segfaults with 1.8.6 that I did not get with 1.8.5 and am hoping they get fixed! I have fou…

---

## [Apache 2.2 ProxyPass static Resources + Mongrel](https://www.ruby-forum.com/t/apache-2-2-proxypass-static-resources-mongrel/120191)

<div class="topic-metadata">

**Author:** [@betame342](https://www.ruby-forum.com/u/betame342)\
**Replies:** 2\
**Last updated:** [November 14, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/apache-2-2-proxypass-static-resources-mongrel/120191 "2007-11-14T21:16:09Z")

</div>

Hi, Do you guys know how to tell if Apache 2.2 is the one that loading the static page instead of mongrel? For example, (May be the log file will tell, if the image is loaded by apache instead of mongrel). I want to …

---

## [Webrick: does it honour ENV\['RAILS\_ENV'\] ||= 'production'](https://www.ruby-forum.com/t/webrick-does-it-honour-env-rails-env-production/120214)

<div class="topic-metadata">

**Author:** [@cujigar](https://www.ruby-forum.com/u/cujigar)\
**Replies:** 2\
**Last updated:** [November 14, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/webrick-does-it-honour-env-rails-env-production/120214 "2007-11-14T21:03:52Z")

</div>

my environment.rb contains ENV\[‘RAILS\_ENV’\] ||= ‘production’ when i start webrick with command ruby script\\server it still runs in development mode. Is this expected behavior of webrick?? why? the only way to run w…

---

## [How to read HTML from a password-protected page?](https://www.ruby-forum.com/t/how-to-read-html-from-a-password-protected-page/120184)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 3\
**Last updated:** [November 14, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/how-to-read-html-from-a-password-protected-page/120184 "2007-11-14T20:25:26Z")

</div>

Hello, I have a method that gets the html off a page. I give it a word to look up, and it returns the results. I just switched to read from a password-protected page, and I can’t figure out how to send along the pa…

---

## [Webrick: Getting stack trace in production](https://www.ruby-forum.com/t/webrick-getting-stack-trace-in-production/120212)

<div class="topic-metadata">

**Author:** [@cujigar](https://www.ruby-forum.com/u/cujigar)\
**Replies:** 0\
**Last updated:** [November 14, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/webrick-getting-stack-trace-in-production/120212 "2007-11-14T20:15:55Z")

</div>

Full error reports are disabled and caching is turned on config.action\_controller.consider\_all\_requests\_local = false config.action\_controller.perform\_caching = true above are my settings in production.rb a…

---

## [How can I manage sessions file in tmp](https://www.ruby-forum.com/t/how-can-i-manage-sessions-file-in-tmp/120168)

<div class="topic-metadata">

**Author:** [@Artit\_S](https://www.ruby-forum.com/u/Artit_S)\
**Replies:** 3\
**Last updated:** [November 14, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/how-can-i-manage-sessions-file-in-tmp/120168 "2007-11-14T18:42:18Z")

</div>

I have huge number of file in tmp/sessions/ , so how can I manage that. It takes many storage spaces. Is It possible to config sessions expire to solve that problem or any plug-ins Thank You Artit S. http://www…

---

## [Rails incredibly slow, 30 seconds for rails -h](https://www.ruby-forum.com/t/rails-incredibly-slow-30-seconds-for-rails-h/120180)

<div class="topic-metadata">

**Author:** [@rjeffries](https://www.ruby-forum.com/u/rjeffries)\
**Replies:** 2\
**Last updated:** [November 14, 2007, 6:30pm UTC](https://www.ruby-forum.com/t/rails-incredibly-slow-30-seconds-for-rails-h/120180 "2007-11-14T18:30:36Z")

</div>

I’ve installed rails on my dual core rather fast toshiba laptop. Everything but rails seems to work just fine.However “rails -h” takes over 30 seconds to display the help. It takes a few seconds even to display the ve…

---

## [1 application, 2 databases: 1 legacy db informix 1 Mysql db?](https://www.ruby-forum.com/t/1-application-2-databases-1-legacy-db-informix-1-mysql-db/119315)

<div class="topic-metadata">

**Author:** [@malooking](https://www.ruby-forum.com/u/malooking)\
**Replies:** 1\
**Last updated:** [November 14, 2007, 6:14pm UTC](https://www.ruby-forum.com/t/1-application-2-databases-1-legacy-db-informix-1-mysql-db/119315 "2007-11-14T18:14:46Z")

</div>

Please, i need help. i wonder if rail allows to have 1 legacy database in informix and other mysql database (no legacy) in the same application. I need to query in the informix database and manipulate data to save in …

---

## [Help active rbac!](https://www.ruby-forum.com/t/help-active-rbac/120091)

<div class="topic-metadata">

**Author:** [@malooking](https://www.ruby-forum.com/u/malooking)\
**Replies:** 1\
**Last updated:** [November 14, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/help-active-rbac/120091 "2007-11-14T17:58:21Z")

</div>

Hello everyone, I need your help, i’m tryng to use active rbac plugin, but i dont understand how to integrate with my application, if someone knows how, please let me know. I use eclipse rad rails to install that plu…

---

## [File\_column question from new ror user](https://www.ruby-forum.com/t/file-column-question-from-new-ror-user/120096)

<div class="topic-metadata">

**Author:** [@kamhei82](https://www.ruby-forum.com/u/kamhei82)\
**Replies:** 6\
**Last updated:** [November 14, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/file-column-question-from-new-ror-user/120096 "2007-11-14T17:44:16Z")

</div>

Hi All, I am new in using Ruby on Rails, I have a problem about display a pic by using file\_column. Wish someone can help me, thx In below code, I want to use @entry to store the Entry object which with ID=5. (I hav…

---

## [Login Redirect - Hacking the session\[original\_uri\]](https://www.ruby-forum.com/t/login-redirect-hacking-the-session-original-uri/119018)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 4\
**Last updated:** [November 14, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/login-redirect-hacking-the-session-original-uri/119018 "2007-11-14T17:10:18Z")

</div>

Hi There, I have several ajax elements that require authorization, but for various reasons, they can’t pass session\[original\_uri\] to the redirect on user log in. I’m trying to hack in a uri by passing a param to the …

---

## [Sporadic data retrieval failure](https://www.ruby-forum.com/t/sporadic-data-retrieval-failure/120186)

<div class="topic-metadata">

**Author:** [@Joseph\_Love](https://www.ruby-forum.com/u/Joseph_Love)\
**Replies:** 0\
**Last updated:** [November 14, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/sporadic-data-retrieval-failure/120186 "2007-11-14T16:51:34Z")

</div>

Hi, I’ve been banging my head against this problem for a while, trying to figure out where it’s occurring. I have a (I believe) relatively simple application, not entirely unlike a typical shopping cart, which is ge…

---

## [08 DEC date error ? :)](https://www.ruby-forum.com/t/08-dec-date-error/120183)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [November 14, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/08-dec-date-error/120183 "2007-11-14T16:42:46Z")

</div>

look at this, in my xxx.lib I do: EVENT\_DEADLINE = Date.new(2007,12,8) VIPC\_DEADLINE = Date.new(2007,11,01) WHO\_DEADLINE = Date.new(2007,10,24) VIPC\_DEADLINE\_TIME = Time.local(2007,11,01,23,59,59) and everything wor…

---

## [Tbody problem on firefox!](https://www.ruby-forum.com/t/tbody-problem-on-firefox/120181)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 1\
**Last updated:** [November 14, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/tbody-problem-on-firefox/120181 "2007-11-14T16:38:05Z")

</div>

I have a table with tbody to make it compatible with IE. When I use it on IE and Safari, it works fine but when I use it on firefox it stars inserting data in the center of table row rather than the actual left side o…

---

## [Observe\_field doesn't work](https://www.ruby-forum.com/t/observe-field-doesnt-work/119957)

<div class="topic-metadata">

**Author:** [@Bolo](https://www.ruby-forum.com/u/Bolo)\
**Replies:** 12\
**Last updated:** [November 14, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/observe-field-doesnt-work/119957 "2007-11-14T16:25:46Z")

</div>

Hello, I try to use observe\_field with select my code \<%= observe\_field :pay\_zones, :on =\> “changed”, :url =\> sort\_pays\_distributeurs\_path, :with =\> “‘\_method=put&tag=’+element.id+‘&value=’+element.value” , :loa…

---

## [Tests doesn't clear my tables?](https://www.ruby-forum.com/t/tests-doesnt-clear-my-tables/120173)

<div class="topic-metadata">

**Author:** [@Davi](https://www.ruby-forum.com/u/Davi)\
**Replies:** 4\
**Last updated:** [November 14, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/tests-doesnt-clear-my-tables/120173 "2007-11-14T15:16:25Z")

</div>

Hi all. I’m using the following test: \[category\_test.rb\] require File.dirname(FILE) + ‘/…/test\_helper’ class CategoryTest \< Test::Unit::TestCase fixtures :categories def aequal(expected, got, message=’’) assert\_equ…

---

## [Transmitting Data to Web Server - Post Method](https://www.ruby-forum.com/t/transmitting-data-to-web-server-post-method/120087)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 1\
**Last updated:** [November 14, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/transmitting-data-to-web-server-post-method/120087 "2007-11-14T15:12:19Z")

</div>

Does Rails have any sort of tool of its own for transmitting data to a web server via the post method? Thanks. ... doug

---

## [Problem time\_select with fields\_for](https://www.ruby-forum.com/t/problem-time-select-with-fields-for/120177)

<div class="topic-metadata">

**Author:** [@reyntjensw](https://www.ruby-forum.com/u/reyntjensw)\
**Replies:** 0\
**Last updated:** [November 14, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/problem-time-select-with-fields-for/120177 "2007-11-14T15:08:07Z")

</div>

Hi, I’m using fields\_for and a time\_select but he isn’t saving the time in the db just 00:00:00 All the other fields are fine, but the time\_field isn’t working:s This is my code: \<% form\_for :activity, @activity,:ur…

---

## [\[ANN\] js-developer plugin](https://www.ruby-forum.com/t/ann-js-developer-plugin/120143)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 1\
**Last updated:** [November 14, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/ann-js-developer-plugin/120143 "2007-11-14T14:38:50Z")

</div>

Javascript Developer Plugin This plugin makes it easy to do TDD and/or BDD Javascript development. Included are generators to facilitate building Javascript tests and applications, along with Rake tasks for easily r…

---

## [Acts\_as\_versioned conflicts?](https://www.ruby-forum.com/t/acts-as-versioned-conflicts/119266)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 3\
**Last updated:** [November 14, 2007, 12:10pm UTC](https://www.ruby-forum.com/t/acts-as-versioned-conflicts/119266 "2007-11-14T12:10:27Z")

</div>

Dear list, At the moment I am building a simple RESTful wiki. For this I am using Edge Rails. I have a simple Page model which has a couple of associations and acts\_as\_\*. One of them is acts\_as\_versioned and that one…

---

## [Problem while validation when using submit\_to\_remote](https://www.ruby-forum.com/t/problem-while-validation-when-using-submit-to-remote/120162)

<div class="topic-metadata">

**Author:** [@madhan](https://www.ruby-forum.com/u/madhan)\
**Replies:** 0\
**Last updated:** [November 14, 2007, 11:55am UTC](https://www.ruby-forum.com/t/problem-while-validation-when-using-submit-to-remote/120162 "2007-11-14T11:55:07Z")

</div>

hello friends, i have used submit\_to\_remote in my \_form.rhtml and filled some fields. when i try to submit this form it does rails validation and show errors for the fields which i got through submit\_to\_remote and mad…

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

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