# Top

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

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

---

## [Each\_value](https://www.ruby-forum.com/t/each-value/124442)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 3\
**Last updated:** [December 28, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/each-value/124442 "2007-12-28T18:47:58Z")

</div>

Hello, I have a params hash which is called params\[:person\] my people database has fields first\_name last\_name etc… When the web form is submitted for creation of a person, the params\[:person\] contains the value …

---

## [Ãšltimo controller / action llamado](https://www.ruby-forum.com/t/asltimo-controller-action-llamado/106096)

<div class="topic-metadata">

**Author:** [@CSSSSsar\_Duque](https://www.ruby-forum.com/u/CSSSSsar_Duque)\
**Replies:** 3\
**Last updated:** [June 6, 2007, 12:15pm UTC](https://www.ruby-forum.com/t/asltimo-controller-action-llamado/106096 "2007-06-06T12:15:46Z")

</div>

Hello boys & girls, Alguno conoce modo de obtener el último controller y action llamado por el cliente?. Necesitaría el anterior a los actuales @controller.controller\_name y @controller.action\_name y request.env\[‘HTT…

---

## [Changing sidebar in layout per controller](https://www.ruby-forum.com/t/changing-sidebar-in-layout-per-controller/86741)

<div class="topic-metadata">

**Author:** [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Replies:** 3\
**Last updated:** [March 24, 2006, 3:02pm UTC](https://www.ruby-forum.com/t/changing-sidebar-in-layout-per-controller/86741 "2006-03-24T15:02:27Z")

</div>

I am currently using 2 layouts in my site. One is for the admin area. I am trying to get content in my sidebar to change depending upon the current controller. Example: Within admin I have a users controller and a ar…

---

## [How to install RTL-SDR driver in debian jessie](https://www.ruby-forum.com/t/how-to-install-rtl-sdr-driver-in-debian-jessie/242042)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [May 24, 2015, 7:57pm UTC](https://www.ruby-forum.com/t/how-to-install-rtl-sdr-driver-in-debian-jessie/242042 "2015-05-24T19:57:56Z")

</div>

Hello I installed GNURadio in the Hummingboard which has debian jessie OS. But the system cannot detect RTL-SDR. When I type command lsusb, it show Realtek Semiconductor Corp. RTL2838 DVB-T. when I type lsmod, noth…

---

## [Data extract from file sink block](https://www.ruby-forum.com/t/data-extract-from-file-sink-block/239597)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [March 6, 2014, 10:22am UTC](https://www.ruby-forum.com/t/data-extract-from-file-sink-block/239597 "2014-03-06T10:22:16Z")

</div>

Hi all, How to use file sink block in GRC. I want to extract output data from rx\_ofdm & tx\_ofdm examples bolck in GNU radio to plot BER V/s EB/N0 in MATLAB. If I use file sink blocks, it’s generate a banary file which…

---

## [Hiring RoR / PHP / Java Web Developers to work on RoR Development and Mid Management at Chennai](https://www.ruby-forum.com/t/hiring-ror-php-java-web-developers-to-work-on-ror-development-and-mid-management-at-chennai/221342)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 20, 2012, 12:22pm UTC](https://www.ruby-forum.com/t/hiring-ror-php-java-web-developers-to-work-on-ror-development-and-mid-management-at-chennai/221342 "2012-10-20T12:22:46Z")

</div>

Hi – We have immediate requirement for 50+ RoR developers and Mid management professionals for our customer at Chennai. Please send your CVs to removed\_email\_address@domain.invalid at the earliest. Below are the detai…

---

## [Resolver didn't work when proxy\_pass is a given domain](https://www.ruby-forum.com/t/resolver-didnt-work-when-proxy-pass-is-a-given-domain/210709)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [August 15, 2011, 3:20pm UTC](https://www.ruby-forum.com/t/resolver-didnt-work-when-proxy-pass-is-a-given-domain/210709 "2011-08-15T15:20:37Z")

</div>

sorry for my poor english first. I run nginx as a reverse proxy server,and set a dns server for it. I add the dns for the nginx at http directive: resolver 192.168.0.106; In nginx configuration: proxy\_pass http://te…

---

## [How to create carbon copy recipents (cc) in Action Mailer for rails version 2.3.8](https://www.ruby-forum.com/t/how-to-create-carbon-copy-recipents-cc-in-action-mailer-for-rails-version-2-3-8/209784)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [July 22, 2011, 3:35pm UTC](https://www.ruby-forum.com/t/how-to-create-carbon-copy-recipents-cc-in-action-mailer-for-rails-version-2-3-8/209784 "2011-07-22T15:35:22Z")

</div>

My application is devloped in rails -2.3.8 i able to send mail to a single recipent. recipients ‘removed\_email\_address@domain.invalid’ from @admin\_name subject sub body :cid =\> @cid, :name =\> user\_detail.name , :…

---

## [request.env\['HTTP\_USER\_AGENT'\]](https://www.ruby-forum.com/t/request-env-http-user-agent/188171)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 1\
**Last updated:** [May 6, 2010, 9:38pm UTC](https://www.ruby-forum.com/t/request-env-http-user-agent/188171 "2010-05-06T21:38:49Z")

</div>

Hi I just want to do a simple output on my machine showing the ie browser. Every example of request.env\[‘HTTP\_USER\_AGENT’\] that I have seen shows no gem requirement. However, when I try to run this on my computer, I a…

---

## [Specifying Order for Application & Plugin Routes](https://www.ruby-forum.com/t/specifying-order-for-application-plugin-routes/167342)

<div class="topic-metadata">

**Author:** [@willclarkdesigns](https://www.ruby-forum.com/u/willclarkdesigns)\
**Replies:** 1\
**Last updated:** [May 6, 2009, 9:58pm UTC](https://www.ruby-forum.com/t/specifying-order-for-application-plugin-routes/167342 "2009-05-06T21:58:50Z")

</div>

I see that with the latest version of Rails & Engines (http://www.rails-engines.org/news/2009/04/20/edge-engines-now-compatible-with-rails-2-3/) the plugin routes are to be moved to plugin\_root/config/routes.rb and Ra…

---

## [Problem with send\_data and csv file produced](https://www.ruby-forum.com/t/problem-with-send-data-and-csv-file-produced/95115)

<div class="topic-metadata">

**Author:** [@burninglegion](https://www.ruby-forum.com/u/burninglegion)\
**Replies:** 1\
**Last updated:** [May 22, 2006, 10:55am UTC](https://www.ruby-forum.com/t/problem-with-send-data-and-csv-file-produced/95115 "2006-05-22T10:55:43Z")

</div>

hi, i did a search and couldn’t find wat’s the problem with my code… it seems everything is the same and the result is what i expected but i am not sure where went wrong… using send\_data function to send the csv file …

---

## [Issues with includes](https://www.ruby-forum.com/t/issues-with-includes/241487)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [April 9, 2015, 7:40pm UTC](https://www.ruby-forum.com/t/issues-with-includes/241487 "2015-04-09T19:40:49Z")

</div>

hello, I am pretty new to swigs and cmake so I apologize ahead of time if this is a bit of basic question but I have been having some problems geting c++ blocks to run if I add an include to my own generated code. f…

---

## [Customise message for validates\_uniqueness\_of](https://www.ruby-forum.com/t/customise-message-for-validates-uniqueness-of/231195)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 28, 2014, 10:57pm UTC](https://www.ruby-forum.com/t/customise-message-for-validates-uniqueness-of/231195 "2014-07-28T22:57:05Z")

</div>

I am trying to convert an integer to a DAYNAME in my validation message validates\_uniqueness\_of :day, scope: :store, :message =\> “already has a target for #{Date::DAYNAMES\[self.day\]}.” This does not seem to work, I ca…

---

## [I am getting a Segmentation fault (core dumped) error when running companion](https://www.ruby-forum.com/t/i-am-getting-a-segmentation-fault-core-dumped-error-when-running-companion/237489)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 25, 2014, 4:26pm UTC](https://www.ruby-forum.com/t/i-am-getting-a-segmentation-fault-core-dumped-error-when-running-companion/237489 "2014-01-25T16:26:55Z")

</div>

Discuss-gnuradio mailing list removed\_email\_address@domain.invalid https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

---

## [RUBY\_VERSION\_\* macros in C?](https://www.ruby-forum.com/t/ruby-version-macros-in-c/191324)

<div class="topic-metadata">

**Author:** [@quintus](https://www.ruby-forum.com/u/quintus)\
**Replies:** 2\
**Last updated:** [July 9, 2010, 7:16pm UTC](https://www.ruby-forum.com/t/ruby-version-macros-in-c/191324 "2010-07-09T19:16:42Z")

</div>

Hi there, I’m trying to create a C extension that compiles for both Ruby 1.8 and 1.9. As far as I know, there should be the macros RUBY\_VERSION\_MAJOR, RUBY\_VERSION\_MINOR and RUBY\_VERSION\_TINY to check with which Ruby …

---

## [Error installing radiant in windows XP sp3](https://www.ruby-forum.com/t/error-installing-radiant-in-windows-xp-sp3/187368)

<div class="topic-metadata">

**Author:** [@kamz](https://www.ruby-forum.com/u/kamz)\
**Replies:** 2\
**Last updated:** [May 31, 2010, 7:06am UTC](https://www.ruby-forum.com/t/error-installing-radiant-in-windows-xp-sp3/187368 "2010-05-31T07:06:58Z")

</div>

Hello everyone. I am having trouble getting the Radaint CMS up and running in my Windows XP installation. I have rails 2.3.5 running.I am posting the error below . I am also posting a list of all the gems that i have …

---

## [Proxying Bittorrent](https://www.ruby-forum.com/t/proxying-bittorrent/175942)

<div class="topic-metadata">

**Author:** [@Michael\_Baudino](https://www.ruby-forum.com/u/Michael_Baudino)\
**Replies:** 2\
**Last updated:** [September 23, 2009, 1:42am UTC](https://www.ruby-forum.com/t/proxying-bittorrent/175942 "2009-09-23T01:42:33Z")

</div>

Hello, I’m trying to proxy BitTorrent tracker traffic through nginx (0.6.32) using the following configuration : \_\_\_\_\_\_\_\_\_\_ ±-------+ ±----------+ ( ) ±-----------+ | BT Box |----| Nginx Box |---…

---

## [ActiveRecord.connection\_pool separate connections for each p](https://www.ruby-forum.com/t/activerecord-connection-pool-separate-connections-for-each-p/170759)

<div class="topic-metadata">

**Author:** [@virendra](https://www.ruby-forum.com/u/virendra)\
**Replies:** 2\
**Last updated:** [June 23, 2009, 1:49am UTC](https://www.ruby-forum.com/t/activerecord-connection-pool-separate-connections-for-each-p/170759 "2009-06-23T01:49:27Z")

</div>

Hi! I am creating an ActiveRecord connection. In my code I am forking multiple processes which uses this ActiveRecord connection. However when the forked process ends it release the ActiveRecord Connection and I get …

---

## [Extending strftime](https://www.ruby-forum.com/t/extending-strftime/157592)

<div class="topic-metadata">

**Author:** [@wanyixue](https://www.ruby-forum.com/u/wanyixue)\
**Replies:** 2\
**Last updated:** [January 13, 2009, 1:37pm UTC](https://www.ruby-forum.com/t/extending-strftime/157592 "2009-01-13T13:37:45Z")

</div>

can i change the options which is recognized by strftime eg: ‘%Y %m %d’ will apply the format of YYYY mm dd can i do something like extending strftime to recognize ‘YYYY mm dd’ instead ? because right now , i am ru…

---

## [Og's answer to migrations?](https://www.ruby-forum.com/t/ogs-answer-to-migrations/122496)

<div class="topic-metadata">

**Author:** [@Arne\_B](https://www.ruby-forum.com/u/Arne_B)\
**Replies:** 2\
**Last updated:** [December 9, 2007, 5:36am UTC](https://www.ruby-forum.com/t/ogs-answer-to-migrations/122496 "2007-12-09T05:36:01Z")

</div>

I was just thinking about this, say you’re building an address book app. At first you give every address one phone number, but people start complaining and so you want to add a separate table for phone numbers so an a…

---

## [Validations of "type" when using Single Table Inheritance](https://www.ruby-forum.com/t/validations-of-type-when-using-single-table-inheritance/108709)

<div class="topic-metadata">

**Author:** [@Jaime\_Cham](https://www.ruby-forum.com/u/Jaime_Cham)\
**Replies:** 2\
**Last updated:** [July 10, 2007, 10:03am UTC](https://www.ruby-forum.com/t/validations-of-type-when-using-single-table-inheritance/108709 "2007-07-10T10:03:53Z")

</div>

Sorry if I’m just dumbing out, but is there a reason that when using Single Table Inheritance Rails doesn’t really validate the “type” field or provide some mechanism to do so? seems like a good way to corrupt a datab…

---

## [Вакансия фуллстек Ruby\\Vue в Icons8](https://www.ruby-forum.com/t/ruby-vue-icons8/262476)

<div class="topic-metadata">

**Author:** [@An\_Kabakova](https://www.ruby-forum.com/u/An_Kabakova)\
**Replies:** 0\
**Last updated:** [February 1, 2022, 11:51am UTC](https://www.ruby-forum.com/t/ruby-vue-icons8/262476 "2022-02-01T11:51:45Z")

</div>

Всем привет! Я рекрутер компании Icons8 (иконки и ПО для дизайнеров). Ищу full-stack на Ruby/Vue делать API для web и десктопных приложений (несколько проектов для дизайнеров+стоковая музыка) - так что всегда есть из че…

---

## [Need help on #grep](https://www.ruby-forum.com/t/need-help-on-grep/228932)

<div class="topic-metadata">

**Author:** [@my-ruby](https://www.ruby-forum.com/u/my-ruby)\
**Replies:** 8\
**Last updated:** [May 14, 2013, 7:35am UTC](https://www.ruby-forum.com/t/need-help-on-grep/228932 "2013-05-14T07:35:52Z")

</div>

I was trying to list the all the class names having the pattern stri with the below: p ObjectSpace.each\_object(Class).to\_a.grep(/(stri)/i) #=\> \[\] But not getting the output. So can anyone help me on the same? Thanks

---

## [Ruby on Rails Dev for musik-streaming portal in Cologne - Germany wanted. Permanent position. Visa s](https://www.ruby-forum.com/t/ruby-on-rails-dev-for-musik-streaming-portal-in-cologne-germany-wanted-permanent-position-visa-s/227139)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 0\
**Last updated:** [March 5, 2013, 3:32pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-dev-for-musik-streaming-portal-in-cologne-germany-wanted-permanent-position-visa-s/227139 "2013-03-05T15:32:50Z")

</div>

Currently i am searching for my Client in Cologne - Germany this Profile: music- and technology enthusiasts, which combines passion, hard-work and fun to change the way people will listen to music in the future. tart…

---

## [Find\_by\_sql](https://www.ruby-forum.com/t/find-by-sql/194642)

<div class="topic-metadata">

**Author:** [@PalaniKannan\_K](https://www.ruby-forum.com/u/PalaniKannan_K)\
**Replies:** 8\
**Last updated:** [September 8, 2010, 5:57pm UTC](https://www.ruby-forum.com/t/find-by-sql/194642 "2010-09-08T17:57:02Z")

</div>

Hi, I am using find\_by\_sql (“SELECT \* FROM taxas WHERE taxon\_id = ‘39’”) in controller. Instead of ‘39’… I need to get variable from the user through view.rhtml. Kindly help me on this scripting. – With Regards P…

---

## [\[Feature:trunk\] RubyVM::InstructionSequence to accept IOs](https://www.ruby-forum.com/t/feature-trunk-rubyvm-instructionsequence-to-accept-ios/182456)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 8\
**Last updated:** [March 31, 2010, 5:45pm UTC](https://www.ruby-forum.com/t/feature-trunk-rubyvm-instructionsequence-to-accept-ios/182456 "2010-03-31T17:45:50Z")

</div>

Rippere$B$Oe(BRipper#initializee$B$Ge(BIOe$B$r\<u$1IU$1$^$9$,!"e(BISeqe$B$O$=$&$O$J$C$F$$$^$;$s!#e(B e$BHsBP\>N$J$N$Ge(BISeqe$B$be(BIOe$B$r\<u$1IU$1$k$h$&$K$9$k$N$O$I$&$G$7$g$&$+!#e(B Signed-off-by: Urabe, Shyuohei remov…

---

## [How to sum returned rows from a model using inject?](https://www.ruby-forum.com/t/how-to-sum-returned-rows-from-a-model-using-inject/172291)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 8\
**Last updated:** [July 19, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/how-to-sum-returned-rows-from-a-model-using-inject/172291 "2009-07-19T21:49:40Z")

</div>

Here’s my current loop: update\_total = model.find(:all) update\_total.each do |row| val = ((row.totoff + row.rushoff + row.passoff + row.scoroff + row.rzonoff + row.fumlost + row.passhint + row.tolost + row.sacksall + …

---

## [How long do you take for each Development Cycle](https://www.ruby-forum.com/t/how-long-do-you-take-for-each-development-cycle/158824)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 8\
**Last updated:** [January 31, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/how-long-do-you-take-for-each-development-cycle/158824 "2009-01-31T16:40:48Z")

</div>

Hi guys, I don’t know if this question is proper to post here. But I think it is related to every developer, so I post. I am using RoR for developments more than a year. We are using Bugzilla. We do unit, funcitonal …

---

## [Non Default :primary\_key doesnt get updated](https://www.ruby-forum.com/t/non-default-primary-key-doesnt-get-updated/156308)

<div class="topic-metadata">

**Author:** [@sudhakar\_m](https://www.ruby-forum.com/u/sudhakar_m)\
**Replies:** 8\
**Last updated:** [December 26, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/non-default-primary-key-doesnt-get-updated/156308 "2008-12-26T23:28:57Z")

</div>

Hi, I have to use non default primary key in one of my projects. If i save the record, the primary key is not getting updated. For example, consider post.rb class Post \< ActiveRecord::Base set\_primary\_key :ida2a2 …

---

## [Varying test data](https://www.ruby-forum.com/t/varying-test-data/125710)

<div class="topic-metadata">

**Author:** [@Kerry\_B](https://www.ruby-forum.com/u/Kerry_B)\
**Replies:** 8\
**Last updated:** [January 12, 2008, 10:56am UTC](https://www.ruby-forum.com/t/varying-test-data/125710 "2008-01-12T10:56:57Z")

</div>

This isn’t specific to RSpec, but is hopefully on-topic for this list. I like (especially when “ping pong pairing”) to write a spec, then write the smallest amount of code I can to pass it (especially when “ping pong …

---

## ['gem update' making wrong choice](https://www.ruby-forum.com/t/gem-update-making-wrong-choice/121070)

<div class="topic-metadata">

**Author:** [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Replies:** 8\
**Last updated:** [November 28, 2007, 5:51am UTC](https://www.ruby-forum.com/t/gem-update-making-wrong-choice/121070 "2007-11-28T05:51:23Z")

</div>

I work on a Win box, without compiler. But ‘gem environment’ gives two PLATFORMs, win32 and ruby. Then ‘gem update’ try to load the wrong gem… How may I clean the environment variable ? Thanks for help…

---

## [Esempi ldap](https://www.ruby-forum.com/t/esempi-ldap/87842)

<div class="topic-metadata">

**Author:** [@sulfarom](https://www.ruby-forum.com/u/sulfarom)\
**Replies:** 8\
**Last updated:** [March 6, 2007, 12:15pm UTC](https://www.ruby-forum.com/t/esempi-ldap/87842 "2007-03-06T12:15:28Z")

</div>

Salve. Sto perdendo un sacco di tempo per fare un elementare programma di inserimento dati in un database ldap. Purtroppo in rete non ci sono molti esempi cosi’ mi fermo in piccoli problemi. Es: def initialize @ba…

---

## [PVCS-Wishful Thinking](https://www.ruby-forum.com/t/pvcs-wishful-thinking/66978)

<div class="topic-metadata">

**Author:** [@timkar](https://www.ruby-forum.com/u/timkar)\
**Replies:** 8\
**Last updated:** [September 1, 2006, 5:01am UTC](https://www.ruby-forum.com/t/pvcs-wishful-thinking/66978 "2006-09-01T05:01:48Z")

</div>

So, I’m going to ask this question knowing full well that I’m going to be grossly disappointed in the answer; however, I have to try. Has anyone within the sound of this post developed or heard anyone who has develop…

---

## [Ruby 1.8.4, Rails 1.1 and Rmagick?](https://www.ruby-forum.com/t/ruby-1-8-4-rails-1-1-and-rmagick/57546)

<div class="topic-metadata">

**Author:** [@subimage](https://www.ruby-forum.com/u/subimage)\
**Replies:** 8\
**Last updated:** [April 12, 2006, 8:50pm UTC](https://www.ruby-forum.com/t/ruby-1-8-4-rails-1-1-and-rmagick/57546 "2006-04-12T20:50:42Z")

</div>

Someone mentioned that Rmagick doesn’t work properly on this setup (Ruby 1.8.4, Rails 1.1) Is this true?

---

## [Riding the Rails to acquisition](https://www.ruby-forum.com/t/riding-the-rails-to-acquisition/102391)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 8\
**Last updated:** [February 8, 2006, 10:24pm UTC](https://www.ruby-forum.com/t/riding-the-rails-to-acquisition/102391 "2006-02-08T22:24:07Z")

</div>

Guys, I think many of us on this list would consider ourselves entrepreneurs. I’m willing to bet at least 40% of you are working on ideas for startups…hoping that you just might have the next Flickr, Oddpost, del.ici…

---

## [Regular expressions for beginners](https://www.ruby-forum.com/t/regular-expressions-for-beginners/51818)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 8\
**Last updated:** [January 9, 2006, 10:10am UTC](https://www.ruby-forum.com/t/regular-expressions-for-beginners/51818 "2006-01-09T10:10:31Z")

</div>

There’s been a number of questions about regular expressions in recent days. The Ruby U.'s Guide has a small script to highlight regular expression patterns. I found it quite helpful for visualizing regex’s, especial…

---

## [Ruby finding double entries in arrays](https://www.ruby-forum.com/t/ruby-finding-double-entries-in-arrays/245287)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [March 14, 2017, 3:54pm UTC](https://www.ruby-forum.com/t/ruby-finding-double-entries-in-arrays/245287 "2017-03-14T15:54:05Z")

</div>

How can I find double entries in arrays? The Code: list = \[1,1,2,2,3,3,4,5\] def ungerade\_zahlen( odd ) number = 0 odd.each do |element| if element % 2 == 1 number +=1 end end puts number return number end u…

---

## [Delete or restart cookies - issue with chrome](https://www.ruby-forum.com/t/delete-or-restart-cookies-issue-with-chrome/232699)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [October 23, 2014, 9:23am UTC](https://www.ruby-forum.com/t/delete-or-restart-cookies-issue-with-chrome/232699 "2014-10-23T09:23:26Z")

</div>

Hi guys. We have an issue with chrome. Some day, some one make a redirect loop with own production nginx server. We fixed that but some users store the redirect loop on the cookies, and report that can’t show the we…

---

## [Has\_many association and parent\_id](https://www.ruby-forum.com/t/has-many-association-and-parent-id/216198)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 31, 2012, 8:42pm UTC](https://www.ruby-forum.com/t/has-many-association-and-parent-id/216198 "2012-01-31T20:42:53Z")

</div>

Rails 3.1.3 Hi everyone again. I’m trying to develop a database and tables which have the association as follows. Video 1 ----- 0…n Script So, in ‘script.rb’ class Script \< ActiveRecord::Base belongs\_to :video … …

---

## [Be\_valid method undefined on model spec](https://www.ruby-forum.com/t/be-valid-method-undefined-on-model-spec/199632)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [November 25, 2010, 8:21pm UTC](https://www.ruby-forum.com/t/be-valid-method-undefined-on-model-spec/199632 "2010-11-25T20:21:09Z")

</div>

Hi all, I’m using rspec-rails and have a simple model spec which fails with the following trace: undefined local variable or method \`be\_valid’ for #\<Class: 0x00000102c6e820\> (NameError) Full trace: gist:713164 · Git…

---

## [MutableString issues on IronRuby](https://www.ruby-forum.com/t/mutablestring-issues-on-ironruby/190849)

<div class="topic-metadata">

**Author:** [@Douglas\_Campos](https://www.ruby-forum.com/u/Douglas_Campos)\
**Replies:** 3\
**Last updated:** [October 4, 2010, 11:58pm UTC](https://www.ruby-forum.com/t/mutablestring-issues-on-ironruby/190849 "2010-10-04T23:58:06Z")

</div>

Hi! I’m struggling with a weird error - I have a string filled up with binary data, and when I ask .length to it, CLR raises an exception telling it could not convert from specified charset to unicode. Is there any …

---

## [How to add Cache-Control: public to static files](https://www.ruby-forum.com/t/how-to-add-cache-control-public-to-static-files/176773)

<div class="topic-metadata">

**Author:** [@jauderho](https://www.ruby-forum.com/u/jauderho)\
**Replies:** 3\
**Last updated:** [October 6, 2009, 10:11am UTC](https://www.ruby-forum.com/t/how-to-add-cache-control-public-to-static-files/176773 "2009-10-06T10:11:24Z")

</div>

Hi, I have nginx set up to serve static content and to set it to maximum expires currently. However, I would also like to set the Cache-Control flag to public so that proxies will know that this is okay to cache. Howe…

---

## [Problema con scaffold](https://www.ruby-forum.com/t/problema-con-scaffold/162273)

<div class="topic-metadata">

**Author:** [@JosSSSS\_luis\_B](https://www.ruby-forum.com/u/JosSSSS_luis_B)\
**Replies:** 3\
**Last updated:** [March 9, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/problema-con-scaffold/162273 "2009-03-09T18:11:08Z")

</div>

Hola chicos, Como ya algunos de ustedes saben, estoy siguiendo un tutorial para aprender a usar rails. Ahora estoy tratando de usar un scaffold y me saca el siguiente error: undefined method \`scaffold’ for EventosCon…

---

## [Problema de parametros con check\_box](https://www.ruby-forum.com/t/problema-de-parametros-con-check-box/156487)

<div class="topic-metadata">

**Author:** [@Manuel\_P](https://www.ruby-forum.com/u/Manuel_P)\
**Replies:** 3\
**Last updated:** [December 29, 2008, 12:01am UTC](https://www.ruby-forum.com/t/problema-de-parametros-con-check-box/156487 "2008-12-29T00:01:37Z")

</div>

Hola a todos! amigos tengo un problemita con el check\_box de un formulario… El detalle es que en la vista muestro un listado de items o articulos y el usuario le da a cada check\_box cuyo valor es el id del articulo y…

---

## [Black background using paint\_buffered](https://www.ruby-forum.com/t/black-background-using-paint-buffered/135587)

<div class="topic-metadata">

**Author:** [@awarberg](https://www.ruby-forum.com/u/awarberg)\
**Replies:** 3\
**Last updated:** [April 23, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/black-background-using-paint-buffered/135587 "2008-04-23T12:55:38Z")

</div>

Hi, To avoid flickering during screen updates in a Frame on Windows I recently switched from paint do | dc | #… end to paint\_buffered do | dc | #… end The background colour of the Frame is set to WHITE, which i…

---

## [General Mongrel Question](https://www.ruby-forum.com/t/general-mongrel-question/134866)

<div class="topic-metadata">

**Author:** [@russianbandit](https://www.ruby-forum.com/u/russianbandit)\
**Replies:** 3\
**Last updated:** [April 15, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/general-mongrel-question/134866 "2008-04-15T21:46:31Z")

</div>

Could someone please clarify for me what is mongrel cluster vs. proxy vs. all that other stuff you use with mongrel? I’m basically confused why I can’t simply run one mongrel server and be happy. Why do I need a clus…

---

## [\[PATCH\] Some small patches](https://www.ruby-forum.com/t/patch-some-small-patches/115867)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 3\
**Last updated:** [September 29, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/patch-some-small-patches/115867 "2007-09-29T14:59:34Z")

</div>

Hi, I already tried to use ‘darcs send’ to send the patches to the repository, but this didn’t work. So attached are some small patches for various parts of nitro/og. Bye, Thomas

---

## [Configuration file parser like Config::General for perl](https://www.ruby-forum.com/t/configuration-file-parser-like-config-general-for-perl/113772)

<div class="topic-metadata">

**Author:** [@Tammo\_T](https://www.ruby-forum.com/u/Tammo_T)\
**Replies:** 3\
**Last updated:** [September 5, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/configuration-file-parser-like-config-general-for-perl/113772 "2007-09-05T12:41:01Z")

</div>

Hello, I have the problem, that in a project I am working in the configuration files are in a apache config file like format. This is a mixture of XML-Format and normal config format like name example use “for te…

---

## [Date\_select for valid days only. No Feb 30](https://www.ruby-forum.com/t/date-select-for-valid-days-only-no-feb-30/100762)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 3\
**Last updated:** [August 1, 2006, 1:12am UTC](https://www.ruby-forum.com/t/date-select-for-valid-days-only-no-feb-30/100762 "2006-08-01T01:12:03Z")

</div>

I am looking for some advice on how to make a date select display only valid days of the year. The standard date helper allows for you to choose 31 days for every month of the year. Since not all months have 31 days…

---

## [Test/unit : params order in assert\_equal](https://www.ruby-forum.com/t/test-unit-params-order-in-assert-equal/59664)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 3\
**Last updated:** [May 5, 2006, 12:36pm UTC](https://www.ruby-forum.com/t/test-unit-params-order-in-assert-equal/59664 "2006-05-05T12:36:43Z")

</div>

Hi all. I’ve found myself to always writing: assert\_equal variable\_to\_test, ‘value expected’ And Test::Unit says to me: ‘some wrong value’ expected but was ‘value expected’ when I’d want to see ‘value expected’ exp…

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

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