# Rails

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

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

---

## [Rxml cdata problem!](https://www.ruby-forum.com/t/rxml-cdata-problem/116834)

<div class="topic-metadata">

**Author:** [@subicura](https://www.ruby-forum.com/u/subicura)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 10:32am UTC](https://www.ruby-forum.com/t/rxml-cdata-problem/116834 "2007-10-10T10:32:06Z")

</div>

source) xml.list {xml.cdata! “test”} result) but I want to (because firefox don’t understand first result) how to???

---

## [Creating deleting rails sites](https://www.ruby-forum.com/t/creating-deleting-rails-sites/116772)

<div class="topic-metadata">

**Author:** [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Replies:** 2\
**Last updated:** [October 10, 2007, 10:17am UTC](https://www.ruby-forum.com/t/creating-deleting-rails-sites/116772 "2007-10-10T10:17:31Z")

</div>

I know how to create a rails site but deleting is a mystery. Is it as simple as just deleting the directory? Does rails store a master site file? Thanks, Peter

---

## [Sessions info in a model (Noob)](https://www.ruby-forum.com/t/sessions-info-in-a-model-noob/116806)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 7:00am UTC](https://www.ruby-forum.com/t/sessions-info-in-a-model-noob/116806 "2007-10-10T07:00:23Z")

</div>

I’ve got a variable called @current\_user that I currently create in each method of my controller. I’m thinking that I could reference it at a higher level, and then only have it once in my code, but it’s not clear to …

---

## [Display variable from a relationship](https://www.ruby-forum.com/t/display-variable-from-a-relationship/116824)

<div class="topic-metadata">

**Author:** [@flamingsole](https://www.ruby-forum.com/u/flamingsole)\
**Replies:** 2\
**Last updated:** [October 10, 2007, 5:40am UTC](https://www.ruby-forum.com/t/display-variable-from-a-relationship/116824 "2007-10-10T05:40:21Z")

</div>

Hello, I have the following scenario: Models: provider (has\_and\_belongs\_to\_many) level (has\_and\_belongs\_to\_many) levels\_providers At the moment, I’m attempting a page that will list all of the providers. I have th…

---

## [Render and redirect](https://www.ruby-forum.com/t/render-and-redirect/116496)

<div class="topic-metadata">

**Author:** [@asclepios](https://www.ruby-forum.com/u/asclepios)\
**Replies:** 3\
**Last updated:** [October 10, 2007, 5:02am UTC](https://www.ruby-forum.com/t/render-and-redirect/116496 "2007-10-10T05:02:22Z")

</div>

Estoy interesado en el tema de los renders, la verdad he leido mucho sobre el tema pero aun no logro saber la diferencia entre render y redirect (Mi primer inconveniente). Lo que me ha llevado a instruirme sobre el te…

---

## [Problem installing RubyGems](https://www.ruby-forum.com/t/problem-installing-rubygems/116833)

<div class="topic-metadata">

**Author:** [@dennisdams](https://www.ruby-forum.com/u/dennisdams)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 4:32am UTC](https://www.ruby-forum.com/t/problem-installing-rubygems/116833 "2007-10-10T04:32:42Z")

</div>

Hi, I’m new to Ruby, RubyGems, RoR. I successfully (so I believe) installed Ruby under my home dir. It’s in /home/dennis/installed/ruby-1.8.6 Now I’m trying to install rubygems-0.9.4. I’m following the instructions …

---

## [Does anyone know what's going on with rubyforge.net?](https://www.ruby-forum.com/t/does-anyone-know-whats-going-on-with-rubyforge-net/116828)

<div class="topic-metadata">

**Author:** [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Replies:** 2\
**Last updated:** [October 10, 2007, 4:28am UTC](https://www.ruby-forum.com/t/does-anyone-know-whats-going-on-with-rubyforge-net/116828 "2007-10-10T04:28:35Z")

</div>

It seems to be down.

---

## [Loading multiple csv files and adding fields on to an existing table by finding the id](https://www.ruby-forum.com/t/loading-multiple-csv-files-and-adding-fields-on-to-an-existing-table-by-finding-the-id/116815)

<div class="topic-metadata">

**Author:** [@vicky](https://www.ruby-forum.com/u/vicky)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 12:42am UTC](https://www.ruby-forum.com/t/loading-multiple-csv-files-and-adding-fields-on-to-an-existing-table-by-finding-the-id/116815 "2007-10-10T00:42:01Z")

</div>

There are many, many files. These files are all in text files and I have been successfully using ‘FasterCSV’ but there are so many files. What would be the way to Schools Table exists id …

---

## [No Rakefile found (but I see it!)](https://www.ruby-forum.com/t/no-rakefile-found-but-i-see-it/116814)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 12:24am UTC](https://www.ruby-forum.com/t/no-rakefile-found-but-i-see-it/116814 "2007-10-10T00:24:51Z")

</div>

newbie. going thru the Depot tutorial. googling all over for clues have left me empty handed. os x 10.4.10, rails 1.2.4, rake 0.7.3 AFAICT, the installs of rails and rake went fine using gem install. the command: ra…

---

## [Disable onchange when using text\_field\_with\_auto\_complete](https://www.ruby-forum.com/t/disable-onchange-when-using-text-field-with-auto-complete/116812)

<div class="topic-metadata">

**Author:** [@nigel.bris](https://www.ruby-forum.com/u/nigel.bris)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 12:20am UTC](https://www.ruby-forum.com/t/disable-onchange-when-using-text-field-with-auto-complete/116812 "2007-10-10T00:20:53Z")

</div>

Any suggestions on how to disable onchange in a text\_field\_with\_auto\_complete when the auto\_complete options are being displayed? The issue is onchange on the text field is triggered when you mouse click an option in …

---

## [Observe\_form that doesn't observe](https://www.ruby-forum.com/t/observe-form-that-doesnt-observe/116810)

<div class="topic-metadata">

**Author:** [@esox\_ch](https://www.ruby-forum.com/u/esox_ch)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/observe-form-that-doesnt-observe/116810 "2007-10-09T23:49:07Z")

</div>

Hello, I’ve got a form which contains a select and a text field, and I’d like to have a listener on them to use some Ajax after. I tried this way : Filter on item : \<%=select\_tag :field , options\_for\_select(@class.…

---

## [Gloc and sprintf?](https://www.ruby-forum.com/t/gloc-and-sprintf/116808)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/gloc-and-sprintf/116808 "2007-10-09T23:34:35Z")

</div>

I am trying to use a combination of gloc and sprintf on my multilingual website. If I do this: \<%=sprintf(l(:film\_info\_minutes),film.duration) %\> I get a compile error: Translation value “%d minutes” with arguments …

---

## [\-v Command Line Option](https://www.ruby-forum.com/t/v-command-line-option/116807)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 11:21pm UTC](https://www.ruby-forum.com/t/v-command-line-option/116807 "2007-10-09T23:21:42Z")

</div>

According to the help: -v print version number, then turn on verbose mode However, I only see that it prints the version number. My program doesn’t even run, never mind verbose mode. Are there any other …

---

## [Radio Button](https://www.ruby-forum.com/t/radio-button/116805)

<div class="topic-metadata">

**Author:** [@zaid](https://www.ruby-forum.com/u/zaid)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/radio-button/116805 "2007-10-09T23:06:10Z")

</div>

Hola tengo dos dudas sobre radio button. Tengo este radio button que funciona correctamente pero al ponerlo en formato de Ruby y me da error Lo estoy haciendo asÃ­: \<%= radio\_button(photo.public\_filename, “photos”…

---

## [Calendar Helper Previous and Next features](https://www.ruby-forum.com/t/calendar-helper-previous-and-next-features/83840)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 2\
**Last updated:** [October 9, 2007, 10:47pm UTC](https://www.ruby-forum.com/t/calendar-helper-previous-and-next-features/83840 "2007-10-09T22:47:59Z")

</div>

How do I implement the previous and next (month and/or year) functionality for the Calender Helper Plugin, as seen on http://www.rubyonrailsworkshops.com. I have not found documentation or code snippet for this. Ple…

---

## [Setup to replace Lighttpd + FCGI?](https://www.ruby-forum.com/t/setup-to-replace-lighttpd-fcgi/116785)

<div class="topic-metadata">

**Author:** [@rohit](https://www.ruby-forum.com/u/rohit)\
**Replies:** 4\
**Last updated:** [October 9, 2007, 10:24pm UTC](https://www.ruby-forum.com/t/setup-to-replace-lighttpd-fcgi/116785 "2007-10-09T22:24:49Z")

</div>

I’m considering moving from my Lighttpd + FCGI setup to some server (Apache, Nginx, or Lighttpd) balancing a Mongrel cluster. As you know, everyone has different opinions about which setup is best. I have 512 MB VPS,…

---

## [Google Maps with Rails](https://www.ruby-forum.com/t/google-maps-with-rails/116775)

<div class="topic-metadata">

**Author:** [@dehlan](https://www.ruby-forum.com/u/dehlan)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/google-maps-with-rails/116775 "2007-10-09T22:20:27Z")

</div>

I’m new to the rails framework, as well as the google maps API, however I’m looking to learn both to write up a small app for my own use (or maybe for a few friends as well). Basically, I’m looking to see if anyone t…

---

## [Link change to dropdown list and back](https://www.ruby-forum.com/t/link-change-to-dropdown-list-and-back/116777)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [October 9, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/link-change-to-dropdown-list-and-back/116777 "2007-10-09T22:01:25Z")

</div>

So I posted this question yesterday and nobody replied back, so what I’m doing must be pretty ground breaking (haha, don’t I wish). I have some fields that I would really like to have filled out without putting them i…

---

## [Getting result from a dialog window](https://www.ruby-forum.com/t/getting-result-from-a-dialog-window/116793)

<div class="topic-metadata">

**Author:** [@gojita](https://www.ruby-forum.com/u/gojita)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/getting-result-from-a-dialog-window/116793 "2007-10-09T20:57:40Z")

</div>

Hello, I would like to know how to implement more sophisticated ‘prompt’ window. The prompt window only display a single text field, what I would like is to open a prompt and propose a user a list of choice, say a li…

---

## [:with option](https://www.ruby-forum.com/t/with-option/116782)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/with-option/116782 "2007-10-09T20:01:46Z")

</div>

What does the :with option do? Here is the code that I am referencing: \<% func = remote\_function( :update =\> ‘exclude\_1’, :url =\> {:action =\> ‘set\_exclude\_airline\_1’, :id =\> @user.id}, :with =\> “‘id=’ + escape(value)”…

---

## [Generating a Grouped Output](https://www.ruby-forum.com/t/generating-a-grouped-output/116693)

<div class="topic-metadata">

**Author:** [@Martin\_Austin](https://www.ruby-forum.com/u/Martin_Austin)\
**Replies:** 4\
**Last updated:** [October 9, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/generating-a-grouped-output/116693 "2007-10-09T19:55:53Z")

</div>

Hi all, first time poster. I am currently learning RoR, and have run into a snag. I have a table called Games that has several fields, including title, desc, genre, system, etc. What I am looking to do in a view is …

---

## [Keep Lighttpd + FCGI?](https://www.ruby-forum.com/t/keep-lighttpd-fcgi/196484)

<div class="topic-metadata">

**Author:** [@rohit](https://www.ruby-forum.com/u/rohit)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/keep-lighttpd-fcgi/196484 "2007-10-09T19:41:13Z")

</div>

I’m considering moving from my Lighttpd + FCGI setup to some server (Apache, Nginx, or Lighttpd) balancing a Mongrel cluster. As you know, everyone has different opinions about which setup is best. I have 512 MB VPS,…

---

## [\[ANN\] October Vancouver Ruby/Rails Meetup Today (Oct/9 @ 7pm)](https://www.ruby-forum.com/t/ann-october-vancouver-ruby-rails-meetup-today-oct-9-7pm/116783)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 7:28pm UTC](https://www.ruby-forum.com/t/ann-october-vancouver-ruby-rails-meetup-today-oct-9-7pm/116783 "2007-10-09T19:28:14Z")

</div>

Hello, You're invited to join us for today's Ruby/Rails meetup in Vancouver in Beautiful British Columbia up in Canada in the Americas. We have two great 20-30 minute talks today: 1. A Returned Merchandise Authoriz…

---

## [DRb - queue starvation?](https://www.ruby-forum.com/t/drb-queue-starvation/116780)

<div class="topic-metadata">

**Author:** [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/drb-queue-starvation/116780 "2007-10-09T18:58:53Z")

</div>

I think I’ve run into some kind of queue starvation bug w/ DRb - it normally takes minutes per item to process items in the queue, and normally the queue has a bit of a backlog. But when it’s empty (nothing coming i…

---

## [Open-uri + https](https://www.ruby-forum.com/t/open-uri-https/116778)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 6:53pm UTC](https://www.ruby-forum.com/t/open-uri-https/116778 "2007-10-09T18:53:32Z")

</div>

Hello, I am using open-uri to try and open an https:// link. Now when I try to open it, it gives me this error: certificate verify failed I only use a normal open(myLink) to do this. Is there a way to not verify the…

---

## [How to send mail faster?](https://www.ruby-forum.com/t/how-to-send-mail-faster/116739)

<div class="topic-metadata">

**Author:** [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/how-to-send-mail-faster/116739 "2007-10-09T18:40:04Z")

</div>

Hello, It seems sending mails in rails take times to finish. Does anyone know how to make faster by using thread or any another ways other than this…? Thanks Chamnap

---

## [Self-named - rb file required in Gem lib directory?](https://www.ruby-forum.com/t/self-named-rb-file-required-in-gem-lib-directory/116776)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/self-named-rb-file-required-in-gem-lib-directory/116776 "2007-10-09T18:23:00Z")

</div>

Hi, I just installed the rFacebook Gem. It turns out that when I start my app, I get the MissingSourceFile error - cannot require ‘rfacebook.’ The rFacebook gem does NOT have an rfacebook.rb file in the gem’s lib dir…

---

## [Howto cut JS/CSS](https://www.ruby-forum.com/t/howto-cut-js-css/116577)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 6\
**Last updated:** [October 9, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/howto-cut-js-css/116577 "2007-10-09T17:56:59Z")

</div>

Hello, I have a question - how to compress css/js files? because my web page size =\> 20kb, and size of JS’s is =\> 170Kb(controls.js dragdrop.js effects.js prototype.js tooltip.js and 2 other small js’s). Thanks

---

## [Rails link\_to function passing arguments](https://www.ruby-forum.com/t/rails-link-to-function-passing-arguments/116771)

<div class="topic-metadata">

**Author:** [@slackeast](https://www.ruby-forum.com/u/slackeast)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/rails-link-to-function-passing-arguments/116771 "2007-10-09T17:38:24Z")

</div>

I basically want to pass my own custom variables to the link\_to function so I don’t need to set up a bunch of actions within my controller. So here’s more of the details: link\_to example: Code: \<% for g in @games %\> …

---

## [Rails Application fails to start properly](https://www.ruby-forum.com/t/rails-application-fails-to-start-properly/116763)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [October 9, 2007, 4:52pm UTC](https://www.ruby-forum.com/t/rails-application-fails-to-start-properly/116763 "2007-10-09T16:52:48Z")

</div>

I have this site - a local version on my computer and one that lives up on the server. My local version works perfectly, the version on the server, however, display the login page but crashes when you try to login dis…

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

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