# Rails

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

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

---

## [Capturing remote DB connect errors](https://www.ruby-forum.com/t/capturing-remote-db-connect-errors/120094)

<div class="topic-metadata">

**Author:** [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Replies:** 0\
**Last updated:** [November 13, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/capturing-remote-db-connect-errors/120094 "2007-11-13T18:10:39Z")

</div>

I have an app that contains active records that is on a remoteDB. If the remote DB is down - my local app cannot continue, with the following error. Mysql::Error (Can’t connect to MySQL server on ‘xxxxxxxx’ (110)): …

---

## [Exchanging data between two rails apps](https://www.ruby-forum.com/t/exchanging-data-between-two-rails-apps/120006)

<div class="topic-metadata">

**Author:** [@george\_b](https://www.ruby-forum.com/u/george_b)\
**Replies:** 2\
**Last updated:** [November 13, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/exchanging-data-between-two-rails-apps/120006 "2007-11-13T17:22:32Z")

</div>

I have a rails application on a remote server and a different rails application on a local server. I need to exchange some data between them. I have full control of both ends. The Web Services chapter of AWDR begin wi…

---

## [Has\_and\_belongs\_to\_many between the same model](https://www.ruby-forum.com/t/has-and-belongs-to-many-between-the-same-model/120086)

<div class="topic-metadata">

**Author:** [@albertosesena](https://www.ruby-forum.com/u/albertosesena)\
**Replies:** 4\
**Last updated:** [November 13, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-between-the-same-model/120086 "2007-11-13T17:21:28Z")

</div>

Hi! I have two models: Jewel and Crate. A crate can contain other crates and it can also contain as many jewels as we want. So, in jewel.rb i put: belongs\_to :crate and in crate.rb: has\_many :jewels has\_and\_bel…

---

## [2 different databases in 1 application? MySQL & Informix](https://www.ruby-forum.com/t/2-different-databases-in-1-application-mysql-informix/119317)

<div class="topic-metadata">

**Author:** [@malooking](https://www.ruby-forum.com/u/malooking)\
**Replies:** 4\
**Last updated:** [November 13, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/2-different-databases-in-1-application-mysql-informix/119317 "2007-11-13T17:11:03Z")

</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 …

---

## [Text\_field\_with\_auto\_complete scrollbars](https://www.ruby-forum.com/t/text-field-with-auto-complete-scrollbars/119709)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [November 13, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete-scrollbars/119709 "2007-11-13T16:58:23Z")

</div>

Greetings, I am using text\_field\_with\_auto\_complete to help narrow a long list of subject headings, about 10,000 in all. However, I wish to provide a scrollbar so that users can scroll through a list if there are too …

---

## [How to display the rendering time of a page?](https://www.ruby-forum.com/t/how-to-display-the-rendering-time-of-a-page/119926)

<div class="topic-metadata">

**Author:** [@voodoorai2000](https://www.ruby-forum.com/u/voodoorai2000)\
**Replies:** 1\
**Last updated:** [November 13, 2007, 4:54pm UTC](https://www.ruby-forum.com/t/how-to-display-the-rendering-time-of-a-page/119926 "2007-11-13T16:54:52Z")

</div>

Hi, If an admin is logged in, I’m trying to display how long the page took to render, somewhere at the bottom of the page. I tried with an around\_filter :time\_an\_action in application.rb def time\_an\_action started =…

---

## [Ruby on Rails tutorials for beginner](https://www.ruby-forum.com/t/ruby-on-rails-tutorials-for-beginner/119991)

<div class="topic-metadata">

**Author:** [@rubygeek](https://www.ruby-forum.com/u/rubygeek)\
**Replies:** 7\
**Last updated:** [November 13, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-tutorials-for-beginner/119991 "2007-11-13T16:34:06Z")

</div>

Hi all, Since I just switched from Python to Ruby, I’m looking for some good tutorials to start with. I have googled a lot and found some lists of tutorials, like 12 in http://hpricot.blogspot.com/2007/11/top-12-ruby…

---

## [Closing a DB connection using rails](https://www.ruby-forum.com/t/closing-a-db-connection-using-rails/120073)

<div class="topic-metadata">

**Author:** [@jagan](https://www.ruby-forum.com/u/jagan)\
**Replies:** 0\
**Last updated:** [November 13, 2007, 3:42pm UTC](https://www.ruby-forum.com/t/closing-a-db-connection-using-rails/120073 "2007-11-13T15:42:43Z")

</div>

Hello All, I am working now on Admin Console project where the admin user should be export tables in a schema to CSV format. I am able to do this perfectly with the current database but when i am selecting a table f…

---

## [\[WorkShop\] Procuro Palestrante em SÃ£o Paulo](https://www.ruby-forum.com/t/workshop-procuro-palestrante-em-sa-o-paulo/120071)

<div class="topic-metadata">

**Author:** [@edu](https://www.ruby-forum.com/u/edu)\
**Replies:** 0\
**Last updated:** [November 13, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/workshop-procuro-palestrante-em-sa-o-paulo/120071 "2007-11-13T15:33:53Z")

</div>

Procuro profissoinal boa experiência em Ruby para ministrar um Mini Curso explicando o básico para profissionais de programadores com baixo conhecimento ou nenhum de Ruby. O Curso será ministrado dentro da empresa cer…

---

## [Content Management in rails](https://www.ruby-forum.com/t/content-management-in-rails/119252)

<div class="topic-metadata">

**Author:** [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Replies:** 112\
**Last updated:** [November 13, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/content-management-in-rails/119252 "2007-11-13T15:16:54Z")

</div>

Hi, Can someone tell me how to manage the content in Admin panel? I have to implement Content Management System in the admin panel… but not getting any idea of how to implement it. Any help would be greatly appreciat…

---

## [Open URI & web scraping. (Sorry for crosspost)](https://www.ruby-forum.com/t/open-uri-web-scraping-sorry-for-crosspost/120067)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 0\
**Last updated:** [November 13, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/open-uri-web-scraping-sorry-for-crosspost/120067 "2007-11-13T15:01:48Z")

</div>

Hi I originally posted this to the Ruby forum but lack of responses (Aside from one that was nice but didn’t solve my problem) I’m hoping the ‘web’ people her may know what I’m doing wrong. I’m sorry but this is NOT …

---

## [Database clustering](https://www.ruby-forum.com/t/database-clustering/117591)

<div class="topic-metadata">

**Author:** [@Jon\_Evans](https://www.ruby-forum.com/u/Jon_Evans)\
**Replies:** 1\
**Last updated:** [November 13, 2007, 2:46pm UTC](https://www.ruby-forum.com/t/database-clustering/117591 "2007-11-13T14:46:59Z")

</div>

Hi, I have a Rails site which has been in production for the last year or so. It’s hosted on a fairly powerful AMD Opteron server, and I have another copy of it on another identical server. At a pinch I have a third …

---

## [Installing rails](https://www.ruby-forum.com/t/installing-rails/119477)

<div class="topic-metadata">

**Author:** [@Chinna](https://www.ruby-forum.com/u/Chinna)\
**Replies:** 5\
**Last updated:** [November 13, 2007, 2:00pm UTC](https://www.ruby-forum.com/t/installing-rails/119477 "2007-11-13T14:00:09Z")

</div>

hi,i wish to all , i am new to ruby on rails, if any one can tell me how to install rails using dos command.

---

## [Foreign key on the same table testing](https://www.ruby-forum.com/t/foreign-key-on-the-same-table-testing/120050)

<div class="topic-metadata">

**Author:** [@pascalschudel](https://www.ruby-forum.com/u/pascalschudel)\
**Replies:** 1\
**Last updated:** [November 13, 2007, 1:56pm UTC](https://www.ruby-forum.com/t/foreign-key-on-the-same-table-testing/120050 "2007-11-13T13:56:38Z")

</div>

Hi @all I wrote a rails app and now I want to test it. For this, I’d like to use test fixtures wich I created in .yml-files. In my model, each object can include another object. This is done by a foreign key. Unfortu…

---

## [REST without ActiveResource](https://www.ruby-forum.com/t/rest-without-activeresource/118607)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 3\
**Last updated:** [November 13, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/rest-without-activeresource/118607 "2007-11-13T13:07:07Z")

</div>

I have been reading the manual on how to develop a REST application with Rails, from b-simple\[1\]. However, after finishing, they talk about ActiveResource. What is the place of this ActiveResource? I mean, the manual …

---

## [File Uploding coding problems](https://www.ruby-forum.com/t/file-uploding-coding-problems/120060)

<div class="topic-metadata">

**Author:** [@nad](https://www.ruby-forum.com/u/nad)\
**Replies:** 2\
**Last updated:** [November 13, 2007, 1:03pm UTC](https://www.ruby-forum.com/t/file-uploding-coding-problems/120060 "2007-11-13T13:03:34Z")

</div>

I used the following codes found in the net to use to write a file to upload the files. down are the codes i have used. but still i did not able to get the correct coding. so if somebody know where i have gone wrong p…

---

## [Submit\_to\_remote in \_form.rhtml](https://www.ruby-forum.com/t/submit-to-remote-in-form-rhtml/120056)

<div class="topic-metadata">

**Author:** [@madhan](https://www.ruby-forum.com/u/madhan)\
**Replies:** 1\
**Last updated:** [November 13, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/submit-to-remote-in-form-rhtml/120056 "2007-11-13T12:41:39Z")

</div>

hi all, i have created one booking.rhtml in my requesition model and used scaffold to generate other .rhtml files. in booking.rhtml the submit\_to\_remote is working fine but in \_form.rhtml it is not working… i tried …

---

## [Multiple database: one vs multiple mongrel + rails processes?](https://www.ruby-forum.com/t/multiple-database-one-vs-multiple-mongrel-rails-processes/120058)

<div class="topic-metadata">

**Author:** [@Canatella](https://www.ruby-forum.com/u/Canatella)\
**Replies:** 0\
**Last updated:** [November 13, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/multiple-database-one-vs-multiple-mongrel-rails-processes/120058 "2007-11-13T12:36:06Z")

</div>

Hello everybody, I’m creating an application where I would like every customer to have it’s own database, for privacy reason. Each customer will access the application using a wildcard virtual host like customer- nam…

---

## [Comp](https://www.ruby-forum.com/t/comp/120057)

<div class="topic-metadata">

**Author:** [@raji](https://www.ruby-forum.com/u/raji)\
**Replies:** 0\
**Last updated:** [November 13, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/comp/120057 "2007-11-13T12:34:21Z")

</div>

SYSTEM ADMINSTRATOR http://www.freewebs.com/buildem/

---

## [Rjs problem](https://www.ruby-forum.com/t/rjs-problem/109190)

<div class="topic-metadata">

**Author:** [@pabloz](https://www.ruby-forum.com/u/pabloz)\
**Replies:** 1\
**Last updated:** [November 13, 2007, 11:48am UTC](https://www.ruby-forum.com/t/rjs-problem/109190 "2007-11-13T11:48:45Z")

</div>

Hi guys! I have a form and list of elements added through this form on the same page. I am using rjs to add new elements, every new element is wrapped in an html tag with @element.dom\_id (dom\_id plugin) so i can also…

---

## [Modularization of a Rails application?](https://www.ruby-forum.com/t/modularization-of-a-rails-application/120045)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 1\
**Last updated:** [November 13, 2007, 11:42am UTC](https://www.ruby-forum.com/t/modularization-of-a-rails-application/120045 "2007-11-13T11:42:14Z")

</div>

For a client I have to present options for “modularizing” a Rails application. By “modularization” is meant that the application allows to plug/unplug (install/uninstall) whole vertical slices of functionality includi…

---

## [Prevent logging of request](https://www.ruby-forum.com/t/prevent-logging-of-request/120049)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 0\
**Last updated:** [November 13, 2007, 11:32am UTC](https://www.ruby-forum.com/t/prevent-logging-of-request/120049 "2007-11-13T11:32:50Z")

</div>

Dear all, I want to prevent a certain request from showing up in the log files. The site I am building had to have a chat which I implemented with Ajax, this floods my log files with updated request from the chat. Le…

---

## [Help please - Trying to connect to a user defined database](https://www.ruby-forum.com/t/help-please-trying-to-connect-to-a-user-defined-database/120048)

<div class="topic-metadata">

**Author:** [@chilaquil](https://www.ruby-forum.com/u/chilaquil)\
**Replies:** 0\
**Last updated:** [November 13, 2007, 11:28am UTC](https://www.ruby-forum.com/t/help-please-trying-to-connect-to-a-user-defined-database/120048 "2007-11-13T11:28:51Z")

</div>

Hi, I’m stuck on the following problem. Using a legacy system, we have multiple databases to need to connect to. I solved this problem using the use\_db plugin, as most of the information is just in two databases. How…

---

## [Caveats of a single developer](https://www.ruby-forum.com/t/caveats-of-a-single-developer/119654)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 13\
**Last updated:** [November 13, 2007, 11:09am UTC](https://www.ruby-forum.com/t/caveats-of-a-single-developer/119654 "2007-11-13T11:09:16Z")

</div>

I first started learning ruby on rails a couple of years ago and did a small project first then started a huge project which is just now in beta. I’m the only developer for my company so the big project kept getting …

---

## [Integer column, decimal in the form partial](https://www.ruby-forum.com/t/integer-column-decimal-in-the-form-partial/119972)

<div class="topic-metadata">

**Author:** [@Karine\_D](https://www.ruby-forum.com/u/Karine_D)\
**Replies:** 1\
**Last updated:** [November 13, 2007, 11:07am UTC](https://www.ruby-forum.com/t/integer-column-decimal-in-the-form-partial/119972 "2007-11-13T11:07:05Z")

</div>

Hello, I used a migration to add an integer column to one of my data tables: add\_column :lien, :cpc, :integer, :null =\> false The user is not interested in this integer, but in 1/1 000 000 of it. So, in my form parti…

---

## [Controllers or Actions](https://www.ruby-forum.com/t/controllers-or-actions/120031)

<div class="topic-metadata">

**Author:** [@Mojave](https://www.ruby-forum.com/u/Mojave)\
**Replies:** 1\
**Last updated:** [November 13, 2007, 10:51am UTC](https://www.ruby-forum.com/t/controllers-or-actions/120031 "2007-11-13T10:51:50Z")

</div>

I’m fairly new to Rails and I’m developing a site with the usual register/login/logout/forgotpassword functionality. I know everyone has their own way of doing things, but I was wondering if there is a preferred stand…

---

## [Where to store select options](https://www.ruby-forum.com/t/where-to-store-select-options/120044)

<div class="topic-metadata">

**Author:** [@inriz](https://www.ruby-forum.com/u/inriz)\
**Replies:** 0\
**Last updated:** [November 13, 2007, 10:40am UTC](https://www.ruby-forum.com/t/where-to-store-select-options/120044 "2007-11-13T10:40:10Z")

</div>

hello, whats the rails way to store select options? in the model? in a table for each select? i think, the database table way is the best for me. a plugin, which read in all values and save it in a cache. with a obs…

---

## [Running commands from context of a view](https://www.ruby-forum.com/t/running-commands-from-context-of-a-view/119894)

<div class="topic-metadata">

**Author:** [@alexmic](https://www.ruby-forum.com/u/alexmic)\
**Replies:** 5\
**Last updated:** [November 13, 2007, 10:20am UTC](https://www.ruby-forum.com/t/running-commands-from-context-of-a-view/119894 "2007-11-13T10:20:52Z")

</div>

From the command line, Is it possible to run a particular method in a view from a specified controller. e.g. class MyController \< ActionController def test end end view.rhtml \<%= link\_to :action =\> :test %\> rend…

---

## [Strftime and AM/PM](https://www.ruby-forum.com/t/strftime-and-am-pm/120034)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 2\
**Last updated:** [November 13, 2007, 9:17am UTC](https://www.ruby-forum.com/t/strftime-and-am-pm/120034 "2007-11-13T09:17:05Z")

</div>

Hi all I am trying to format a mysql datetime attribute in my view. I have tried strftime(%r) as well as strftime(’%I:%M:%p’) In neither of the cases do I get the AM/PM parts. Anyone have a clue/pointer? thanks Ivo…

---

## [HELP ME PLEASE: Can't get REST resource list!](https://www.ruby-forum.com/t/help-me-please-cant-get-rest-resource-list/119986)

<div class="topic-metadata">

**Author:** [@gianluca\_t](https://www.ruby-forum.com/u/gianluca_t)\
**Replies:** 2\
**Last updated:** [November 13, 2007, 8:41am UTC](https://www.ruby-forum.com/t/help-me-please-cant-get-rest-resource-list/119986 "2007-11-13T08:41:24Z")

</div>

Hi to all, I just started with REST development, I created a very simple scaffold\_resource and a client app to test it. All verbs works well but not list !!! Here what I give when call Airport.find(:all) ./activeres…

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

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