# Top

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

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

---

## [How to pass a Ruby Array to a javascript function?](https://www.ruby-forum.com/t/how-to-pass-a-ruby-array-to-a-javascript-function/147016)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [August 28, 2008, 10:50am UTC](https://www.ruby-forum.com/t/how-to-pass-a-ruby-array-to-a-javascript-function/147016 "2008-08-28T10:50:39Z")

</div>

I am passing a ruby array @myArray to a javascript function via rjs page \<\< “{ $ (‘my\_calendar’).calendar\_date\_select.classForMatrix(’#{@calendar\_matrix}’);}” the js function is the following : classForMatrix: funct…

---

## [Reading x bytes at a time](https://www.ruby-forum.com/t/reading-x-bytes-at-a-time/146209)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 2\
**Last updated:** [August 19, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/reading-x-bytes-at-a-time/146209 "2008-08-19T16:56:09Z")

</div>

Hi all, I’m trying to write a little script to read files in a directory (x bytes at a time), do an md5 checksum of the bytes and print them to a text file. Everything is working fine at the moment except the reading…

---

## [Return code question](https://www.ruby-forum.com/t/return-code-question/145676)

<div class="topic-metadata">

**Author:** [@killswitchcollectiv](https://www.ruby-forum.com/u/killswitchcollectiv)\
**Replies:** 2\
**Last updated:** [August 13, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/return-code-question/145676 "2008-08-13T18:12:39Z")

</div>

We are trying to automate the running of our rspec tests for our Rails app on a build server using Capistrano. The problem is that Capistrano seems to think that the command called to run the model tests failed when…

---

## [Newbiw - How do I concate?](https://www.ruby-forum.com/t/newbiw-how-do-i-concate/144805)

<div class="topic-metadata">

**Author:** [@jalopy55](https://www.ruby-forum.com/u/jalopy55)\
**Replies:** 2\
**Last updated:** [August 4, 2008, 8:36am UTC](https://www.ruby-forum.com/t/newbiw-how-do-i-concate/144805 "2008-08-04T08:36:29Z")

</div>

I’ve found this nifty rFacebook tutorial and I’m so excited about learning to use Ruby on Rails. http://www.liverail.net/articles/2007/6/29/tutorial-on-developing-a-facebook-platform-application-with-ruby-on-rails How…

---

## [Graphiques avec Rails](https://www.ruby-forum.com/t/graphiques-avec-rails/139813)

<div class="topic-metadata">

**Author:** [@julien](https://www.ruby-forum.com/u/julien)\
**Replies:** 2\
**Last updated:** [June 8, 2008, 12:14pm UTC](https://www.ruby-forum.com/t/graphiques-avec-rails/139813 "2008-06-08T12:14:57Z")

</div>

Salut Ã tous, Je cherche Ã pouvoir rÃ©aliser simplement des graphiques dans mon appli (de bÃªtes graphiques camembert). Je me suis renseignÃ© et je suis tombÃ© sur pas mal de librairies qui le propose: GoogleChar…

---

## [HALP! connect() failed (111: Connection refused)?!](https://www.ruby-forum.com/t/halp-connect-failed-111-connection-refused/131998)

<div class="topic-metadata">

**Author:** [@bbqplate](https://www.ruby-forum.com/u/bbqplate)\
**Replies:** 2\
**Last updated:** [March 24, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/halp-connect-failed-111-connection-refused/131998 "2008-03-24T19:35:11Z")

</div>

ive been trying to dig through this problem for awhile now but cant seem to view my rails app from outside the LAN. my nginx file prints this… 2008/03/14 17:33:01 \[error\] 12090#0: \*254 connect() failed (111: Connectio…

---

## [Preserving functions after changing a glade project](https://www.ruby-forum.com/t/preserving-functions-after-changing-a-glade-project/131808)

<div class="topic-metadata">

**Author:** [@wolfgang](https://www.ruby-forum.com/u/wolfgang)\
**Replies:** 2\
**Last updated:** [March 13, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/preserving-functions-after-changing-a-glade-project/131808 "2008-03-13T17:31:35Z")

</div>

Hello! After saving my Glade file I use “ruby-glade-create-template \> myfile.rb” to create a ruby file from it. Then I implement the functions, so that buttons etc. have an effect. So far, so good. But: Whenever I …

---

## [RedCloth full textile support?](https://www.ruby-forum.com/t/redcloth-full-textile-support/127866)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 2\
**Last updated:** [February 2, 2008, 12:03am UTC](https://www.ruby-forum.com/t/redcloth-full-textile-support/127866 "2008-02-02T00:03:55Z")

</div>

I’m trying to use the redcloth gem to do textile markup. It works, but doesn’t seem to support the full set of markup. For example trying a few examples from: Textile Quick Reference which is linked to from \_why?s Re…

---

## [Ordre d'exÃ©cution des callbacks dans Activ eRecord](https://www.ruby-forum.com/t/ordre-dexa-cution-des-callbacks-dans-activ-erecord/127818)

<div class="topic-metadata">

**Author:** [@mourad\_hammiche](https://www.ruby-forum.com/u/mourad_hammiche)\
**Replies:** 2\
**Last updated:** [February 1, 2008, 3:53pm UTC](https://www.ruby-forum.com/t/ordre-dexa-cution-des-callbacks-dans-activ-erecord/127818 "2008-02-01T15:53:54Z")

</div>

Bonjour Je travail actuellement sur un modele comme celui-ci class Category \< AR::Base has\_many :assets, :dependent =\> :nullify end class Asset \< AR::Base belongs\_to :category end Je souhaite executer un traiteme…

---

## [Ajax post raise error](https://www.ruby-forum.com/t/ajax-post-raise-error/125536)

<div class="topic-metadata">

**Author:** [@hiddenhippo](https://www.ruby-forum.com/u/hiddenhippo)\
**Replies:** 2\
**Last updated:** [January 12, 2008, 11:20am UTC](https://www.ruby-forum.com/t/ajax-post-raise-error/125536 "2008-01-12T11:20:28Z")

</div>

Hi, within my rails application i have a view which does an ajax call for saving data. what i’d like to do is raise an exception within my controller that causes the onFailure event to be triggered. for example be…

---

## [Google Maps](https://www.ruby-forum.com/t/google-maps/124927)

<div class="topic-metadata">

**Author:** [@mvondung](https://www.ruby-forum.com/u/mvondung)\
**Replies:** 2\
**Last updated:** [January 3, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/google-maps/124927 "2008-01-03T22:57:13Z")

</div>

Hallo, erstelle gerade eine Webseite mit google maps. Die Geodaten hole ich mir über das Plugin GeoKIT Beim darstellen der Karte gibt es mehrere Plugins, welches könnt ihr mir empfehlen? YM4R/GM YM4R/Mapstraction m…

---

## [SSL issue](https://www.ruby-forum.com/t/ssl-issue/120390)

<div class="topic-metadata">

**Author:** [@adityanalla](https://www.ruby-forum.com/u/adityanalla)\
**Replies:** 2\
**Last updated:** [November 16, 2007, 7:02pm UTC](https://www.ruby-forum.com/t/ssl-issue/120390 "2007-11-16T19:02:52Z")

</div>

I am setting up a server with nginx, mongrel cluster with ssl. I am not able to get the ssl settings right. I have used that standard settings mentioned in most of the blogs… listen 443; ssl …

---

## [Model.update\_attributes vs. Model.update in Edge Rails!](https://www.ruby-forum.com/t/model-update-attributes-vs-model-update-in-edge-rails/119598)

<div class="topic-metadata">

**Author:** [@sideshow](https://www.ruby-forum.com/u/sideshow)\
**Replies:** 2\
**Last updated:** [November 8, 2007, 10:39am UTC](https://www.ruby-forum.com/t/model-update-attributes-vs-model-update-in-edge-rails/119598 "2007-11-08T10:39:52Z")

</div>

Does any one else find it a pain in the butt that in the new edge rails the Model.update method has been made private so throws an error if you use it. Most of the time i find i need to do work on POST params\[\] before…

---

## [Can't get Eclipse to start Rails in production mode](https://www.ruby-forum.com/t/cant-get-eclipse-to-start-rails-in-production-mode/116318)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [October 4, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/cant-get-eclipse-to-start-rails-in-production-mode/116318 "2007-10-04T15:41:45Z")

</div>

I’m using Eclipse to run a rails server for local development. I changed my environment.rb to have ENV\[‘RAILS\_ENV’\] ||= ‘production’ as this is what i did with my live deployed version to get it to run in prod mode.…

---

## [Problema con relacion de tablas](https://www.ruby-forum.com/t/problema-con-relacion-de-tablas/113906)

<div class="topic-metadata">

**Author:** [@miguel](https://www.ruby-forum.com/u/miguel)\
**Replies:** 2\
**Last updated:** [September 6, 2007, 4:56am UTC](https://www.ruby-forum.com/t/problema-con-relacion-de-tablas/113906 "2007-09-06T04:56:47Z")

</div>

Hola , tengo un pequeÃ±o problema al relacionar unas tabas con rails. bien, tengo una tabla llamada clientes y una tabla llamada proyectos clientes has\_many :proyectos proyectos belongs\_to :clientes asi las cosas, el…

---

## [\[rails\] deploy con sqlite3](https://www.ruby-forum.com/t/rails-deploy-con-sqlite3/113181)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 2\
**Last updated:** [August 28, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/rails-deploy-con-sqlite3/113181 "2007-08-28T15:38:32Z")

</div>

Salve! Sto facendo i miei primi test con una sottospecie di mini applicazione in rails: fatto tutto, ora dovrei capire come pubblicarla. ‘Agile web development with rails’ mi spiega come farlo usando Capistrano (e dun…

---

## [Flux Rss et Ruby](https://www.ruby-forum.com/t/flux-rss-et-ruby/108879)

<div class="topic-metadata">

**Author:** [@gfburke](https://www.ruby-forum.com/u/gfburke)\
**Replies:** 2\
**Last updated:** [July 9, 2007, 9:15am UTC](https://www.ruby-forum.com/t/flux-rss-et-ruby/108879 "2007-07-09T09:15:27Z")

</div>

J’aimerai crÃ©er un flux Rss pour chacun de mes users ( ils postent par “new” des recettes qui sont stockÃ© dans leurs zone membre) ( j’utilise current\_user) . Comment faire? Et comment crÃ©er un flux rss pour toutes…

---

## [CGI.escape accepts only ISO-8859-1 input?](https://www.ruby-forum.com/t/cgi-escape-accepts-only-iso-8859-1-input/107928)

<div class="topic-metadata">

**Author:** [@martin](https://www.ruby-forum.com/u/martin)\
**Replies:** 2\
**Last updated:** [June 27, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/cgi-escape-accepts-only-iso-8859-1-input/107928 "2007-06-27T17:51:22Z")

</div>

Hi, I’m not able to convert a string to ISO-8859-1. Could anyone please try to help me out here? #!/usr/bin/ruby message = ARGV\[0\] This doesn’t seem to work, what am I doing wrong? Iconv.new(‘ISO-8859-1’, ‘UTF-8’).i…

---

## [Globalize et limitation de la tr\_key Ã  2 55 octets](https://www.ruby-forum.com/t/globalize-et-limitation-de-la-tr-key-a-2-55-octets/105690)

<div class="topic-metadata">

**Author:** [@JSSSSrSSSSmy\_Dierx](https://www.ruby-forum.com/u/JSSSSrSSSSmy_Dierx)\
**Replies:** 2\
**Last updated:** [June 1, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/globalize-et-limitation-de-la-tr-key-a-2-55-octets/105690 "2007-06-01T15:33:04Z")

</div>

Re-bonjour, VoilÃ , j’ai besoin d’un petit conseil concernant globalize : Dans la table globalize\_translate l’identifiant de texte Ã traduire tr\_key est en VARCHAR(255). Or, ayant des textes parfois plus grands dans…

---

## [Devolver registros concretos con find all](https://www.ruby-forum.com/t/devolver-registros-concretos-con-find-all/104768)

<div class="topic-metadata">

**Author:** [@vilec](https://www.ruby-forum.com/u/vilec)\
**Replies:** 2\
**Last updated:** [May 22, 2007, 10:36am UTC](https://www.ruby-forum.com/t/devolver-registros-concretos-con-find-all/104768 "2007-05-22T10:36:23Z")

</div>

Buenas, tengo en una base de datos todas las entidades bancarias espaÃ±olas, pero sÃ³lo trabajamos con algunas de ellas, definidas en el campo “es\_activa”, con nulo si no estÃ¡ activa. Me gustarÃ­a que por defecto cu…

---

## [Apache o non Apache, questo Ã¨ il problema](https://www.ruby-forum.com/t/apache-o-non-apache-questo-a-il-problema/104483)

<div class="topic-metadata">

**Author:** [@daneel\_olivaw](https://www.ruby-forum.com/u/daneel_olivaw)\
**Replies:** 2\
**Last updated:** [May 18, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/apache-o-non-apache-questo-a-il-problema/104483 "2007-05-18T18:45:52Z")

</div>

Spero che il discorso non sia giÃ stato trattato (non mi pare, ma potrei aver cercato male…), in caso contrario, liberi di insultarmi (mandando il link alla discussione, perÃ²) :slight\_smile: Dicevo… devo costruire u…

---

## [More on the Qwt package for Fedora](https://www.ruby-forum.com/t/more-on-the-qwt-package-for-fedora/89853)

<div class="topic-metadata">

**Author:** [@Trond\_D](https://www.ruby-forum.com/u/Trond_D)\
**Replies:** 2\
**Last updated:** [March 26, 2007, 8:58am UTC](https://www.ruby-forum.com/t/more-on-the-qwt-package-for-fedora/89853 "2007-03-26T08:58:23Z")

</div>

Hi, I’ve been in contact with the developer of qwt, and he seemed interested in adding a pkg-config file to qwt, so hopefully it will be included in future released. I haven’t submitted it for inclusion in Fedora yet…

---

## [Copiar registros entre tablas](https://www.ruby-forum.com/t/copiar-registros-entre-tablas/88119)

<div class="topic-metadata">

**Author:** [@lourdes](https://www.ruby-forum.com/u/lourdes)\
**Replies:** 2\
**Last updated:** [March 9, 2007, 9:11am UTC](https://www.ruby-forum.com/t/copiar-registros-entre-tablas/88119 "2007-03-09T09:11:02Z")

</div>

Hola, buenos dias. Tengo 1 tabla que utilizo como plantilla, para aÃ±adir los registros que selecciono mediante una chekbox, en otra tabla que es casi identica. Hay algÃºn metodo para copiar los registros de una tabla…

---

## [Qt4 designer, custom slots and rbuic4](https://www.ruby-forum.com/t/qt4-designer-custom-slots-and-rbuic4/87629)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 2\
**Last updated:** [March 4, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/qt4-designer-custom-slots-and-rbuic4/87629 "2007-03-04T19:19:32Z")

</div>

Hello everyone, I just started looking at trying to write some Qt stuff in ruby. I whipped up a quick widget in designer to see how the whole process works. When it came time to connect a button to a custom slot I g…

---

## [RoR DB design question](https://www.ruby-forum.com/t/ror-db-design-question/86738)

<div class="topic-metadata">

**Author:** [@dougd1101](https://www.ruby-forum.com/u/dougd1101)\
**Replies:** 2\
**Last updated:** [February 26, 2007, 8:22pm UTC](https://www.ruby-forum.com/t/ror-db-design-question/86738 "2007-02-26T20:22:49Z")

</div>

I am VERY new to the RoR game, but quickly becoming a convert. I am doing a discussion board application in RoR just to learn RoR. You all are very familiar with the discussion board domain. Someone starts a new thre…

---

## [Subiendo Archivos](https://www.ruby-forum.com/t/subiendo-archivos/82055)

<div class="topic-metadata">

**Author:** [@nexon](https://www.ruby-forum.com/u/nexon)\
**Replies:** 2\
**Last updated:** [January 17, 2007, 4:48am UTC](https://www.ruby-forum.com/t/subiendo-archivos/82055 "2007-01-17T04:48:48Z")

</div>

Hola…De nuevo, he estado intentando crear algo simple para subir archivos (de preferencia fotos), y aun no me resulta. En el View, tengo \<%= start\_form\_tag :action =\> ‘upload’, :multipart =\> true %\> \<%= file\_field ‘p…

---

## [Effect of &rarr; in \<r:breadcrumbs /\>](https://www.ruby-forum.com/t/effect-of-rarr-in-r-breadcrumbs/66008)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 2\
**Last updated:** [August 23, 2006, 12:46am UTC](https://www.ruby-forum.com/t/effect-of-rarr-in-r-breadcrumbs/66008 "2006-08-23T00:46:08Z")

</div>

Hi, I’m trying to use the following in a footer snippet: \<r:breadcrumbs between=" → " /\> ← You are here Problem is, the → is converted into a \> for some reason. How can I fix this? I’m very new to Rails and Radiant.

---

## [Acts\_as\_tree, acts\_as\_list and is invincible (help!)](https://www.ruby-forum.com/t/acts-as-tree-acts-as-list-and-is-invincible-help/61963)

<div class="topic-metadata">

**Author:** [@samo](https://www.ruby-forum.com/u/samo)\
**Replies:** 2\
**Last updated:** [May 30, 2006, 11:23am UTC](https://www.ruby-forum.com/t/acts-as-tree-acts-as-list-and-is-invincible-help/61963 "2006-05-30T11:23:52Z")

</div>

So I have the following model class Topic \< ActiveRecord::Base belongs\_to :topic has\_many :topics, :order =\> :position acts\_as\_tree :order =\> :position acts\_as\_list :scope =\> :topic\_id end that I use for a site’…

---

## [Question about how GNURadio interacts with the linux kernel](https://www.ruby-forum.com/t/question-about-how-gnuradio-interacts-with-the-linux-kernel/58992)

<div class="topic-metadata">

**Author:** [@Naveen\_Manicka](https://www.ruby-forum.com/u/Naveen_Manicka)\
**Replies:** 2\
**Last updated:** [May 11, 2006, 5:23pm UTC](https://www.ruby-forum.com/t/question-about-how-gnuradio-interacts-with-the-linux-kernel/58992 "2006-05-11T17:23:50Z")

</div>

Hi everybody, I am trying to understand how GNUradio interacts with the kernel to send and receive data packets using the tunnel communication example. Since we don’t recompile the kernel when installing gnuradio, th…

---

## [Noobish URI Question](https://www.ruby-forum.com/t/noobish-uri-question/57500)

<div class="topic-metadata">

**Author:** [@thebarge](https://www.ruby-forum.com/u/thebarge)\
**Replies:** 2\
**Last updated:** [April 11, 2006, 4:07pm UTC](https://www.ruby-forum.com/t/noobish-uri-question/57500 "2006-04-11T16:07:38Z")

</div>

Sorry if the answer has been posted but the search terms (like URI) are so generic I get tons of useless results. I have a controller (in this case “forum\_controller”) so if I want to read a forum topic the URI is “/f…

---

## [RadRails 0.6 is out](https://www.ruby-forum.com/t/radrails-0-6-is-out/55014)

<div class="topic-metadata">

**Author:** [@Thibaut\_BarrSSSSre](https://www.ruby-forum.com/u/Thibaut_BarrSSSSre)\
**Replies:** 2\
**Last updated:** [March 21, 2006, 10:55pm UTC](https://www.ruby-forum.com/t/radrails-0-6-is-out/55014 "2006-03-21T22:55:30Z")

</div>

Bonjour Ã tous RadRails est sorti en version 0.6, je pense que Ã§a peut en intÃ©resser plus d’un. Pour rappel RadRails est un IDE dÃ©diÃ© Ã RubyOnRails qui s’appuie sur la plateforme Eclipse. Thibaut ---------- …

---

## [DB & AR advise please (diagram inc)](https://www.ruby-forum.com/t/db-ar-advise-please-diagram-inc/97972)

<div class="topic-metadata">

**Author:** [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Replies:** 2\
**Last updated:** [January 27, 2006, 5:37pm UTC](https://www.ruby-forum.com/t/db-ar-advise-please-diagram-inc/97972 "2006-01-27T17:37:09Z")

</div>

Hi, Being new to Rails and Active record could someone please check my database diagram: I am building a trouble ticket system for my company. Simply put a client has many users. …

---

## [Newbie: Going round in circles with HABTM](https://www.ruby-forum.com/t/newbie-going-round-in-circles-with-habtm/51832)

<div class="topic-metadata">

**Author:** [@esloane](https://www.ruby-forum.com/u/esloane)\
**Replies:** 2\
**Last updated:** [December 3, 2005, 7:27am UTC](https://www.ruby-forum.com/t/newbie-going-round-in-circles-with-habtm/51832 "2005-12-03T07:27:58Z")

</div>

Hi, I’m still stuck with a fundamental problem understanding how this hangs together. Given two tables with a HABTM relationship through a join\_table as follows; Model job: class Job \< ActiveRecord::Base belongs\_to…

---

## [Insert problem with rails3](https://www.ruby-forum.com/t/insert-problem-with-rails3/216310)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [February 2, 2012, 5:25am UTC](https://www.ruby-forum.com/t/insert-problem-with-rails3/216310 "2012-02-02T05:25:47Z")

</div>

tran =Transaction.select(“transactions.id,transactions.user\_id,transactions.branch\_id,transactions.customer\_id,transactions.membership\_type\_id,transactions.bill\_amount,transactions.bill\_date”) treport = TransactionRepo…

---

## [Heroku error msg:App Crashed](https://www.ruby-forum.com/t/heroku-error-msg-app-crashed/199779)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 5\
**Last updated:** [November 29, 2010, 1:26pm UTC](https://www.ruby-forum.com/t/heroku-error-msg-app-crashed/199779 "2010-11-29T13:26:20Z")

</div>

Hi , i developed a small application(which contails only static pages) . I tried to host that on heroku .just when everything was finished when i opened my site i,e http://floating-moon-89.heroku.com/ i am getting an …

---

## [Meta-programming 101](https://www.ruby-forum.com/t/meta-programming-101/196261)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 5\
**Last updated:** [October 10, 2010, 10:48am UTC](https://www.ruby-forum.com/t/meta-programming-101/196261 "2010-10-10T10:48:06Z")

</div>

how can I get the following to work, what am I not understanding about how modules work? module MakeMethod def self.make\_method( name ) define\_method( name ) do |count| puts “you called method #{name.to\_s}” puts “t…

---

## [How do I convert this active record query to a rails 3 query](https://www.ruby-forum.com/t/how-do-i-convert-this-active-record-query-to-a-rails-3-query/196220)

<div class="topic-metadata">

**Author:** [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Replies:** 5\
**Last updated:** [October 8, 2010, 9:01pm UTC](https://www.ruby-forum.com/t/how-do-i-convert-this-active-record-query-to-a-rails-3-query/196220 "2010-10-08T21:01:55Z")

</div>

The following SQL: select \* from medias m left join artists a on a.id = m.artist\_id left join users u on u.id = a.user\_id left join genres g on g.id = u.genre\_id where g.name = ‘Acoustic’ is the equivalent to (whic…

---

## [How to access the contents of a field](https://www.ruby-forum.com/t/how-to-access-the-contents-of-a-field/195211)

<div class="topic-metadata">

**Author:** [@abdelkarim](https://www.ruby-forum.com/u/abdelkarim)\
**Replies:** 5\
**Last updated:** [October 5, 2010, 10:45pm UTC](https://www.ruby-forum.com/t/how-to-access-the-contents-of-a-field/195211 "2010-10-05T22:45:51Z")

</div>

hello every body i have a simple question . i have this form : \<%= form\_tag :action=\>‘password’ %\> Password:\<%= password\_field :stuck\_out\_tongue: , :pass1 , :size=\>‘20’%\> Again:\<%= password\_field :stuck\_out\_tongue: ,…

---

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

<div class="topic-metadata">

**Author:** [@katz](https://www.ruby-forum.com/u/katz)\
**Replies:** 5\
**Last updated:** [December 20, 2009, 12:37pm UTC](https://www.ruby-forum.com/t/regex-question/180492 "2009-12-20T12:37:41Z")

</div>

irb(main):113:0\> /l{2}x/ =~ 'llx' =\> 0 irb(main):109:0\> /(lo){2}/ =~ 'lolo' =\> 0 irb(main):110:0\> /(lo){2}x/ =~ 'lolox' =\> nil irb(main):111:0\> /(?:lo){2}x/ =~ 'lolox' =\> 0 Note the third command returned nil but the fou…

---

## [Simple hopefully, newbish question, but how come it's saying starting in Rails 2.2.2 when I'm using](https://www.ruby-forum.com/t/simple-hopefully-newbish-question-but-how-come-its-saying-starting-in-rails-2-2-2-when-im-using/171465)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 5\
**Last updated:** [July 3, 2009, 2:00am UTC](https://www.ruby-forum.com/t/simple-hopefully-newbish-question-but-how-come-its-saying-starting-in-rails-2-2-2-when-im-using/171465 "2009-07-03T02:00:10Z")

</div>

I’m trying to get this app I have (I actually started it over fresh) to start up with rails 2.3.2 rick- ~/projects/rails/hockey $ sudo gem install rails -v 2.3.2 Password: Successfully installed rails-2.3.2 1 gem i…

---

## [Partials views and instance variables go nil](https://www.ruby-forum.com/t/partials-views-and-instance-variables-go-nil/170219)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 5\
**Last updated:** [June 14, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/partials-views-and-instance-variables-go-nil/170219 "2009-06-14T16:43:55Z")

</div>

Hi everyone! Model: http://pastie.org/511290 Controller: http://pastie.org/511285 View new: http://pastie.org/511286 View \_form: http://pastie.org/511284 When I hit submit button there’s an error for usuarios(users …

---

## [ActiveRecord Migration question](https://www.ruby-forum.com/t/activerecord-migration-question/153412)

<div class="topic-metadata">

**Author:** [@mlb5000](https://www.ruby-forum.com/u/mlb5000)\
**Replies:** 5\
**Last updated:** [November 16, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/activerecord-migration-question/153412 "2008-11-16T21:47:30Z")

</div>

I have a database table, users, which has a referrer\_id column. This column maps back to the users table to denote the user who referred this record. How can I accomplish this type of reference with the t.references…

---

## [Newly created thread blocks all others in Ruby 1.8.7 patchlevel 72 on Cygwin](https://www.ruby-forum.com/t/newly-created-thread-blocks-all-others-in-ruby-1-8-7-patchlevel-72-on-cygwin/146267)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 5\
**Last updated:** [August 22, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/newly-created-thread-blocks-all-others-in-ruby-1-8-7-patchlevel-72-on-cygwin/146267 "2008-08-22T16:31:12Z")

</div>

Hello together, I am using the following Ruby version: ruby 1.8.7 (2008-08-11 patchlevel 72) \[i386-cygwin\] I have problems with threads now that did not occur in Ruby 1.8.6. I execute the following code (derived fro…

---

## [About .html and .rhtml,database](https://www.ruby-forum.com/t/about-html-and-rhtml-database/139738)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 5\
**Last updated:** [June 10, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/about-html-and-rhtml-database/139738 "2008-06-10T12:06:03Z")

</div>

how do i make a .html file in the root directory,for example,there is a cart project,how do make a index.html file containing the link to access the files that are in the app directory? when deploy a project,where the…

---

## [Rails debug](https://www.ruby-forum.com/t/rails-debug/139037)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [May 30, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/rails-debug/139037 "2008-05-30T16:24:42Z")

</div>

Hi guys, Now I own rails application for my website. But when some changes happens, the debug way will be bramble. Is there any IDE or method release it? I mean if you would like to debug the java program, you can se…

---

## [Ruby-Debugger newbie problem](https://www.ruby-forum.com/t/ruby-debugger-newbie-problem/124893)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 5\
**Last updated:** [January 12, 2008, 6:10am UTC](https://www.ruby-forum.com/t/ruby-debugger-newbie-problem/124893 "2008-01-12T06:10:32Z")

</div>

Hi All, Following is a Command window session trying to run Ruby Debugger on a trivial program. The debugger seems to be stuck in “ubygems.rb” in my Ruby installation rather than in my test program. Is my installati…

---

## [Curses](https://www.ruby-forum.com/t/curses/116170)

<div class="topic-metadata">

**Author:** [@shawn\_2008](https://www.ruby-forum.com/u/shawn_2008)\
**Replies:** 5\
**Last updated:** [October 5, 2007, 7:30am UTC](https://www.ruby-forum.com/t/curses/116170 "2007-10-05T07:30:06Z")

</div>

I am an elementary user of ruby,i meet a problem about ruby curses. source code as follow: require “curses” include Curses init\_screen begin crmode echo ch = getstr #problem occurred here noecho ensure close\_s…

---

## [Is this common](https://www.ruby-forum.com/t/is-this-common/113408)

<div class="topic-metadata">

**Author:** [@bloc](https://www.ruby-forum.com/u/bloc)\
**Replies:** 5\
**Last updated:** [August 31, 2007, 8:21am UTC](https://www.ruby-forum.com/t/is-this-common/113408 "2007-08-31T08:21:35Z")

</div>

Hi, I have a webapp built using ruby on rails. The login page takes the username and password. When I run the application and check the development.log file I see the passwords in that file in text format of users lo…

---

## [Form Creation Techniques](https://www.ruby-forum.com/t/form-creation-techniques/112643)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 5\
**Last updated:** [August 22, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/form-creation-techniques/112643 "2007-08-22T20:08:03Z")

</div>

Hi All, I’ve been playing with ruby for some time now, but mostly with Models and Controllers. I’m now to the point where I’d like to start working an the View part of MCV more. My problem is I’m having a very diffic…

---

## [About a simple insert](https://www.ruby-forum.com/t/about-a-simple-insert/104212)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 5\
**Last updated:** [May 15, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/about-a-simple-insert/104212 "2007-05-15T17:54:59Z")

</div>

Ok, my problem is that I have a form with a client’s information. Now in the form, I ask the client for his info, which inserts into the table “clients”, and then I have another text input where he has to provide a sp…

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

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