# Rails

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

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

---

## [Read files from two servers](https://www.ruby-forum.com/t/read-files-from-two-servers/151055)

<div class="topic-metadata">

**Author:** [@AnAnAn](https://www.ruby-forum.com/u/AnAnAn)\
**Replies:** 2\
**Last updated:** [October 16, 2008, 2:16pm UTC](https://www.ruby-forum.com/t/read-files-from-two-servers/151055 "2008-10-16T14:16:57Z")

</div>

Hi, in production I have 2 debian servers to which my app is deployed: the first has a public IP and serves as webserver and the second has a private IP and is used for database and other scripts running. The scripts…

---

## [Order Values in a Select Box Using select](https://www.ruby-forum.com/t/order-values-in-a-select-box-using-select/151054)

<div class="topic-metadata">

**Author:** [@mikej](https://www.ruby-forum.com/u/mikej)\
**Replies:** 3\
**Last updated:** [October 16, 2008, 1:08pm UTC](https://www.ruby-forum.com/t/order-values-in-a-select-box-using-select/151054 "2008-10-16T13:08:37Z")

</div>

Been trawling for a while and know there must be an easy answer to this so reluctant to work round it. My select box: \<%= form.select( :data, { “Yes” =\> “1”, “No” =\> “0”},{:prompt =\> “– Select –”}) %\> The problem is…

---

## [Handling nil.errors in error\_messages\_for](https://www.ruby-forum.com/t/handling-nil-errors-in-error-messages-for/151019)

<div class="topic-metadata">

**Author:** [@mroths](https://www.ruby-forum.com/u/mroths)\
**Replies:** 6\
**Last updated:** [October 16, 2008, 1:07pm UTC](https://www.ruby-forum.com/t/handling-nil-errors-in-error-messages-for/151019 "2008-10-16T13:07:42Z")

</div>

How do you deal with multiple objects in error\_messages\_for when one or more may be nil? For example: \<%= error\_messages\_for :object =\> \[@account, @account.billing\_detail, @account.mailing\_address, @account.billing\_a…

---

## [How to let a user render a partial?](https://www.ruby-forum.com/t/how-to-let-a-user-render-a-partial/150453)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 24\
**Last updated:** [October 16, 2008, 12:18pm UTC](https://www.ruby-forum.com/t/how-to-let-a-user-render-a-partial/150453 "2008-10-16T12:18:13Z")

</div>

Hi all, I’m currently doing a little CMS system in Rails and I would like the user/administrator of a site to be able to render partials on pages. I have a Page model with a content attribute. Inside that attribute I …

---

## [Login from token](https://www.ruby-forum.com/t/login-from-token/150981)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 4\
**Last updated:** [October 16, 2008, 11:28am UTC](https://www.ruby-forum.com/t/login-from-token/150981 "2008-10-16T11:28:39Z")

</div>

Hi I have users sending messages to other users with links in the email. If the users click on the links in the email they go to the message in the app, but invariably they arent logged in and have to do so before g…

---

## [Community design](https://www.ruby-forum.com/t/community-design/151047)

<div class="topic-metadata">

**Author:** [@Magnar](https://www.ruby-forum.com/u/Magnar)\
**Replies:** 0\
**Last updated:** [October 16, 2008, 10:18am UTC](https://www.ruby-forum.com/t/community-design/151047 "2008-10-16T10:18:11Z")

</div>

Hi, I am the owner of www.chatplanet.no, and we´re interested in upgrading our whole community now. Please e-mail me at removed\_email\_address@domain.invalid or add the same address at MSN to get in contact with me. B…

---

## [Move from PHP to Rails](https://www.ruby-forum.com/t/move-from-php-to-rails/150957)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 16, 2008, 9:44am UTC](https://www.ruby-forum.com/t/move-from-php-to-rails/150957 "2008-10-16T09:44:47Z")

</div>

Hi, Recently I designed a web application where I used the technologies ExtJS and PHP. I didnt use any framework for PHP, I started with small framework for DB. Now I want to move that application from PHP to Rails a…

---

## [How to configure a server with new development environment](https://www.ruby-forum.com/t/how-to-configure-a-server-with-new-development-environment/150978)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 2\
**Last updated:** [October 16, 2008, 7:39am UTC](https://www.ruby-forum.com/t/how-to-configure-a-server-with-new-development-environment/150978 "2008-10-16T07:39:41Z")

</div>

Hi, In my application i created a new environment say sunny for development purpose. currently i am start server using command ruby script/server -e sunny but i want to configure it in aptana(editor), but it not sh…

---

## [Fixtures, testing and namespaces](https://www.ruby-forum.com/t/fixtures-testing-and-namespaces/150913)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 1\
**Last updated:** [October 16, 2008, 6:55am UTC](https://www.ruby-forum.com/t/fixtures-testing-and-namespaces/150913 "2008-10-16T06:55:40Z")

</div>

Hi Folks, I am sure that someone, somewhere, has encountered this, but I’ve not been able to find the answers yet. I have some name-spaced models. My application relies on another database over which I have limited …

---

## [Tinymce plugin problem in Opera and Google Chrome](https://www.ruby-forum.com/t/tinymce-plugin-problem-in-opera-and-google-chrome/150877)

<div class="topic-metadata">

**Author:** [@rocknrollcar](https://www.ruby-forum.com/u/rocknrollcar)\
**Replies:** 1\
**Last updated:** [October 16, 2008, 6:45am UTC](https://www.ruby-forum.com/t/tinymce-plugin-problem-in-opera-and-google-chrome/150877 "2008-10-16T06:45:26Z")

</div>

Hi. I am using the tiny\_mce plugin for Rails in my Project. Its working good in IE and Firefox. But its not displayed in Opera And Google Chrome. In my layout i initialize tiny\_mce scripts as \<%= javascript\_include\_…

---

## [ActiveLDAP why are you so cruel to me? Help Please](https://www.ruby-forum.com/t/activeldap-why-are-you-so-cruel-to-me-help-please/78244)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 16, 2008, 6:33am UTC](https://www.ruby-forum.com/t/activeldap-why-are-you-so-cruel-to-me-help-please/78244 "2008-10-16T06:33:57Z")

</div>

Im running the latest ActiveLDAP 0.8. My problem is the following Ok, its simple. This works: xxxcatalog# ldapsearch -x -h 192.168.1.40 -W -D ‘cn=Manager,dc=webgate,dc=net,dc=au’ -b ‘dc=webgate,dc=net,dc=au’ ‘(dc=ww…

---

## [Save selected checkboxes after remote\_function call](https://www.ruby-forum.com/t/save-selected-checkboxes-after-remote-function-call/150568)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 4\
**Last updated:** [October 16, 2008, 6:20am UTC](https://www.ruby-forum.com/t/save-selected-checkboxes-after-remote-function-call/150568 "2008-10-16T06:20:18Z")

</div>

I have an A-Z list that controls a list of check\_box\_tag values. So a user clicks on a A-Z link, the list of checkboxes are displayed, they tic the checkboxes and the value is stored in the session variable, and they …

---

## [How can form data be used to make an XML file?](https://www.ruby-forum.com/t/how-can-form-data-be-used-to-make-an-xml-file/151015)

<div class="topic-metadata">

**Author:** [@rocknrollcar](https://www.ruby-forum.com/u/rocknrollcar)\
**Replies:** 2\
**Last updated:** [October 16, 2008, 3:14am UTC](https://www.ruby-forum.com/t/how-can-form-data-be-used-to-make-an-xml-file/151015 "2008-10-16T03:14:20Z")

</div>

I have a scenario. Ignore this if it is silly. I have a form like a data entry. It has 3 fields which are name, age and gender. The guy who enters the data adds more fields with the help of an Add another Entry link w…

---

## [How do you associate "Notes" to many models?](https://www.ruby-forum.com/t/how-do-you-associate-notes-to-many-models/151028)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 1\
**Last updated:** [October 16, 2008, 3:04am UTC](https://www.ruby-forum.com/t/how-do-you-associate-notes-to-many-models/151028 "2008-10-16T03:04:20Z")

</div>

I’m trying to find the best way to associate notes to many models. I have a table called notes, and the tables I wanted associated to those notes are: players teams parents To accomplish it, would my notes database…

---

## [No route matches "/MyTest/" with {:method=\>:get} error](https://www.ruby-forum.com/t/no-route-matches-mytest-with-method-get-error/149278)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 3\
**Last updated:** [October 16, 2008, 3:00am UTC](https://www.ruby-forum.com/t/no-route-matches-mytest-with-method-get-error/149278 "2008-10-16T03:00:14Z")

</div>

I keep getting this error when I go to http://localhost:3000/MyTest/. I created this controller inside Terminal and then I edited the my\_test\_controller.rb file so inside it says: class MyTestController \< ApplicationC…

---

## [Ruby on rails newbie please help cgi problem](https://www.ruby-forum.com/t/ruby-on-rails-newbie-please-help-cgi-problem/150828)

<div class="topic-metadata">

**Author:** [@omgitsads](https://www.ruby-forum.com/u/omgitsads)\
**Replies:** 6\
**Last updated:** [October 16, 2008, 2:50am UTC](https://www.ruby-forum.com/t/ruby-on-rails-newbie-please-help-cgi-problem/150828 "2008-10-16T02:50:53Z")

</div>

Hi Just wondering I installed rails but cant seem to get any CGI scripts running i created a directory in the railsproject/public directory called cgi-bin which I gave Options +ExecCGI. Furthermore, I cant get any .rh…

---

## [Radio button issues in a list](https://www.ruby-forum.com/t/radio-button-issues-in-a-list/151022)

<div class="topic-metadata">

**Author:** [@tmac26](https://www.ruby-forum.com/u/tmac26)\
**Replies:** 2\
**Last updated:** [October 16, 2008, 2:31am UTC](https://www.ruby-forum.com/t/radio-button-issues-in-a-list/151022 "2008-10-16T02:31:01Z")

</div>

Hi, I have a list of companies for a given user. One (and only one) company can be a default company for that user. I have a radio button that appears on each row in the list of companies (here is my code): \<% form…

---

## [Online Storefront Credit Cards](https://www.ruby-forum.com/t/online-storefront-credit-cards/150943)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 5\
**Last updated:** [October 16, 2008, 2:26am UTC](https://www.ruby-forum.com/t/online-storefront-credit-cards/150943 "2008-10-16T02:26:54Z")

</div>

Does anyone have any experience with processing credit cards that can give me some advice on how to handle this situation? I am looking to create an online art venue where members can each have his/her own online sto…

---

## [Why do I get 1 as id for all locations?](https://www.ruby-forum.com/t/why-do-i-get-1-as-id-for-all-locations/150973)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 1\
**Last updated:** [October 16, 2008, 2:23am UTC](https://www.ruby-forum.com/t/why-do-i-get-1-as-id-for-all-locations/150973 "2008-10-16T02:23:14Z")

</div>

Hi, I’m trying to save all the details stored in the session in a table. This session holds ids of records in the carts table but as it holds just the name of location, I’m using for loop to try and find the id of eac…

---

## [Repond\_to? bug, really strange](https://www.ruby-forum.com/t/repond-to-bug-really-strange/151013)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 2\
**Last updated:** [October 16, 2008, 1:29am UTC](https://www.ruby-forum.com/t/repond-to-bug-really-strange/151013 "2008-10-16T01:29:31Z")

</div>

This is really strange: User.send(:merge\_joins, “one”, “two”) =\> \[“one”, “two”\] User.respond\_to?(:merge\_joins) =\> false Am I missing something here? Shouldn’t the respond\_to return true? thanks for your help

---

## [Problem with new action](https://www.ruby-forum.com/t/problem-with-new-action/150948)

<div class="topic-metadata">

**Author:** [@JHuizingh](https://www.ruby-forum.com/u/JHuizingh)\
**Replies:** 2\
**Last updated:** [October 16, 2008, 12:46am UTC](https://www.ruby-forum.com/t/problem-with-new-action/150948 "2008-10-16T00:46:13Z")

</div>

I’m having issues submitting a form to the create action. In routes I have map.resources :encryption\_passphrases This resource is not using an ActiveRecord model, so I can’t use the form\_for method in the view. In a…

---

## [Zooppa.com - You have been invited to join!](https://www.ruby-forum.com/t/zooppa-com-you-have-been-invited-to-join/151021)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [October 16, 2008, 12:25am UTC](https://www.ruby-forum.com/t/zooppa-com-you-have-been-invited-to-join/151021 "2008-10-16T00:25:43Z")

</div>

removed\_email\_address@domain.invalid ti ha mandato questo invito per farti conoscere Zooppa.com: il sito web che ti ricompensa in denaro se crei semplici pubblicitÃ e partecipi attivamente. Clicca il link sottostante…

---

## [Mongrel stops responding](https://www.ruby-forum.com/t/mongrel-stops-responding/151017)

<div class="topic-metadata">

**Author:** [@eXt](https://www.ruby-forum.com/u/eXt)\
**Replies:** 0\
**Last updated:** [October 15, 2008, 11:06pm UTC](https://www.ruby-forum.com/t/mongrel-stops-responding/151017 "2008-10-15T23:06:33Z")

</div>

Hi all! I have a problem with my Redmine instance which runs on Mongrel. It is not a cluster, just a single instance of Mongrel 1.1.3. The problem is that after some time Mongrel stops responding. After a restart eve…

---

## [Using Rails purely as a RESTful web service (no or little HTML)](https://www.ruby-forum.com/t/using-rails-purely-as-a-restful-web-service-no-or-little-html/150937)

<div class="topic-metadata">

**Author:** [@marcos](https://www.ruby-forum.com/u/marcos)\
**Replies:** 3\
**Last updated:** [October 15, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/using-rails-purely-as-a-restful-web-service-no-or-little-html/150937 "2008-10-15T22:35:28Z")

</div>

Given how easy it is to create restful webservices in Rails (well, that’s an understatement), I’m wondering if anyone out there uses it purely for that? IE Using only XML/JSON, and not bothering with HTML view/styles…

---

## [ActionView: render a layout not in app/views?](https://www.ruby-forum.com/t/actionview-render-a-layout-not-in-app-views/150925)

<div class="topic-metadata">

**Author:** [@mjacobs](https://www.ruby-forum.com/u/mjacobs)\
**Replies:** 3\
**Last updated:** [October 15, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/actionview-render-a-layout-not-in-app-views/150925 "2008-10-15T22:19:40Z")

</div>

Hey there, I have a problem. class ApplicationController layout :determine\_layout def determine\_layout “…/…/public/sites/#{@site.code}/application” end end in rails2.0 this worked, but it was clearly a hack. I t…

---

## [Could not find RubyGem - because it's not a gem](https://www.ruby-forum.com/t/could-not-find-rubygem-because-its-not-a-gem/151005)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [October 15, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/could-not-find-rubygem-because-its-not-a-gem/151005 "2008-10-15T20:38:34Z")

</div>

Hi all, Why doesn’t a require in my environment.rb file search the standard site\_lib path? works irb(main):001:0\> require ‘strongtyping’ =\> true doesn’t work C:\>ruby script\\server =\> Booting WEBrick… C:/ruby/lib/r…

---

## [Small regular expression question](https://www.ruby-forum.com/t/small-regular-expression-question/150987)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 4\
**Last updated:** [October 15, 2008, 8:03pm UTC](https://www.ruby-forum.com/t/small-regular-expression-question/150987 "2008-10-15T20:03:14Z")

</div>

I’m looking to write a regular expression that will match valid URLs. My problem is that it almost works, except it accepts URLs with / in the middle of them, suchs as: http://www.ruby/rails.com It looks (to me) like…

---

## [About: multi database performance on Substruct](https://www.ruby-forum.com/t/about-multi-database-performance-on-substruct/148872)

<div class="topic-metadata">

**Author:** [@mekdigital](https://www.ruby-forum.com/u/mekdigital)\
**Replies:** 8\
**Last updated:** [October 15, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/about-multi-database-performance-on-substruct/148872 "2008-10-15T18:23:02Z")

</div>

Hello, I forked the sweet Substruct and applied Advanced Recipe 83: I associate a different shop (separate database) to each ‘installation’ according to the subdomain the application is accessed from. Do you think i…

---

## [Inventory/warehouse management, order picking etc](https://www.ruby-forum.com/t/inventory-warehouse-management-order-picking-etc/150972)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 4\
**Last updated:** [October 15, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/inventory-warehouse-management-order-picking-etc/150972 "2008-10-15T18:21:59Z")

</div>

Hi, Apologies if this isn’t the best fit for this group. Does anyone know of any rails based warehouse management systems (I have looked, but with little result)? Including inventory tracking and order picking? I’m …

---

## [Avoiding "ruby script/server" and eliminating ":3000"](https://www.ruby-forum.com/t/avoiding-ruby-script-server-and-eliminating-3000/150992)

<div class="topic-metadata">

**Author:** [@Delirium\_tremens](https://www.ruby-forum.com/u/Delirium_tremens)\
**Replies:** 2\
**Last updated:** [October 15, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/avoiding-ruby-script-server-and-eliminating-3000/150992 "2008-10-15T18:20:23Z")

</div>

Is there a way to avoid having to type ruby script/server to test my site? Is there a way to eliminate :3000 from http://localhost:3000/

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

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