# Top

**URL:** https://www.ruby-forum.com/top.md?page=1563

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

---

## [Navigation Bug?](https://www.ruby-forum.com/t/navigation-bug/112129)

<div class="topic-metadata">

**Author:** [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Replies:** 3\
**Last updated:** [August 15, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/navigation-bug/112129 "2007-08-15T21:21:28Z")

</div>

I am currently working on a site with a rather convoluted navigation scheme (it wasn’t my decision, the graphic designer came up with it, and the client likes it, so I must comply). When trying to simplify and DRY up …

---

## [Search Extension](https://www.ruby-forum.com/t/search-extension/110962)

<div class="topic-metadata">

**Author:** [@Sharon\_C](https://www.ruby-forum.com/u/Sharon_C)\
**Replies:** 3\
**Last updated:** [August 1, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/search-extension/110962 "2007-08-01T17:19:45Z")

</div>

I would like to add a search box to the home page of our radiant site that will search only within the site. I have exported the search extension (which I hope may do this), into the extensions folder within radiant a…

---

## [Rendering a different view depending on model attributes](https://www.ruby-forum.com/t/rendering-a-different-view-depending-on-model-attributes/103283)

<div class="topic-metadata">

**Author:** [@d2kagw](https://www.ruby-forum.com/u/d2kagw)\
**Replies:** 3\
**Last updated:** [May 3, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/rendering-a-different-view-depending-on-model-attributes/103283 "2007-05-03T20:33:56Z")

</div>

Is there a good way to render a different view based on a models attributes? For instance, say there is a model called Form, which belongs to an Office. And there are 2 offices, say Pre and Post, each one using a di…

---

## [Rubyforge ViewVC Stats](https://www.ruby-forum.com/t/rubyforge-viewvc-stats/92450)

<div class="topic-metadata">

**Author:** [@burrowsm](https://www.ruby-forum.com/u/burrowsm)\
**Replies:** 3\
**Last updated:** [April 20, 2007, 4:21am UTC](https://www.ruby-forum.com/t/rubyforge-viewvc-stats/92450 "2007-04-20T04:21:27Z")

</div>

Rubyforge ViewVC is running pretty smooth now and here are some stats from the first week. http://blog.mmmultiworks.com/2007/4/19/rubyforge-viewvc-stats Enjoy, Matt Bauer Mosquito Mole Multiworks

---

## [How to get the content of text\_area in controller?](https://www.ruby-forum.com/t/how-to-get-the-content-of-text-area-in-controller/91461)

<div class="topic-metadata">

**Author:** [@feng](https://www.ruby-forum.com/u/feng)\
**Replies:** 3\
**Last updated:** [April 11, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/how-to-get-the-content-of-text-area-in-controller/91461 "2007-04-11T17:07:51Z")

</div>

hi all, i have a text\_area \<%= text\_area :myarea, :rows =\> 20, :cols =\> 40 %\> and want to get it’s content when submit due to form\_remote\_tag. how can i get it’s content where user input ? i tried @context = para…

---

## [Como tener URL's mas semanticas?](https://www.ruby-forum.com/t/como-tener-urls-mas-semanticas/88962)

<div class="topic-metadata">

**Author:** [@rub3n](https://www.ruby-forum.com/u/rub3n)\
**Replies:** 3\
**Last updated:** [March 16, 2007, 8:42am UTC](https://www.ruby-forum.com/t/como-tener-urls-mas-semanticas/88962 "2007-03-16T08:42:54Z")

</div>

Amigos una consulta, como puedo hacer que las URL’s, se muestren algo asi: http://tienda.com/productos/camisa-verde-small en ves de: http://tienda.com/productos/P0141 No estoy seguro si es una consulta directamente …

---

## [Plug in del tipo act\_as](https://www.ruby-forum.com/t/plug-in-del-tipo-act-as/83381)

<div class="topic-metadata">

**Author:** [@Chika](https://www.ruby-forum.com/u/Chika)\
**Replies:** 3\
**Last updated:** [February 1, 2007, 11:15pm UTC](https://www.ruby-forum.com/t/plug-in-del-tipo-act-as/83381 "2007-02-01T23:15:19Z")

</div>

Por favor, no sÃ© como se utilizan los plug in del tipo act\_as.He buscado informaciÃ³n pero esta toda en ingles y me mareo y quedo igual. Por favor si alguien sabe cÃ³mo se utilizan,dÃ³nde debo se hacen las definicione…

---

## [What gui tool does david use in that screencast?](https://www.ruby-forum.com/t/what-gui-tool-does-david-use-in-that-screencast/80942)

<div class="topic-metadata">

**Author:** [@microtime](https://www.ruby-forum.com/u/microtime)\
**Replies:** 3\
**Last updated:** [January 2, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/what-gui-tool-does-david-use-in-that-screencast/80942 "2007-01-02T16:25:55Z")

</div>

the admin tool for mysql he used in that video,—http://media.rubyonrails.org/video/rails\_take2\_with\_sound.mov, i download mysqladminister ,but it is for mysql5.0,and my version is 4.1.25, it often tells me that i hav…

---

## [Need help with rgnuplot](https://www.ruby-forum.com/t/need-help-with-rgnuplot/77760)

<div class="topic-metadata">

**Author:** [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Replies:** 3\
**Last updated:** [December 1, 2006, 4:26pm UTC](https://www.ruby-forum.com/t/need-help-with-rgnuplot/77760 "2006-12-01T16:26:18Z")

</div>

Hi, I am using the rgplot module from rubyforge to enable users to plot charts of data from my database. The plots generated are .png images and I am saving them to my application’s public/images folder. Has anyone e…

---

## [Se genera &amp; en lugar de & al hacer un link\_to](https://www.ruby-forum.com/t/se-genera-amp-en-lugar-de-al-hacer-un-link-to/77629)

<div class="topic-metadata">

**Author:** [@Daniel\_RSTroitiSSS](https://www.ruby-forum.com/u/Daniel_RSTroitiSSS)\
**Replies:** 3\
**Last updated:** [November 29, 2006, 1:38pm UTC](https://www.ruby-forum.com/t/se-genera-amp-en-lugar-de-al-hacer-un-link-to/77629 "2006-11-29T13:38:54Z")

</div>

On 11/29/06, Tomás Lucas A. removed\_email\_address@domain.invalid wrote: \</td\> 2007 - November La versión de ruby es la: 1.8.4 Ror-es mailing list removed\_email\_address@domain.invalid http://lists.simplelogica.…

---

## [User.find avec conditions retourne "Couldn't find User witho](https://www.ruby-forum.com/t/user-find-avec-conditions-retourne-couldnt-find-user-witho/71143)

<div class="topic-metadata">

**Author:** [@teddio](https://www.ruby-forum.com/u/teddio)\
**Replies:** 3\
**Last updated:** [October 5, 2006, 5:39pm UTC](https://www.ruby-forum.com/t/user-find-avec-conditions-retourne-couldnt-find-user-witho/71143 "2006-10-05T17:39:05Z")

</div>

Bonjour, C’est mon premier message sur la liste, et c’est ma premiÃ¨re semaine de programmation avec Ruby on Rails. Dans mon application, j’ai des Users pour lesquels sont renseignÃ©s 2 champs nommÃ©s “latitude” et “…

---

## [A serverless, rich-client rails app](https://www.ruby-forum.com/t/a-serverless-rich-client-rails-app/68232)

<div class="topic-metadata">

**Author:** [@smithy](https://www.ruby-forum.com/u/smithy)\
**Replies:** 3\
**Last updated:** [September 11, 2006, 10:27pm UTC](https://www.ruby-forum.com/t/a-serverless-rich-client-rails-app/68232 "2006-09-11T22:27:05Z")

</div>

My ambition is to create a rails app that runs locally within a desktop application (obviously, one that connects to a browser engine). To bypass the need for a server running, I’d like to use sqlite3. My problem is t…

---

## [Relative merits of synchronization techniques](https://www.ruby-forum.com/t/relative-merits-of-synchronization-techniques/67787)

<div class="topic-metadata">

**Author:** [@jconley](https://www.ruby-forum.com/u/jconley)\
**Replies:** 3\
**Last updated:** [September 8, 2006, 9:40pm UTC](https://www.ruby-forum.com/t/relative-merits-of-synchronization-techniques/67787 "2006-09-08T21:40:58Z")

</div>

I’d like to hear your thoughts comparing “center of goodness” vs. “zero crossing adjust” techniques for recovering bit timing and deframing in an oversampled NRZ sample stream (I’m sure there are better names for thes…

---

## [Scaling Ferret Beyond One Server](https://www.ruby-forum.com/t/scaling-ferret-beyond-one-server/98490)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 3\
**Last updated:** [July 18, 2006, 1:37am UTC](https://www.ruby-forum.com/t/scaling-ferret-beyond-one-server/98490 "2006-07-18T01:37:24Z")

</div>

Hi Everyone, I was wondering if folks here have had experience scaling Ferret beyond a single server? Currently, we are running Ferret in the same physical server as its Rails front end (via acts\_as\_ferret), but it…

---

## [\[ANN\] My first public Rails site - poker training aids](https://www.ruby-forum.com/t/ann-my-first-public-rails-site-poker-training-aids/63026)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 3\
**Last updated:** [June 11, 2006, 4:54pm UTC](https://www.ruby-forum.com/t/ann-my-first-public-rails-site-poker-training-aids/63026 "2006-06-11T16:54:27Z")

</div>

What’s up everybody? I finally released my site yesterday to the public, the first Rails site I’ve done, and I’m excited as hell about it. I’ve done lots of intranet stuff for local companies, but this is the first …

---

## [STI, HABTM & counter\_cache](https://www.ruby-forum.com/t/sti-habtm-counter-cache/61296)

<div class="topic-metadata">

**Author:** [@subimage](https://www.ruby-forum.com/u/subimage)\
**Replies:** 3\
**Last updated:** [May 23, 2006, 9:20am UTC](https://www.ruby-forum.com/t/sti-habtm-counter-cache/61296 "2006-05-23T09:20:01Z")

</div>

Hello world… I have an interesting issue that the online docs aren’t helping me with. In my app I have 4 models Item \< ActiveRecord Deal \< Item Product \< Item Category \< ActiveRecord Item has\_and\_belongs\_to\_many :…

---

## [Where do you require?](https://www.ruby-forum.com/t/where-do-you-require/60133)

<div class="topic-metadata">

**Author:** [@wirelesspower](https://www.ruby-forum.com/u/wirelesspower)\
**Replies:** 3\
**Last updated:** [May 10, 2006, 5:18pm UTC](https://www.ruby-forum.com/t/where-do-you-require/60133 "2006-05-10T17:18:28Z")

</div>

I was reading through some of Why’s parkplace code this afternoon, and I saw a couple things I wanted to ask people about. (http://code.whytheluckystiff.net/parkplace/browser/trunk/lib/parkplace.rb) What’s the effec…

---

## [Help with rails and apache](https://www.ruby-forum.com/t/help-with-rails-and-apache/87280)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 3\
**Last updated:** [March 26, 2006, 10:17pm UTC](https://www.ruby-forum.com/t/help-with-rails-and-apache/87280 "2006-03-26T22:17:44Z")

</div>

i just went through the tutorial on http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel but i’m having some problems. when i add: FastCgiIpcDir /tmp/fcgi\_ipc/ AddHandler fastcgi-script .f…

---

## [Multiple website section = multiple controllers?](https://www.ruby-forum.com/t/multiple-website-section-multiple-controllers/55317)

<div class="topic-metadata">

**Author:** [@weirdmonkey](https://www.ruby-forum.com/u/weirdmonkey)\
**Replies:** 3\
**Last updated:** [March 19, 2006, 8:48pm UTC](https://www.ruby-forum.com/t/multiple-website-section-multiple-controllers/55317 "2006-03-19T20:48:07Z")

</div>

Hi! I am totally new to ruby on rails and dynamic website creation (never done php or asp). I am reading “Agile Web D. with Rails” by D.Thomas, and I am wondering if I need to create multiple scaffold and controllers…

---

## [Weird stylesheet\_link\_tag issue after moving servers](https://www.ruby-forum.com/t/weird-stylesheet-link-tag-issue-after-moving-servers/55280)

<div class="topic-metadata">

**Author:** [@frank](https://www.ruby-forum.com/u/frank)\
**Replies:** 3\
**Last updated:** [March 19, 2006, 5:07am UTC](https://www.ruby-forum.com/t/weird-stylesheet-link-tag-issue-after-moving-servers/55280 "2006-03-19T05:07:38Z")

</div>

Dear experts, I am in the process of switching servers for my application. Before the move everything was working properly. After the move \<%= stylesheet\_link\_tag ‘/stylesheets/styles.css’ %\> generates Before th…

---

## [Problem with a selfmade helper method](https://www.ruby-forum.com/t/problem-with-a-selfmade-helper-method/64441)

<div class="topic-metadata">

**Author:** [@timo](https://www.ruby-forum.com/u/timo)\
**Replies:** 3\
**Last updated:** [January 23, 2006, 4:50pm UTC](https://www.ruby-forum.com/t/problem-with-a-selfmade-helper-method/64441 "2006-01-23T16:50:48Z")

</div>

Hi all, i tried to set up the helper method “grouped\_programs\_selector” in application\_helpers.rb. Since i dont have a deep understanding of Ruby itself, I pretty much copied the Grouped Selection List (Chapter 17, pp…

---

## [Can Google (et. al.) see rails pages?](https://www.ruby-forum.com/t/can-google-et-al-see-rails-pages/64335)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 3\
**Last updated:** [January 23, 2006, 5:46am UTC](https://www.ruby-forum.com/t/can-google-et-al-see-rails-pages/64335 "2006-01-23T05:46:20Z")

</div>

Hi, Noob here. One problem faced by developers of active content is making sure that the final results of their magic result in URL’s that Google and other search engines are comfortable with. Otherwise, your conten…

---

## [Testing Gems](https://www.ruby-forum.com/t/testing-gems/95013)

<div class="topic-metadata">

**Author:** [@Caleb\_T](https://www.ruby-forum.com/u/Caleb_T)\
**Replies:** 3\
**Last updated:** [January 11, 2006, 3:23pm UTC](https://www.ruby-forum.com/t/testing-gems/95013 "2006-01-11T15:23:40Z")

</div>

According to http://docs.rubygems.org/read/chapter/20#test\_files, the test\_files section of the gemspec file lists test files that are loaded “when the user requests a gem to be unit tested”. Is there a gem command t…

---

## [Problems with lighty on linux](https://www.ruby-forum.com/t/problems-with-lighty-on-linux/51232)

<div class="topic-metadata">

**Author:** [@phil\_swenson](https://www.ruby-forum.com/u/phil_swenson)\
**Replies:** 3\
**Last updated:** [December 28, 2005, 6:55pm UTC](https://www.ruby-forum.com/t/problems-with-lighty-on-linux/51232 "2005-12-28T18:55:31Z")

</div>

I’m trying to get our app running on Lighty… I followed Ezra’s instructions: http://brainspl.at/pages/rails\_stack… Currently the app runs fine with webrick, but with lighty I get 404 errors on everything. I found if I…

---

## [Is ruby C source code more complex than python C source code?](https://www.ruby-forum.com/t/is-ruby-c-source-code-more-complex-than-python-c-source-code/224066)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [October 29, 2012, 5:43am UTC](https://www.ruby-forum.com/t/is-ruby-c-source-code-more-complex-than-python-c-source-code/224066 "2012-10-29T05:43:34Z")

</div>

Hello, Is ruby C source code more complex than python C source code? Thanks.

---

## [Migration not creating new user object](https://www.ruby-forum.com/t/migration-not-creating-new-user-object/188770)

<div class="topic-metadata">

**Author:** [@ali](https://www.ruby-forum.com/u/ali)\
**Replies:** 5\
**Last updated:** [May 19, 2010, 6:42am UTC](https://www.ruby-forum.com/t/migration-not-creating-new-user-object/188770 "2010-05-19T06:42:15Z")

</div>

Hi, so I’m new to rails development, and I’m following a book called Practical Rails: Social Networking Sites. There’s a user role system that the book develops, each user has a one or more roles and vice versa. So I …

---

## [Easy way to make Rails use MySQL on Windows?](https://www.ruby-forum.com/t/easy-way-to-make-rails-use-mysql-on-windows/188523)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 5\
**Last updated:** [May 13, 2010, 9:19pm UTC](https://www.ruby-forum.com/t/easy-way-to-make-rails-use-mysql-on-windows/188523 "2010-05-13T21:19:18Z")

</div>

I set up Rails from scratch using the methods on: http://rubyonrails.org/download and also: gem install sqlite3-ruby download sqlite3.dll into c:\\ruby\\bin change config/database.yml adapter lines for dev, test, prod…

---

## [Secuiyrt issue in App](https://www.ruby-forum.com/t/secuiyrt-issue-in-app/186345)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 5\
**Last updated:** [April 5, 2010, 4:38pm UTC](https://www.ruby-forum.com/t/secuiyrt-issue-in-app/186345 "2010-04-05T16:38:06Z")

</div>

Hi, I am facing a following problem:- I have app in which user can edit his/her personal information and we are showing it on browser. Some of users has added “” javascript in name textbox. Due to this whenever I am…

---

## [Basic Rails questions](https://www.ruby-forum.com/t/basic-rails-questions/184126)

<div class="topic-metadata">

**Author:** [@Hussein\_B](https://www.ruby-forum.com/u/Hussein_B)\
**Replies:** 5\
**Last updated:** [February 26, 2010, 3:01am UTC](https://www.ruby-forum.com/t/basic-rails-questions/184126 "2010-02-26T03:01:07Z")

</div>

Hey, I’m doing a little research regarding Rails, so please forgive my questions. Prototype is bundled with Rails, is it possible to employ jQuery instead of Prototype? If yes, how much it is hard to do so? does it …

---

## [Cookies multiple values](https://www.ruby-forum.com/t/cookies-multiple-values/178911)

<div class="topic-metadata">

**Author:** [@cookierails](https://www.ruby-forum.com/u/cookierails)\
**Replies:** 5\
**Last updated:** [November 13, 2009, 11:32pm UTC](https://www.ruby-forum.com/t/cookies-multiple-values/178911 "2009-11-13T23:32:49Z")

</div>

Hello.I want to create a cookie with multiple values and call them individually. How it works?

---

## [Text lines manipulation](https://www.ruby-forum.com/t/text-lines-manipulation/174677)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 5\
**Last updated:** [August 31, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/text-lines-manipulation/174677 "2009-08-31T16:33:55Z")

</div>

have a set of lines like shown below: #set1 1-3 3-5 6-7 #set2 20-23 450-550 #set3 1-50 20-56 The idea is to read each of the lines associated with each set and do some manipulation? any easy way of doing thi…

---

## [List of quiz questions](https://www.ruby-forum.com/t/list-of-quiz-questions/174124)

<div class="topic-metadata">

**Author:** [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Replies:** 5\
**Last updated:** [August 21, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/list-of-quiz-questions/174124 "2009-08-21T16:00:48Z")

</div>

hello, do you know where I can find a list of the quiz questions of the comp.lang.ruby ML? I found it some time ago, but impossible to retrieve it now. thanks, lolveley.

---

## [\[Feature: trunk\] \*\_memsize()](https://www.ruby-forum.com/t/feature-trunk-memsize/170237)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 5\
**Last updated:** [June 15, 2009, 11:35am UTC](https://www.ruby-forum.com/t/feature-trunk-memsize/170237 "2009-06-15T11:35:04Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!$"$k%\*%V%8%'%/%H$,$I$NDxEY%a%b%j$r?)$C$F$$$k$N$+D4$Y$k$?$a$NBN7O$r:n$ke(B e$B$N$O$I$&$G$7$g$&$+!%e(B rb\_ary\_memsize(), onig\_memsize(), rb\_str\_memsize(), rb\_io\_memsize(), st\_memsize(), rb\_tra…

---

## [Migrations and production databases](https://www.ruby-forum.com/t/migrations-and-production-databases/170140)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 5\
**Last updated:** [June 12, 2009, 9:26pm UTC](https://www.ruby-forum.com/t/migrations-and-production-databases/170140 "2009-06-12T21:26:40Z")

</div>

I was searching around to see how other people handle the issue of updating a production database during a release of new version of an application, and all I could find is that (according to one post) it was typicall…

---

## [Problem with date object](https://www.ruby-forum.com/t/problem-with-date-object/169922)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 5\
**Last updated:** [June 12, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/problem-with-date-object/169922 "2009-06-12T14:24:49Z")

</div>

Hello All, My problem is i have field “expiry\_date” which is a “date” type. I want to take that date and store it in database as following in controller def create cc\_information = params\[:credit\_card\] @credit\_c…

---

## [Complex Query?](https://www.ruby-forum.com/t/complex-query/163494)

<div class="topic-metadata">

**Author:** [@partydrone](https://www.ruby-forum.com/u/partydrone)\
**Replies:** 5\
**Last updated:** [March 23, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/complex-query/163494 "2009-03-23T23:52:49Z")

</div>

I need to perform a Rails find with the following data model in my controller: download\_types --\> downloads --\> downloads\_products \<-- products I want to grab all downloads for a given product\_id and list them b…

---

## [selectedIndex update](https://www.ruby-forum.com/t/selectedindex-update/153831)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 5\
**Last updated:** [November 23, 2008, 8:48pm UTC](https://www.ruby-forum.com/t/selectedindex-update/153831 "2008-11-23T20:48:28Z")

</div>

I have a table with a collection select object that I am looking update the selectedIndex of using links on the page \<%= collection\_select(:machine, :user\_id, @users, :id, :fullname, {:include\_blank =\> true}, html\_op…

---

## [Multiple file upload](https://www.ruby-forum.com/t/multiple-file-upload/151521)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 5\
**Last updated:** [November 21, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/multiple-file-upload/151521 "2008-11-21T15:06:51Z")

</div>

Hi, i am trying for uploading multiple files using attachment\_fu plugin. i use MultiSelector javascript for this purpose.It helps me to store minimum three files before uploading.but when i deleted one file and repla…

---

## [Tricky hash initialization](https://www.ruby-forum.com/t/tricky-hash-initialization/145913)

<div class="topic-metadata">

**Author:** [@raypereda](https://www.ruby-forum.com/u/raypereda)\
**Replies:** 5\
**Last updated:** [August 15, 2008, 1:55am UTC](https://www.ruby-forum.com/t/tricky-hash-initialization/145913 "2008-08-15T01:55:49Z")

</div>

h = Hash.new {|h,k| h\[k\] = {} } This is one level deep defaults to a fresh new hash. h = Hash.new {|h,k| h\[k\] = Hash.new{ |h2,k2| h2\[k2\] = {} } } This is two levels deep initialization to a fresh new hash. How do I t…

---

## [Functional testing with restful authentication](https://www.ruby-forum.com/t/functional-testing-with-restful-authentication/145562)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 5\
**Last updated:** [August 14, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/functional-testing-with-restful-authentication/145562 "2008-08-14T15:32:28Z")

</div>

I am having trouble getting functional tests to working with restful authentication. I have tried this: require File.dirname(FILE) + ‘/…/test\_helper’ require ‘users\_controller’ class UsersControllerTest \< ActionCont…

---

## [Maintaining referental Integrity](https://www.ruby-forum.com/t/maintaining-referental-integrity/143787)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 5\
**Last updated:** [July 22, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/maintaining-referental-integrity/143787 "2008-07-22T23:01:46Z")

</div>

If I have two models that are in a one-to-one relationship in Ruby on Rails, and I wish to delete a record. How do I make sure I will delete all the related data from both tables? Is there a simple elegant Ruby way t…

---

## [Shared hosting options for small low traffic sites](https://www.ruby-forum.com/t/shared-hosting-options-for-small-low-traffic-sites/139170)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 5\
**Last updated:** [June 1, 2008, 10:44am UTC](https://www.ruby-forum.com/t/shared-hosting-options-for-small-low-traffic-sites/139170 "2008-06-01T10:44:31Z")

</div>

I have a few clients who will need their sites hosted very soon. These are site for local small businesses, and will get little major traffic. So I need a low cost and easy to deploy to hosting solution. Whats the b…

---

## [Observer not working for select field](https://www.ruby-forum.com/t/observer-not-working-for-select-field/138302)

<div class="topic-metadata">

**Author:** [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Replies:** 5\
**Last updated:** [May 22, 2008, 2:13pm UTC](https://www.ruby-forum.com/t/observer-not-working-for-select-field/138302 "2008-05-22T14:13:42Z")

</div>

Hi, My code is as follows: select one \<%Report.get\_criteria\_array(report.model\_list, session\[:app\_user\_id\], term\_type).each{|arr|%\> \<%=arr\[1\]%\> \<%}%\> \<%= observe\_field(“criteria\[#{count}\]\[type\_id\]”, :func…

---

## [What remains constant with Rails 1.2 and rails 2.0.2](https://www.ruby-forum.com/t/what-remains-constant-with-rails-1-2-and-rails-2-0-2/137381)

<div class="topic-metadata">

**Author:** [@webreservoir](https://www.ruby-forum.com/u/webreservoir)\
**Replies:** 5\
**Last updated:** [May 12, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/what-remains-constant-with-rails-1-2-and-rails-2-0-2/137381 "2008-05-12T23:44:33Z")

</div>

Hello, I have been waiting for good books on rails 2.0.2, but unfortunately it seems very far. I don’t think… i will be getting very good books like … (1) Rails Space, Ruby for Rails and many other specially written …

---

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

<div class="topic-metadata">

**Author:** [@pimeamark](https://www.ruby-forum.com/u/pimeamark)\
**Replies:** 5\
**Last updated:** [April 9, 2008, 10:21pm UTC](https://www.ruby-forum.com/t/problem-with-text-field-with-auto-complete/134081 "2008-04-09T22:21:22Z")

</div>

I Just looked into how to use text\_field\_with\_auto\_complete, but for some reason it wont work on my page. It gives me this error as an undefined method. undefined method \`text\_field\_with\_auto\_complete’ for #ActionVie…

---

## [Regex in Ruby question](https://www.ruby-forum.com/t/regex-in-ruby-question/129922)

<div class="topic-metadata">

**Author:** [@nefigah](https://www.ruby-forum.com/u/nefigah)\
**Replies:** 5\
**Last updated:** [February 22, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/regex-in-ruby-question/129922 "2008-02-22T21:12:55Z")

</div>

Another newbie question: I’ve just started learning about regex “officially” (reading the O’reilly book) and was trying out some of the examples (porting them to Ruby from Perl). From what I can tell, Ruby’s regex eng…

---

## [AJAX problem](https://www.ruby-forum.com/t/ajax-problem/129479)

<div class="topic-metadata">

**Author:** [@pierreact](https://www.ruby-forum.com/u/pierreact)\
**Replies:** 5\
**Last updated:** [February 20, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/ajax-problem/129479 "2008-02-20T19:57:45Z")

</div>

Hello everyone :slight\_smile: I have this ajax issue, I’d be glad if someone would be willing to help, thanks :slight\_smile: What I try to do: Have a select box with a list of countries. When the country select box …

---

## [Method accesible only from another class](https://www.ruby-forum.com/t/method-accesible-only-from-another-class/123013)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 5\
**Last updated:** [December 13, 2007, 2:13pm UTC](https://www.ruby-forum.com/t/method-accesible-only-from-another-class/123013 "2007-12-13T14:13:52Z")

</div>

I need that a method can be accesible only from other class but only this method: class Nueva def metodo puts ‘metodo’ end def metodo3 puts ‘metodo3’ end private def metodo2 puts ‘metodo2’ end end class Nue…

---

## [Url rewrite help](https://www.ruby-forum.com/t/url-rewrite-help/122519)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [December 8, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/url-rewrite-help/122519 "2007-12-08T19:25:48Z")

</div>

hi i am moving from lighttpd to nginx, and I had this rewrite in lighttd. how do i do this in nginx? “^/\[^/\]+.xml$” =\> “/static$0”, i tried and dint work rewrite ^/\[^/\]+.xml$ /static$1; how do i fix this? tha…

---

## [Why is Logging Silent about SQL Errors?](https://www.ruby-forum.com/t/why-is-logging-silent-about-sql-errors/120352)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 5\
**Last updated:** [November 17, 2007, 11:08pm UTC](https://www.ruby-forum.com/t/why-is-logging-silent-about-sql-errors/120352 "2007-11-17T23:08:26Z")

</div>

I’m experimenting to understand how Rails deals with various errors. When there’s a Ruby or Rails syntax error, we get the stack trace. However, when there’s an SQL error, the entire application appears to be silent a…

[Previous page](https://www.ruby-forum.com/top.md?page=1562&per_page=50)

[Next page](https://www.ruby-forum.com/top.md?page=1564&per_page=50)
