# Top

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

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

---

## [Undefined method error](https://www.ruby-forum.com/t/undefined-method-error/96094)

<div class="topic-metadata">

**Author:** [@Ilija\_Studen](https://www.ruby-forum.com/u/Ilija_Studen)\
**Replies:** 5\
**Last updated:** [January 23, 2006, 1:01pm UTC](https://www.ruby-forum.com/t/undefined-method-error/96094 "2006-01-23T13:01:24Z")

</div>

Hi everybody, Small problem. I get this error: undefined method \`all\_categories’ for BlogCategory:Class Code of BlogCategory class is: class BlogCategory \< ActiveRecord::Base has\_and\_belongs\_to\_many :blog\_posts val…

---

## [RE: restricting list output (newbie)](https://www.ruby-forum.com/t/re-restricting-list-output-newbie/48953)

<div class="topic-metadata">

**Author:** [@HOGANBP](https://www.ruby-forum.com/u/HOGANBP)\
**Replies:** 5\
**Last updated:** [November 28, 2005, 1:29am UTC](https://www.ruby-forum.com/t/re-restricting-list-output-newbie/48953 "2005-11-28T01:29:18Z")

</div>

Huh? :slight\_smile: Oh you’re probably referring to scaffolding. Well, you could just do it by hand. Say your table looks like this: Authors id first\_name last\_name email Controller: def list @authors = Author.f…

---

## [Testing namespaced controller using global model](https://www.ruby-forum.com/t/testing-namespaced-controller-using-global-model/244872)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 1, 2016, 1:24pm UTC](https://www.ruby-forum.com/t/testing-namespaced-controller-using-global-model/244872 "2016-07-01T13:24:09Z")

</div>

I have app/controllers/admin/post\_categories\_controller.rb app/models/post\_category app/test/controllers/admin/post\_categories\_controller\_test.rb When I run rake test app/test/controllers/admin/post\_categories\_contr…

---

## [403 errors with standard browser, pages work with GUI browser](https://www.ruby-forum.com/t/403-errors-with-standard-browser-pages-work-with-gui-browser/242804)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 29, 2015, 5:23pm UTC](https://www.ruby-forum.com/t/403-errors-with-standard-browser-pages-work-with-gui-browser/242804 "2015-07-29T17:23:45Z")

</div>

Hi, I’ve run across several websites where I get a 403 error when I connect to them with my standard webbrowser (lynx), yet the very same URIs work with the GUI browser fallback (Firef\*x). Example link: http://blog.…

---

## [Handling different two way ssl-request via a proxy system](https://www.ruby-forum.com/t/handling-different-two-way-ssl-request-via-a-proxy-system/241538)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 13, 2015, 9:27pm UTC](https://www.ruby-forum.com/t/handling-different-two-way-ssl-request-via-a-proxy-system/241538 "2015-04-13T21:27:39Z")

</div>

Hello, Currently we’ve got the following situation in our production environment: Clients —HTTP—\> Apache —HTTPS TWO-WAY SSL VIA PROXY —\> HTTPS SERVERS Just to be clear, the following services are used during this flo…

---

## [Using gr\_uhd on Windows](https://www.ruby-forum.com/t/using-gr-uhd-on-windows/225350)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [January 2, 2013, 7:12am UTC](https://www.ruby-forum.com/t/using-gr-uhd-on-windows/225350 "2013-01-02T07:12:32Z")

</div>

Hi List, Happy new year for everyone. I’ve install gnuradio v3.6.3rc and uhd v3.5.0 on Win7 64 bit. I get error: gri\_fftw: gri\_fftw: gr\_pagesize: no info; setting pagesize = 4096 thread\[thread-per-block\[0\]: \<gr\_bloc…

---

## [Removing X11 dependency for Mac OS X builds of GNU Radio using Mac Ports](https://www.ruby-forum.com/t/removing-x11-dependency-for-mac-os-x-builds-of-gnu-radio-using-mac-ports/207117)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [May 19, 2011, 1:55pm UTC](https://www.ruby-forum.com/t/removing-x11-dependency-for-mac-os-x-builds-of-gnu-radio-using-mac-ports/207117 "2011-05-19T13:55:35Z")

</div>

Hi Michael, Have you considered removing the X11 dependency for the Mac OS X version of GNU Radio from the Mac Ports build system? Over the past 3 days, I’ve experimented with various hardware and software combinatio…

---

## [Validates\_presence\_of problem ROR](https://www.ruby-forum.com/t/validates-presence-of-problem-ror/202128)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 24, 2011, 6:57pm UTC](https://www.ruby-forum.com/t/validates-presence-of-problem-ror/202128 "2011-01-24T18:57:03Z")

</div>

Bonjour tous le monde , j’ai un petit problème voici une explication de ce que j’ai fais : j’ai crée un scaffold : ./script/generate scaffold Zone name:string interface:string description:string ca fonctionne bien . …

---

## [I18n y error messges](https://www.ruby-forum.com/t/i18n-y-error-messges/226143)

<div class="topic-metadata">

**Author:** [@equinox86](https://www.ruby-forum.com/u/equinox86)\
**Replies:** 1\
**Last updated:** [December 15, 2010, 12:00pm UTC](https://www.ruby-forum.com/t/i18n-y-error-messges/226143 "2010-12-15T12:00:50Z")

</div>

Estoy tratando de añadir mensajes de error personalizados para mi model Toy. Esto es parte del contenido del fichero es.yml que tengo: activerecord errors: models: toy: recommended\_age: inclusion: Por favor, selec…

---

## [File.exist? mystery](https://www.ruby-forum.com/t/file-exist-mystery/180054)

<div class="topic-metadata">

**Author:** [@thebugslayer](https://www.ruby-forum.com/u/thebugslayer)\
**Replies:** 1\
**Last updated:** [December 10, 2009, 2:43pm UTC](https://www.ruby-forum.com/t/file-exist-mystery/180054 "2009-12-10T14:43:10Z")

</div>

Hi there, The following seems very odd to me (file doesn’t exist after I created it!). Is there something I did wrong? irb(main):056:0\* File.open(’/tmp/test.txt’, ‘w’) { |f| f.write(‘hello’) } =\> 5 irb(main):057:0\> …

---

## [Counter cache column not updated by fixtures load](https://www.ruby-forum.com/t/counter-cache-column-not-updated-by-fixtures-load/168740)

<div class="topic-metadata">

**Author:** [@coriordan](https://www.ruby-forum.com/u/coriordan)\
**Replies:** 1\
**Last updated:** [May 25, 2009, 11:27am UTC](https://www.ruby-forum.com/t/counter-cache-column-not-updated-by-fixtures-load/168740 "2009-05-25T11:27:03Z")

</div>

Hi, I’ve added a counter cache column to a model. When I load my models through fixtures, it doesn’t seem to affect the counter. regards, C.

---

## [Going back doesn't always go, well, back](https://www.ruby-forum.com/t/going-back-doesnt-always-go-well-back/156013)

<div class="topic-metadata">

**Author:** [@kenwei](https://www.ruby-forum.com/u/kenwei)\
**Replies:** 1\
**Last updated:** [December 19, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/going-back-doesnt-always-go-well-back/156013 "2008-12-19T17:21:26Z")

</div>

Addendum to my prior entry. Rails scaffold creates the index, show, edit, update, destroy, create views. But Rails does not provide a correct “back” method to get to the right spot in the index listing. Example: Inde…

---

## [Esquema Public en Postgres](https://www.ruby-forum.com/t/esquema-public-en-postgres/127309)

<div class="topic-metadata">

**Author:** [@jarrouj](https://www.ruby-forum.com/u/jarrouj)\
**Replies:** 1\
**Last updated:** [January 28, 2008, 11:32am UTC](https://www.ruby-forum.com/t/esquema-public-en-postgres/127309 "2008-01-28T11:32:07Z")

</div>

Que tal gente, estoy trabajando con rails y postgres como manejador de BD. El problema que tengo es que en postgres quiero trabajar con un esquema que no sea public, y para acceder a las tablas y vistas tengo que agre…

---

## [Algoritmos de planificacion en Ruby](https://www.ruby-forum.com/t/algoritmos-de-planificacion-en-ruby/124425)

<div class="topic-metadata">

**Author:** [@Wilson\_B](https://www.ruby-forum.com/u/Wilson_B)\
**Replies:** 1\
**Last updated:** [December 28, 2007, 5:20pm UTC](https://www.ruby-forum.com/t/algoritmos-de-planificacion-en-ruby/124425 "2007-12-28T17:20:00Z")

</div>

Un cordial saludo para toda la comunidad de ROR deseandoles un aÃ±o lleno de prosperidad. Es mi primer posteo y por comentarles que estoy fascinado con Ruby on Rails. Para tener conocimientos sÃ³lidos estoy aprendie…

---

## [Validar fecha de nacimiento segun usuario](https://www.ruby-forum.com/t/validar-fecha-de-nacimiento-segun-usuario/113731)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/validar-fecha-de-nacimiento-segun-usuario/113731 "2007-09-07T19:36:05Z")

</div>

Buenas, tengo una aplicaciÃ³n para hacer reservas y querÃ­a pedir el numero de vip i la fecha de nacimiento de un cliente para validar una reserva. Lo intento hacer de la siguiente forma: En el modelo pongo lo siguien…

---

## [Instance variable as source in image\_tag](https://www.ruby-forum.com/t/instance-variable-as-source-in-image-tag/82736)

<div class="topic-metadata">

**Author:** [@tomtoday](https://www.ruby-forum.com/u/tomtoday)\
**Replies:** 1\
**Last updated:** [January 20, 2007, 2:34pm UTC](https://www.ruby-forum.com/t/instance-variable-as-source-in-image-tag/82736 "2007-01-20T14:34:33Z")

</div>

I would like to use an instance variable as the source in my image tag. Is something like this possible? For example: \<%= image\_tag(@new\_image) %\> linked to an action that uses a model with: @new\_image = “some\_image…

---

## [PostgreSQL 8.1, testing with constraints](https://www.ruby-forum.com/t/postgresql-8-1-testing-with-constraints/49156)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 1\
**Last updated:** [November 30, 2005, 7:49pm UTC](https://www.ruby-forum.com/t/postgresql-8-1-testing-with-constraints/49156 "2005-11-30T19:49:05Z")

</div>

I have a users model, and a couple other models that have a foreign key reference to the id in the users table. If I run my unit tests without the foreign key constraints, they run fine, but blow up when I add the co…

---

## [?include binstubs in version control](https://www.ruby-forum.com/t/include-binstubs-in-version-control/235759)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [July 14, 2013, 12:38am UTC](https://www.ruby-forum.com/t/include-binstubs-in-version-control/235759 "2013-07-14T00:38:51Z")

</div>

I am using rbenv. Just a quick question: Is it good practice to include binstubs in version control? I have looked at the binstubs created; they look pretty harmless.

---

## [Build-gnuradio script error](https://www.ruby-forum.com/t/build-gnuradio-script-error/225724)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [January 30, 2013, 6:25pm UTC](https://www.ruby-forum.com/t/build-gnuradio-script-error/225724 "2013-01-30T18:25:53Z")

</div>

Trying to get another laptop up and running. When running the build-gnuradio script I get this error: ls: cannot access \*.gz: No such file or directory Failed to download any usable images file from: http://files.ett…

---

## [Class method defined, still undefinded method exeption](https://www.ruby-forum.com/t/class-method-defined-still-undefinded-method-exeption/224867)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [November 28, 2012, 9:43pm UTC](https://www.ruby-forum.com/t/class-method-defined-still-undefinded-method-exeption/224867 "2012-11-28T21:43:06Z")

</div>

Hi i try to untangle tightly coupled classes. To that end theres a class to hold all resources that are needed by multiple other classes. Its called RA for Resource Aggregator. Moving one central object to that class…

---

## [Read excel file](https://www.ruby-forum.com/t/read-excel-file/209953)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [July 27, 2011, 6:47pm UTC](https://www.ruby-forum.com/t/read-excel-file/209953 "2011-07-27T18:47:09Z")

</div>

How to read the excel file(.xls) I tried to use the gem ‘parseexcel’, but it can’t exactly parser the string. Does have other better method to parser the xls content?

---

## [Search Array](https://www.ruby-forum.com/t/search-array/191764)

<div class="topic-metadata">

**Author:** [@superwick](https://www.ruby-forum.com/u/superwick)\
**Replies:** 4\
**Last updated:** [July 19, 2010, 2:52am UTC](https://www.ruby-forum.com/t/search-array/191764 "2010-07-19T02:52:50Z")

</div>

I have an array which is created by reading a csv file time = CSV.parse(File.read(‘time.csv’)) time.csv contains valuea,a,100 valueb,b,200 valuec,c,300 I want to be able to find a particular value but I used time.…

---

## [Hash\[\] $B$N0z?t$,(B Array $B$N\>l9g$N?6$kIq$$(B](https://www.ruby-forum.com/t/hash-b-n0z-t-b-array-b-n-l9g-n-6-kiq-b/190816)

<div class="topic-metadata">

**Author:** [@SSSBSHS\_SSSSS5SRSmS](https://www.ruby-forum.com/u/SSSBSHS_SSSSS5SRSmS)\
**Replies:** 4\
**Last updated:** [June 29, 2010, 3:58am UTC](https://www.ruby-forum.com/t/hash-b-n0z-t-b-array-b-n-l9g-n-6-kiq-b/190816 "2010-06-29T03:58:17Z")

</div>

e$B$H$\_$?$G$9!#e(B Hash\[\] e$B$N0z?t$,#1$D$NG\[Ns$G!“$+$D$=$NMWAG$,$5$i$Ke(B 1e$B8D$+e(B2e$B8D$NMWAG$NG\[Nse(B e$B$N\>l9g!”$=$l$r%-!\<$HCM$N%Z%"$H$\_$J$7$Fe(B(1e$B8D$N\>l9g$OCM$Oe(B nil)e$B!"e(BHash e$B%\*%Ve(B e$B%8%'%/%H$…

---

## [Grouping and acts\_as\_tree](https://www.ruby-forum.com/t/grouping-and-acts-as-tree/185686)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 4\
**Last updated:** [March 26, 2010, 8:55pm UTC](https://www.ruby-forum.com/t/grouping-and-acts-as-tree/185686 "2010-03-26T20:55:28Z")

</div>

hi, im using acts\_as\_tree and im not sure on how to group find-result. x = find.almost\_all \<% for y in @x.ancestors.reverse %\> \<%= link\_to h(y.title), page %\> \> \<% end %\> gives me a nice “breadcrum”. but how is …

---

## [Ruby-Tk LIbraries Runtime Library 3.0 and Gestalt Items](https://www.ruby-forum.com/t/ruby-tk-libraries-runtime-library-3-0-and-gestalt-items/178565)

<div class="topic-metadata">

**Author:** [@Arndt\_Roger\_S](https://www.ruby-forum.com/u/Arndt_Roger_S)\
**Replies:** 4\
**Last updated:** [November 10, 2009, 3:36pm UTC](https://www.ruby-forum.com/t/ruby-tk-libraries-runtime-library-3-0-and-gestalt-items/178565 "2009-11-10T15:36:26Z")

</div>

Hi Ruby commuters It is my distinct pleasure to announce the availability of Runtime Library 3.0 and Gestalt Items 1.1 for Ruby-tk and Ruby. Both libraries are written in Tcl/Tk \>= version 8.4. Ruby-tk based Ruby Wr…

---

## [OS X rails path problem](https://www.ruby-forum.com/t/os-x-rails-path-problem/172789)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 4\
**Last updated:** [July 29, 2009, 1:27am UTC](https://www.ruby-forum.com/t/os-x-rails-path-problem/172789 "2009-07-29T01:27:29Z")

</div>

I have had rails up and running for about 2 years now, but while troubleshooting an arduino problem, I inadvertently changed something related to my path variable that caused scrip/server to no longer run, after a rei…

---

## [Live demo of ironruby mvc](https://www.ruby-forum.com/t/live-demo-of-ironruby-mvc/169891)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 4\
**Last updated:** [June 10, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/live-demo-of-ironruby-mvc/169891 "2009-06-10T20:21:22Z")

</div>

Hi I’ve put a working demo live on IIS 7 with IronRuby MVC a very simple task list application http://irtodo.koolkraft.net the source can be found: http://github.com/casualjim/ironrubymvc-sample you can login with …

---

## [Recommended webserver for deploying Rails](https://www.ruby-forum.com/t/recommended-webserver-for-deploying-rails/163185)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 4\
**Last updated:** [March 18, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/recommended-webserver-for-deploying-rails/163185 "2009-03-18T16:55:22Z")

</div>

Dear all, What is the best architecture in terms of performance for Rails. Is lighttpd + mongrel the most recommended deployment architecture for Rails? Or is there any better architecture that outperform this archit…

---

## [Query con sqlite3](https://www.ruby-forum.com/t/query-con-sqlite3/162168)

<div class="topic-metadata">

**Author:** [@wladjmir](https://www.ruby-forum.com/u/wladjmir)\
**Replies:** 4\
**Last updated:** [March 6, 2009, 8:54pm UTC](https://www.ruby-forum.com/t/query-con-sqlite3/162168 "2009-03-06T20:54:14Z")

</div>

Ciao a tutti, chissa se qualuno sa dirmi come ottenere contemporaneamente dati da due diverse tabelle correlate, mi spiego semplificando: SELECT A.nome B.sum(n), C.sum(n) from A,B,C where A.id=B.id AND A.bid=C.bid l…

---

## [Defining an ActiveRecord class within a method of another class](https://www.ruby-forum.com/t/defining-an-activerecord-class-within-a-method-of-another-class/158823)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 4\
**Last updated:** [January 28, 2009, 8:09pm UTC](https://www.ruby-forum.com/t/defining-an-activerecord-class-within-a-method-of-another-class/158823 "2009-01-28T20:09:23Z")

</div>

Hi, I want to create a class and define a subclass of ActiveRecord within that class, like this: class Results def initialize(db) class db \< ActiveRecord::Base end end end r1 = Results.new(‘DM’) r2 = Results.ne…

---

## [Non-invasive templating solutions in ruby?](https://www.ruby-forum.com/t/non-invasive-templating-solutions-in-ruby/158677)

<div class="topic-metadata">

**Author:** [@Terrence\_Brannon](https://www.ruby-forum.com/u/Terrence_Brannon)\
**Replies:** 4\
**Last updated:** [January 26, 2009, 9:31pm UTC](https://www.ruby-forum.com/t/non-invasive-templating-solutions-in-ruby/158677 "2009-01-26T21:31:44Z")

</div>

hello, I am a perl and python programmer, but for completeness, I would like to know which dynamic html generation systems exist in Ruby which focus on driving HTML generation outside of the HTML itself. In an ‘invasi…

---

## [Finding ruby.h](https://www.ruby-forum.com/t/finding-ruby-h/157657)

<div class="topic-metadata">

**Author:** [@John\_Ky](https://www.ruby-forum.com/u/John_Ky)\
**Replies:** 4\
**Last updated:** [January 14, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/finding-ruby-h/157657 "2009-01-14T18:40:42Z")

</div>

Hi, I’m building ruby extensions across many different OSes and architectures. Does anyone know an easy way to find ruby.h on any given system? I’m told that perl has a “perl -V” or @ENV variable which gives some pa…

---

## [How to keep track of popular items](https://www.ruby-forum.com/t/how-to-keep-track-of-popular-items/157471)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 4\
**Last updated:** [January 12, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/how-to-keep-track-of-popular-items/157471 "2009-01-12T16:00:09Z")

</div>

I have a site which is basically a catalog of product about 30,000.00 products. What do you think is the best (in terms of performance) way to keep track of the most popular products,a part from the idea of writing we…

---

## [Most used pwd in ruby](https://www.ruby-forum.com/t/most-used-pwd-in-ruby/154446)

<div class="topic-metadata">

**Author:** [@saknarede](https://www.ruby-forum.com/u/saknarede)\
**Replies:** 4\
**Last updated:** [November 29, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/most-used-pwd-in-ruby/154446 "2008-11-29T23:10:48Z")

</div>

Hi all! I have to program a lot of scripts, most of them work with files and folders. This files and the folders are in the directory of the script, it works well except if script is called from another directory. I s…

---

## [Simolification de code](https://www.ruby-forum.com/t/simolification-de-code/146889)

<div class="topic-metadata">

**Author:** [@tranquiliste](https://www.ruby-forum.com/u/tranquiliste)\
**Replies:** 4\
**Last updated:** [August 27, 2008, 11:48am UTC](https://www.ruby-forum.com/t/simolification-de-code/146889 "2008-08-27T11:48:31Z")

</div>

Bonjour je voudrais savoir si je peux simplifier mon code. J’ai les modèles suivants : user (has\_many :roles) room (has\_many :roles) role has\_many :users, :rooms La table role contenant, en plus des clés étrangères,…

---

## [Which is faster for repetition: Ruby or SQL?](https://www.ruby-forum.com/t/which-is-faster-for-repetition-ruby-or-sql/146814)

<div class="topic-metadata">

**Author:** [@inari](https://www.ruby-forum.com/u/inari)\
**Replies:** 4\
**Last updated:** [August 26, 2008, 6:50am UTC](https://www.ruby-forum.com/t/which-is-faster-for-repetition-ruby-or-sql/146814 "2008-08-26T06:50:52Z")

</div>

Hey all, I was wondering if there was a general consensus for whether it’s faster to do repetitive queries solely through Ruby (as on an array), or to make multiple calls to a SQL database of some sort. For example, …

---

## [Creating an email array based off search results](https://www.ruby-forum.com/t/creating-an-email-array-based-off-search-results/134442)

<div class="topic-metadata">

**Author:** [@Etandrib](https://www.ruby-forum.com/u/Etandrib)\
**Replies:** 4\
**Last updated:** [April 14, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/creating-an-email-array-based-off-search-results/134442 "2008-04-14T17:54:38Z")

</div>

I’m trying to perform a search a a list of people and then create an email based on the emails found in the result set. Any idea how to do this? I figure this is a model topic as I need the figure out the logic to gen…

---

## [Ruby socket support](https://www.ruby-forum.com/t/ruby-socket-support/133989)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 4\
**Last updated:** [April 6, 2008, 10:36am UTC](https://www.ruby-forum.com/t/ruby-socket-support/133989 "2008-04-06T10:36:22Z")

</div>

Hello all, I’m getting this error trying to use use gems /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in \`gem\_original\_require’: no such file to load – socket (LoadError) ruby and ruby gems is built agai…

---

## [Importing data and Time.parse](https://www.ruby-forum.com/t/importing-data-and-time-parse/133938)

<div class="topic-metadata">

**Author:** [@rashantha](https://www.ruby-forum.com/u/rashantha)\
**Replies:** 4\
**Last updated:** [April 6, 2008, 3:38am UTC](https://www.ruby-forum.com/t/importing-data-and-time-parse/133938 "2008-04-06T03:38:40Z")

</div>

results from console and server are different. i am importing a date as a string “05/07/2008 10:00 AM” c.my\_date = Time.parse(row\[6\]) shows up as “2008-05-07” , the time is dropped but when i test this in the contro…

---

## [Shared scenarios?](https://www.ruby-forum.com/t/shared-scenarios/129690)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 4\
**Last updated:** [February 21, 2008, 5:53am UTC](https://www.ruby-forum.com/t/shared-scenarios/129690 "2008-02-21T05:53:51Z")

</div>

In the story framework I would like to have tests that mix and match scenarios using GivenScenario so for example a scenario that does scenarios A, B, C in various orders. Right now all scenarios need to be self-stan…

---

## [The Ruby Programming Language](https://www.ruby-forum.com/t/the-ruby-programming-language/127602)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 4\
**Last updated:** [February 1, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/the-ruby-programming-language/127602 "2008-02-01T19:15:29Z")

</div>

Just got note from O’Reilly about The Ruby P.ming Language (The Ruby Programming Language \[Book\]) by Matz and Flanagan. This must have been a super-secret project as I can’t find any references to it via Google. Loo…

---

## [Unit Test and RecordNotSaved](https://www.ruby-forum.com/t/unit-test-and-recordnotsaved/126524)

<div class="topic-metadata">

**Author:** [@William\_P](https://www.ruby-forum.com/u/William_P)\
**Replies:** 4\
**Last updated:** [January 19, 2008, 1:44am UTC](https://www.ruby-forum.com/t/unit-test-and-recordnotsaved/126524 "2008-01-19T01:44:00Z")

</div>

I have a Company model that has an after\_create callback that creates default roles, users, etc for the new company. In the development environment, this all works great. In my company unit test however, an ActiveReco…

---

## [Validations.rb:81 error](https://www.ruby-forum.com/t/validations-rb-81-error/117134)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 4\
**Last updated:** [October 14, 2007, 4:57am UTC](https://www.ruby-forum.com/t/validations-rb-81-error/117134 "2007-10-14T04:57:40Z")

</div>

In my Mongrel logs, I am getting this: …active\_record/validations.rb:81: warning: Object#type is deprecated; use Object#class That piece of code is: def add\_on\_blank(attributes, msg = @@default\_error\_messages\[:blank\]…

---

## [Toggling a DIV based on a menu selection](https://www.ruby-forum.com/t/toggling-a-div-based-on-a-menu-selection/114637)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 5:42am UTC](https://www.ruby-forum.com/t/toggling-a-div-based-on-a-menu-selection/114637 "2007-09-25T05:42:12Z")

</div>

I have a situation where when the user selects a state for a model by choosing a particular menu item in the view, I want to either show or hide a DIV containing other relevant attribute choices… pretty basic stuff, b…

---

## [Can I add my own application environment?](https://www.ruby-forum.com/t/can-i-add-my-own-application-environment/114071)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 4\
**Last updated:** [September 8, 2007, 3:19pm UTC](https://www.ruby-forum.com/t/can-i-add-my-own-application-environment/114071 "2007-09-08T15:19:04Z")

</div>

I’d like to set up a fourth environment for the application to run in. Something which will behave exactly as ‘production’, but will have its own database and where I can load up a special config/mymode.rb file, that …

---

## [Array and data types](https://www.ruby-forum.com/t/array-and-data-types/108816)

<div class="topic-metadata">

**Author:** [@zabouth](https://www.ruby-forum.com/u/zabouth)\
**Replies:** 4\
**Last updated:** [July 8, 2007, 2:17pm UTC](https://www.ruby-forum.com/t/array-and-data-types/108816 "2007-07-08T14:17:28Z")

</div>

i have looked at all the ruby manual but i cant find no way of doing this I am very new to ruby so here is my problem ok first here is my code sum = “5:5:5” sum = sum.split(":") sum = sum.inject {|sum, x| sum + x } …

---

## [Does this code spawn lots of objects?](https://www.ruby-forum.com/t/does-this-code-spawn-lots-of-objects/105587)

<div class="topic-metadata">

**Author:** [@benemson](https://www.ruby-forum.com/u/benemson)\
**Replies:** 4\
**Last updated:** [May 31, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/does-this-code-spawn-lots-of-objects/105587 "2007-05-31T15:43:20Z")

</div>

I have the following code:- dbh = DBI.connect(’’, '’, ‘’) smtp = Net::SMTP.start(’’) sql = open( “gw.sql”, “r” ).read sth = dbh.execute( sql ) sth.fetch\_hash do |row| mail = MailFactory.new() mail.to …

---

## [Ruby and Open Sound Control (OSC)?](https://www.ruby-forum.com/t/ruby-and-open-sound-control-osc/84775)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 4\
**Last updated:** [February 9, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/ruby-and-open-sound-control-osc/84775 "2007-02-09T15:11:40Z")

</div>

A Google search turned up a few primitive efforts and some broken links, so I’ll ask here – does anyone know of any Ruby libraries for Open Sound Control? I checked CPAN and there isn’t a heck of a lot even for Perl –…

---

## [Ajax InPlaceEditor](https://www.ruby-forum.com/t/ajax-inplaceeditor/84436)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 4\
**Last updated:** [February 4, 2007, 9:54pm UTC](https://www.ruby-forum.com/t/ajax-inplaceeditor/84436 "2007-02-04T21:54:24Z")

</div>

tseting an InPlaceEditor, I am trying the :onComplete option (code to be run, if update successful with server) even not fleunt with JS, I succeeded with an Ajax.Request onComplete: function(transport,element) { new …

---

## [Two GMSK decoders with two msg queues](https://www.ruby-forum.com/t/two-gmsk-decoders-with-two-msg-queues/72143)

<div class="topic-metadata">

**Author:** [@Dawei\_Shen](https://www.ruby-forum.com/u/Dawei_Shen)\
**Replies:** 4\
**Last updated:** [October 14, 2006, 7:52pm UTC](https://www.ruby-forum.com/t/two-gmsk-decoders-with-two-msg-queues/72143 "2006-10-14T19:52:33Z")

</div>

Dear Guys Thank you for helping me out with my previous question about the general\_work() function, I have done what I want with your help. Now I have another problem, here is a fraction of the code: self.\_rcvd\_…

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

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