# Rails

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

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

---

## [Newbie question: updating a child row from a form](https://www.ruby-forum.com/t/newbie-question-updating-a-child-row-from-a-form/92457)

<div class="topic-metadata">

**Author:** [@emilsebastian](https://www.ruby-forum.com/u/emilsebastian)\
**Replies:** 0\
**Last updated:** [April 19, 2007, 5:48pm UTC](https://www.ruby-forum.com/t/newbie-question-updating-a-child-row-from-a-form/92457 "2007-04-19T17:48:37Z")

</div>

Hi, I have two models in my application, User and Profile, looking like this: class User \< ActiveRecord::Base has\_one :profile, :dependent =\> :destroy end class Profile \< ActiveRecord::Base belongs\_to :user end W…

---

## [How to redirect to other action when it is called using ajax](https://www.ruby-forum.com/t/how-to-redirect-to-other-action-when-it-is-called-using-ajax/92426)

<div class="topic-metadata">

**Author:** [@stanly](https://www.ruby-forum.com/u/stanly)\
**Replies:** 1\
**Last updated:** [April 19, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/how-to-redirect-to-other-action-when-it-is-called-using-ajax/92426 "2007-04-19T17:19:36Z")

</div>

Hi all, I am using javascript to call an action with some parameters. In that action i decide on the basis of parameters either to render some text on that page or to re direct to some other page. But its seems that m…

---

## [Re: Most common production OS](https://www.ruby-forum.com/t/re-most-common-production-os/92455)

<div class="topic-metadata">

**Author:** [@piet](https://www.ruby-forum.com/u/piet)\
**Replies:** 0\
**Last updated:** [April 19, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/re-most-common-production-os/92455 "2007-04-19T17:19:15Z")

</div>

Scott, Static files are handled by apache. I’m planning on replacing apache with nginx on one server though. It needs to serve loads of static files (as part of the Rails app), and I hear those are better handled by …

---

## [Delete div content automatically after 2 seconds](https://www.ruby-forum.com/t/delete-div-content-automatically-after-2-seconds/92391)

<div class="topic-metadata">

**Author:** [@ehudros](https://www.ruby-forum.com/u/ehudros)\
**Replies:** 3\
**Last updated:** [April 19, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/delete-div-content-automatically-after-2-seconds/92391 "2007-04-19T17:19:15Z")

</div>

Hi everyone, I’d like to display a text in a div (an error message returned from an ajax form) for 2 seconds and then delete the div content. I do not want the div itself to fade out using scriptacolous - I want the…

---

## [Is anyone interested in a contract job programming Ruby?](https://www.ruby-forum.com/t/is-anyone-interested-in-a-contract-job-programming-ruby/92454)

<div class="topic-metadata">

**Author:** [@bmggusa](https://www.ruby-forum.com/u/bmggusa)\
**Replies:** 1\
**Last updated:** [April 19, 2007, 5:09pm UTC](https://www.ruby-forum.com/t/is-anyone-interested-in-a-contract-job-programming-ruby/92454 "2007-04-19T17:09:13Z")

</div>

About a year and a half ago we used a freelance programmer to build a database for one of our companies. We designed the layout and parameters and he programmed the Ruby language for us. The system has worked out qu…

---

## [Newbie :: Help ! (database record compare)](https://www.ruby-forum.com/t/newbie-help-database-record-compare/91563)

<div class="topic-metadata">

**Author:** [@aveo](https://www.ruby-forum.com/u/aveo)\
**Replies:** 7\
**Last updated:** [April 19, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/newbie-help-database-record-compare/91563 "2007-04-19T17:07:13Z")

</div>

Hi all, I’ve a two simple table, resource resource.id resource.name resource.contact and project project.id project.name project.resource\_id (id from resource table) I want to display list of project that only…

---

## [Re: Most common production OS](https://www.ruby-forum.com/t/re-most-common-production-os/92453)

<div class="topic-metadata">

**Author:** [@piet](https://www.ruby-forum.com/u/piet)\
**Replies:** 1\
**Last updated:** [April 19, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/re-most-common-production-os/92453 "2007-04-19T17:01:12Z")

</div>

RHEL/Centos, running mongrel cluster and haproxy. Rails uses Oracle, which lives on a dedicated server, but the rails server also contains a postgresql and mysql db (and a shitload of other apps). Average uptime: 400…

---

## [Most common production OS](https://www.ruby-forum.com/t/most-common-production-os/92438)

<div class="topic-metadata">

**Author:** [@blakeage](https://www.ruby-forum.com/u/blakeage)\
**Replies:** 2\
**Last updated:** [April 19, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/most-common-production-os/92438 "2007-04-19T16:49:07Z")

</div>

What OS do you deploy to? What is your average uptime? What database are you using?

---

## [Routing question](https://www.ruby-forum.com/t/routing-question/92374)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 4\
**Last updated:** [April 19, 2007, 4:32pm UTC](https://www.ruby-forum.com/t/routing-question/92374 "2007-04-19T16:32:26Z")

</div>

I am trying to add a WordPress blog to my rails app. I have installed WP in rails/myapp/public/blog with the hope that the actual URL will look like www.mydomain.com/blog. How do I tell rails to let WP handle reques…

---

## [Acces to restfull route paths in models](https://www.ruby-forum.com/t/acces-to-restfull-route-paths-in-models/92261)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 3\
**Last updated:** [April 19, 2007, 3:55pm UTC](https://www.ruby-forum.com/t/acces-to-restfull-route-paths-in-models/92261 "2007-04-19T15:55:56Z")

</div>

Hello, I’m not sure wether this has already been asked on this forum. I’m trying to create a method in my model which returns a path/url. It seems like I can’t have acces to the restfull routing system from my models. …

---

## [How to generate rDoc for a plugin?](https://www.ruby-forum.com/t/how-to-generate-rdoc-for-a-plugin/92446)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 2\
**Last updated:** [April 19, 2007, 3:47pm UTC](https://www.ruby-forum.com/t/how-to-generate-rdoc-for-a-plugin/92446 "2007-04-19T15:47:19Z")

</div>

Hi, I have a new plugin that I would like to generate the RDoc for. Is there a command to do this? Thanks Scott

---

## [Newbie :: multiple database](https://www.ruby-forum.com/t/newbie-multiple-database/92431)

<div class="topic-metadata">

**Author:** [@aveo](https://www.ruby-forum.com/u/aveo)\
**Replies:** 1\
**Last updated:** [April 19, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/newbie-multiple-database/92431 "2007-04-19T15:21:48Z")

</div>

Hi all, I’ve a three simple table, resource resource.id resource.name resource.contact project project.id project.name project.resource\_id (id from resource table) and training training.id training.name trai…

---

## [Adding dynamic field to a model](https://www.ruby-forum.com/t/adding-dynamic-field-to-a-model/92208)

<div class="topic-metadata">

**Author:** [@damianrr](https://www.ruby-forum.com/u/damianrr)\
**Replies:** 6\
**Last updated:** [April 19, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/adding-dynamic-field-to-a-model/92208 "2007-04-19T15:20:47Z")

</div>

Hi, here i describe my problem: mi application must allow 2 basic issues: first: the users may be able to create ‘people’ (this would be a model with a scaffold, and is not an issue, the problem comes with requiereme…

---

## [Session problem mongrel behind Apache proxy](https://www.ruby-forum.com/t/session-problem-mongrel-behind-apache-proxy/92442)

<div class="topic-metadata">

**Author:** [@nist](https://www.ruby-forum.com/u/nist)\
**Replies:** 0\
**Last updated:** [April 19, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/session-problem-mongrel-behind-apache-proxy/92442 "2007-04-19T15:17:40Z")

</div>

Hi, I’ve configured mongrel\_clusters behind an Apache 2.2 proxy using named virtual host. Session are saved as ActiveRecordSession. But the cookies created on client side doesn’t correspond to session data saved in d…

---

## [Pagination problem: pagination anchors not working](https://www.ruby-forum.com/t/pagination-problem-pagination-anchors-not-working/92441)

<div class="topic-metadata">

**Author:** [@stanly](https://www.ruby-forum.com/u/stanly)\
**Replies:** 0\
**Last updated:** [April 19, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/pagination-problem-pagination-anchors-not-working/92441 "2007-04-19T15:14:04Z")

</div>

Hello everyone, I am having some problem with the navigation anchors of paginator. Here are the details of what i am doing: I have a list of users displayed in the “list” action obtained from the db. Now in the view …

---

## [Form.text\_field display of sql decimal](https://www.ruby-forum.com/t/form-text-field-display-of-sql-decimal/92395)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 19, 2007, 2:52pm UTC](https://www.ruby-forum.com/t/form-text-field-display-of-sql-decimal/92395 "2007-04-19T14:52:37Z")

</div>

hey all, I’ve got this column in a mysql table: wholesale\_price decimal(6,2) this is the actual value that is currently stored in the db: ±----------------+ | wholesale\_price | ±----------------+ | 19.00…

---

## [Problem: To retrive a specific column by method.find](https://www.ruby-forum.com/t/problem-to-retrive-a-specific-column-by-method-find/92416)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 2\
**Last updated:** [April 19, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/problem-to-retrive-a-specific-column-by-method-find/92416 "2007-04-19T14:36:33Z")

</div>

hi guys, the method all\_data retrive all data from a table def all\_data @output\_column = OutputColumn.find :all end But I want to retrive a person\_name column to generate a list of all person… so how can i do it? …

---

## [Chat in RoR](https://www.ruby-forum.com/t/chat-in-ror/92329)

<div class="topic-metadata">

**Author:** [@ivanstorck](https://www.ruby-forum.com/u/ivanstorck)\
**Replies:** 10\
**Last updated:** [April 19, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/chat-in-ror/92329 "2007-04-19T14:05:29Z")

</div>

hello, is it possible in easy way to do chat in RoR. i mean something similar to http://www.lingr.com/ Maybe there is some plugin or library, which can do the chat in easy way. if not, how to do it directly in the R…

---

## [Checking validity of NHS numbers](https://www.ruby-forum.com/t/checking-validity-of-nhs-numbers/92369)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 2\
**Last updated:** [April 19, 2007, 1:11pm UTC](https://www.ruby-forum.com/t/checking-validity-of-nhs-numbers/92369 "2007-04-19T13:11:35Z")

</div>

Hello I need to check that the NHS numbers in my database are valid. I’m storing them as ten-digit strings: the first nine are the identifier and the tenth is a check digit. There are four steps to calculating the ch…

---

## [EzCrypto library usage problem in linux](https://www.ruby-forum.com/t/ezcrypto-library-usage-problem-in-linux/92423)

<div class="topic-metadata">

**Author:** [@kumar](https://www.ruby-forum.com/u/kumar)\
**Replies:** 1\
**Last updated:** [April 19, 2007, 12:30pm UTC](https://www.ruby-forum.com/t/ezcrypto-library-usage-problem-in-linux/92423 "2007-04-19T12:30:57Z")

</div>

Hi, I have installed ezcrypto-0.7 version. I have used “require EzCrypto” statement for EzCrypto library. In case of windows “require EzCrypto” statement is not giving problem, it’s working properly. In case of linu…

---

## [Change URL without actually changing?](https://www.ruby-forum.com/t/change-url-without-actually-changing/92404)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 6\
**Last updated:** [April 19, 2007, 12:20pm UTC](https://www.ruby-forum.com/t/change-url-without-actually-changing/92404 "2007-04-19T12:20:53Z")

</div>

Is it possible to change the URL in the browser window without actually going there? I know I’ve seen flash apps do this. Yahoo maps is an example. Thanks for your help.

---

## [Preselected dropdown select in form](https://www.ruby-forum.com/t/preselected-dropdown-select-in-form/92372)

<div class="topic-metadata">

**Author:** [@pingala](https://www.ruby-forum.com/u/pingala)\
**Replies:** 1\
**Last updated:** [April 19, 2007, 12:14pm UTC](https://www.ruby-forum.com/t/preselected-dropdown-select-in-form/92372 "2007-04-19T12:14:51Z")

</div>

Hi, quite new to rails and ruby… so still wondering how does it work… :wink: i have three tables structured as follow: categories recipes steps where steps belongs\_to recipe recipes belongs\_to category and cate…

---

## [One Rails app, One machine, One IP address, Multiple virtual](https://www.ruby-forum.com/t/one-rails-app-one-machine-one-ip-address-multiple-virtual/92191)

<div class="topic-metadata">

**Author:** [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Replies:** 2\
**Last updated:** [April 19, 2007, 12:07pm UTC](https://www.ruby-forum.com/t/one-rails-app-one-machine-one-ip-address-multiple-virtual/92191 "2007-04-19T12:07:50Z")

</div>

Hi, I deployed my app on a dedicated production machine which runs GNU/ Linux Debian Sarge, Ruby 1.8.5, Rails 1.1.6, and it’s served with LightTPD 1.4.11 and FastCGI. The machine is a VMWare virtual machine with 512 …

---

## [Removing the charset in Content-Type](https://www.ruby-forum.com/t/removing-the-charset-in-content-type/92399)

<div class="topic-metadata">

**Author:** [@metrix](https://www.ruby-forum.com/u/metrix)\
**Replies:** 4\
**Last updated:** [April 19, 2007, 11:22am UTC](https://www.ruby-forum.com/t/removing-the-charset-in-content-type/92399 "2007-04-19T11:22:13Z")

</div>

Hey everyone Is there a way to remove the charset= from the Content-Type response header? I’m using mongrel and it puts out a content-type like this for for playlist files: Content-Type: audio/x-scpls; charset=utf-8 …

---

## [Noob struggling to learn](https://www.ruby-forum.com/t/noob-struggling-to-learn/91218)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [April 19, 2007, 11:07am UTC](https://www.ruby-forum.com/t/noob-struggling-to-learn/91218 "2007-04-19T11:07:44Z")

</div>

I am learning Rails by building a real application for someone. Ultimately the app may become a much larger thing, however for now i am concentrating on just a tricky login situation. I will essentially have 2 pages,…

---

## [Just started with RubyOnRails](https://www.ruby-forum.com/t/just-started-with-rubyonrails/92405)

<div class="topic-metadata">

**Author:** [@Friedrich\_L](https://www.ruby-forum.com/u/Friedrich_L)\
**Replies:** 2\
**Last updated:** [April 19, 2007, 11:03am UTC](https://www.ruby-forum.com/t/just-started-with-rubyonrails/92405 "2007-04-19T11:03:54Z")

</div>

Dear gentlemen/madams, i am in need to develop a program that is supposed to use the web as its primary support for user interface. It is supposed to be developed in three tier: model, logic, view. I do enjoy programm…

---

## [Naming + existing engines](https://www.ruby-forum.com/t/naming-existing-engines/92394)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 1\
**Last updated:** [April 19, 2007, 10:49am UTC](https://www.ruby-forum.com/t/naming-existing-engines/92394 "2007-04-19T10:49:33Z")

</div>

Hey all, is there any list of Engine-based plugins out there already? Any way to find new ones that might be useful? (This would make a great FAQ entry…) Also, I’m currently finishing up my first Engine for public co…

---

## [Cannot get datebocks to work](https://www.ruby-forum.com/t/cannot-get-datebocks-to-work/86684)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 19\
**Last updated:** [April 19, 2007, 10:25am UTC](https://www.ruby-forum.com/t/cannot-get-datebocks-to-work/86684 "2007-04-19T10:25:21Z")

</div>

Hi, Does anybody in here having experience with getting datebocks to work. I have installed engines and datebocks-engines according to the instructions on http://datebocks.inimit.com/ The error I get is this one: Sh…

---

## [Odd button behaviour](https://www.ruby-forum.com/t/odd-button-behaviour/92380)

<div class="topic-metadata">

**Author:** [@seeah](https://www.ruby-forum.com/u/seeah)\
**Replies:** 3\
**Last updated:** [April 19, 2007, 10:11am UTC](https://www.ruby-forum.com/t/odd-button-behaviour/92380 "2007-04-19T10:11:08Z")

</div>

Working on an odd one here. I’ve got a simple scaffold that for some reason doesn’t catch the correct data back on boolean fields. That’s to say that every time I load the page, every single true/false menu option i…

---

## [Basic question about mongrel](https://www.ruby-forum.com/t/basic-question-about-mongrel/92409)

<div class="topic-metadata">

**Author:** [@anakintang](https://www.ruby-forum.com/u/anakintang)\
**Replies:** 2\
**Last updated:** [April 19, 2007, 9:30am UTC](https://www.ruby-forum.com/t/basic-question-about-mongrel/92409 "2007-04-19T09:30:17Z")

</div>

I am new to rails and try to setup mongrel on my windows machine. When execute “gem install mongrel” shall I choose mongrel 1.0.1(ruby) or mongrel 1.0.1(win32)? If I choose mongrel 1.0.1(ruby), I will get “nmake” not …

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

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