# Top

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

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

---

## [Nginx: Multiple apps, one domain](https://www.ruby-forum.com/t/nginx-multiple-apps-one-domain/110276)

<div class="topic-metadata">

**Author:** [@nadav](https://www.ruby-forum.com/u/nadav)\
**Replies:** 2\
**Last updated:** [July 26, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/nginx-multiple-apps-one-domain/110276 "2007-07-26T15:31:36Z")

</div>

Hi all. I guess I am not the first to encounter this… I want to deploy some rails apps, using only one domain (www.mydomain.com), so that www.mydomain.com/app1/… will be mapped to the app1 directory, www.mydomain.co…

---

## [Script/plugin discover errors](https://www.ruby-forum.com/t/script-plugin-discover-errors/96067)

<div class="topic-metadata">

**Author:** [@sthorpe](https://www.ruby-forum.com/u/sthorpe)\
**Replies:** 2\
**Last updated:** [November 12, 2006, 10:57pm UTC](https://www.ruby-forum.com/t/script-plugin-discover-errors/96067 "2006-11-12T22:57:06Z")

</div>

I would like to install The Ruby Engines plugin. So, I followed the directions at: http://www.rails-engines.org/download When I run script/plugin discover, I get the following: Add http://svn.northpub.com/plugins/? …

---

## [Globalize and update\_attributes returns nil](https://www.ruby-forum.com/t/globalize-and-update-attributes-returns-nil/96259)

<div class="topic-metadata">

**Author:** [@mattias](https://www.ruby-forum.com/u/mattias)\
**Replies:** 2\
**Last updated:** [June 27, 2006, 8:59pm UTC](https://www.ruby-forum.com/t/globalize-and-update-attributes-returns-nil/96259 "2006-06-27T20:59:12Z")

</div>

After installing and configuring of globalize I started testing on a small app. The problem I now have is that both Model.new and Model.update\_attributes return nil instead of true on a successful create or update. A…

---

## [How to execute time consuming code](https://www.ruby-forum.com/t/how-to-execute-time-consuming-code/95126)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 2\
**Last updated:** [May 22, 2006, 6:35pm UTC](https://www.ruby-forum.com/t/how-to-execute-time-consuming-code/95126 "2006-05-22T18:35:01Z")

</div>

Hello all, I have a screen scraping application (go to a lots of sites, extract 10k stuff, integrate the results, put them to DB etc). Now i want to use a Rails application as a frontend to this: The user can push a b…

---

## [Help нужно передать куки (need to transfer cookies)](https://www.ruby-forum.com/t/help-need-to-transfer-cookies/241209)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [May 19, 2014, 5:40am UTC](https://www.ruby-forum.com/t/help-need-to-transfer-cookies/241209 "2014-05-19T05:40:54Z")

</div>

Что делаю не так? Дайте пример конфигурации nginx с проксированием кук в заголовках. Необходимо проксировать все куки. Не могу получить список кук в nginx(не статика). По возможности включите в конфиг кеширование. Пут…

---

## [Utilizzare sinatra](https://www.ruby-forum.com/t/utilizzare-sinatra/243411)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [October 20, 2015, 3:56pm UTC](https://www.ruby-forum.com/t/utilizzare-sinatra/243411 "2015-10-20T15:56:29Z")

</div>

Qualcuno può indicarmi un buon tutorial riguardante l’utilizzo di sinatra? Grazie :slight\_smile:

---

## [Consuming REST API using Faraday/HTTParty - Tutorial Required](https://www.ruby-forum.com/t/consuming-rest-api-using-faraday-httparty-tutorial-required/234295)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [February 22, 2015, 11:19am UTC](https://www.ruby-forum.com/t/consuming-rest-api-using-faraday-httparty-tutorial-required/234295 "2015-02-22T11:19:58Z")

</div>

Hi, I am interested in learning how to consume a REST API for which a Ruby wrapper does not yet exist. Unfortunately, there are no good tutorials for the same, and the docs for Faraday and HTTParty do not explain th…

---

## [How to import any version of GNURadio into Qt Creator](https://www.ruby-forum.com/t/how-to-import-any-version-of-gnuradio-into-qt-creator/211810)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [September 21, 2011, 4:32am UTC](https://www.ruby-forum.com/t/how-to-import-any-version-of-gnuradio-into-qt-creator/211810 "2011-09-21T04:32:04Z")

</div>

Greetings everybody, You have probably heard of GQRX SDR Receiver - http://www.oz9aec.net/index.php/gnu-radio/gqrx-sdr - by Alexandru C… I have been using GNURadio 3.2.2 and I would ask how to import this version of …

---

## [How does nginx upgrade binaries on the fly?](https://www.ruby-forum.com/t/how-does-nginx-upgrade-binaries-on-the-fly/181829)

<div class="topic-metadata">

**Author:** [@codexon](https://www.ruby-forum.com/u/codexon)\
**Replies:** 1\
**Last updated:** [January 18, 2010, 11:15pm UTC](https://www.ruby-forum.com/t/how-does-nginx-upgrade-binaries-on-the-fly/181829 "2010-01-18T23:15:32Z")

</div>

I am interested in knowing how nginx upgrades binaries on the fly. What system calls does nginx do to create another master process that can inherit and use the same socket? Can anyone explain or point me to the rig…

---

## [My first rspec reports "undefined method \`key?' for #\<String:0x46b1df0\>"](https://www.ruby-forum.com/t/my-first-rspec-reports-undefined-method-key-for-string-0x46b1df0/155821)

<div class="topic-metadata">

**Author:** [@SSSBMpKSSzE5SSB](https://www.ruby-forum.com/u/SSSBMpKSSzE5SSB)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 8:10am UTC](https://www.ruby-forum.com/t/my-first-rspec-reports-undefined-method-key-for-string-0x46b1df0/155821 "2008-12-17T08:10:00Z")

</div>

this my first rspec test, it is very simple require File.expand\_path(File.dirname(FILE) + ‘/…/spec\_helper’) describe Doc do fixtures :docs before(:each) do @doc=docs(:yjn\_bjy) end it “should create a new instance …

---

## [How to refresh a panel?](https://www.ruby-forum.com/t/how-to-refresh-a-panel/153258)

<div class="topic-metadata">

**Author:** [@ramo](https://www.ruby-forum.com/u/ramo)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 1:58am UTC](https://www.ruby-forum.com/t/how-to-refresh-a-panel/153258 "2008-11-14T01:58:22Z")

</div>

Hello again This time i have a problem with this code Well, what i’m trying to do is, through a menu, to change panels. The problem is that i can’t find a way to change the panel, or refresh or delete, or whatever sh…

---

## [Strange behavior with acts\_as\_ferret in dev environment](https://www.ruby-forum.com/t/strange-behavior-with-acts-as-ferret-in-dev-environment/130279)

<div class="topic-metadata">

**Author:** [@jmaziarz](https://www.ruby-forum.com/u/jmaziarz)\
**Replies:** 1\
**Last updated:** [October 30, 2008, 2:17pm UTC](https://www.ruby-forum.com/t/strange-behavior-with-acts-as-ferret-in-dev-environment/130279 "2008-10-30T14:17:11Z")

</div>

I’m just wondering if this is expected behavior or not in the dev environment, and if not, what I could be doing wrong… I have a Contact model with the following line: acts\_as\_ferret :fields =\> \[ :first\_name, :middle\_…

---

## [4.0.2 Released](https://www.ruby-forum.com/t/4-0-2-released/145966)

<div class="topic-metadata">

**Author:** [@jasongarber](https://www.ruby-forum.com/u/jasongarber)\
**Replies:** 1\
**Last updated:** [August 16, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/4-0-2-released/145966 "2008-08-16T23:55:12Z")

</div>

This release fixes all the bugs that were reported since the release of RedCloth 4.0.1. It includes a workaround for a Rails 2.1 problem with unpacked gems, proper typographic characters for feet and inches, and impro…

---

## [Zlib::BufError](https://www.ruby-forum.com/t/zlib-buferror/108326)

<div class="topic-metadata">

**Author:** [@Sharon\_C](https://www.ruby-forum.com/u/Sharon_C)\
**Replies:** 1\
**Last updated:** [July 2, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/zlib-buferror/108326 "2007-07-02T15:03:49Z")

</div>

I’m having a problem upgrading from 0.6.1 to 0.6.2 on my local (Windows XP) test machine. I have tried this on a couple of Windows machines and each time I get a (Zlib::BufError) buffer error. On my local machine I h…

---

## [Is it possible to check on extension and delete a file?](https://www.ruby-forum.com/t/is-it-possible-to-check-on-extension-and-delete-a-file/83628)

<div class="topic-metadata">

**Author:** [@arkie](https://www.ruby-forum.com/u/arkie)\
**Replies:** 1\
**Last updated:** [June 1, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-check-on-extension-and-delete-a-file/83628 "2007-06-01T14:22:57Z")

</div>

Hi, I have been struggling to write a ruby script that can detect if a file with a certain extension exists and to delete that file. I have this: require ‘find’ total\_size = 0 Find.find(ENV\[“HOME”\]) do |path| if F…

---

## [Connecting to Multiple Databases with Multiple Database User](https://www.ruby-forum.com/t/connecting-to-multiple-databases-with-multiple-database-user/58958)

<div class="topic-metadata">

**Author:** [@martin-ga](https://www.ruby-forum.com/u/martin-ga)\
**Replies:** 1\
**Last updated:** [April 27, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/connecting-to-multiple-databases-with-multiple-database-user/58958 "2006-04-27T17:33:45Z")

</div>

Hi everyone, I am posting this again, as I didn’t get any replies … I was wondering what the common practice for handling multiple db users with fine grained privileges on multiple databases is. Against the often rea…

---

## [Possible bug in tag-\>srcid processing](https://www.ruby-forum.com/t/possible-bug-in-tag-srcid-processing/232221)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [October 2, 2014, 6:07pm UTC](https://www.ruby-forum.com/t/possible-bug-in-tag-srcid-processing/232221 "2014-10-02T18:07:29Z")

</div>

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

---

## [Has\_and\_belongs\_to\_many migration problem i am facing](https://www.ruby-forum.com/t/has-and-belongs-to-many-migration-problem-i-am-facing/223089)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [September 22, 2012, 6:40pm UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-migration-problem-i-am-facing/223089 "2012-09-22T18:40:21Z")

</div>

I have two models cow and milkman. I am using has\_and\_belongs\_to\_many in both models . By mistake i have deleted cows\_milkmans table from database. When i use this command i am getting error a = Cow.last a.milkmans…

---

## [Emoticon Code](https://www.ruby-forum.com/t/emoticon-code/218222)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 25, 2012, 6:24pm UTC](https://www.ruby-forum.com/t/emoticon-code/218222 "2012-03-25T18:24:09Z")

</div>

Hmm. These emoticons are valid ruby code (symbols): :smiley: :stuck\_out\_tongue: :stuck\_out\_tongue: :\[\] Can anyone think of more emoticons that I could use in my code? Unfortunately things like :confused: or :\\ d…

---

## [How do I properly read from a pipe?](https://www.ruby-forum.com/t/how-do-i-properly-read-from-a-pipe/217772)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 12, 2012, 8:16pm UTC](https://www.ruby-forum.com/t/how-do-i-properly-read-from-a-pipe/217772 "2012-03-12T20:16:47Z")

</div>

I want to pass some XML string to ‘tidy’ so it formats it nicely. So I do: document = ‘whatever’ IO.popen(‘tidy -xml -i’, ‘r+’) do |p| p.write document p.close read back the formatted output: p.read end But then …

---

## [Si continua a tentoni](https://www.ruby-forum.com/t/si-continua-a-tentoni/211719)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [September 12, 2011, 6:48pm UTC](https://www.ruby-forum.com/t/si-continua-a-tentoni/211719 "2011-09-12T18:48:48Z")

</div>

ok, ho superato gli inizi traballanti ma ora non capisco perche digito rvm use 1.9.2 da esito positivo ma poi se digito ruby -v dice che uso la 1.8.7 avete idee?

---

## [Printing field attributes outside the model.find\_by\_sql](https://www.ruby-forum.com/t/printing-field-attributes-outside-the-model-find-by-sql/205617)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [April 11, 2011, 7:41am UTC](https://www.ruby-forum.com/t/printing-field-attributes-outside-the-model-find-by-sql/205617 "2011-04-11T07:41:01Z")

</div>

Hi All, I have Model called pays…and it has fields like(id, topic, subject, created\_at, b\_id) and i also have a Model called suggests with fields(id, income, price, b\_id) In my ruby on rails action or method Control…

---

## [Usrp\_probe, failed to find usrp\[0\] - was working yesterday](https://www.ruby-forum.com/t/usrp-probe-failed-to-find-usrp-0-was-working-yesterday/197343)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 4\
**Last updated:** [October 13, 2010, 4:54am UTC](https://www.ruby-forum.com/t/usrp-probe-failed-to-find-usrp-0-was-working-yesterday/197343 "2010-10-13T04:54:24Z")

</div>

I just received a new USRP & WBX board for a research project I am working on. I have installed GNURadio from source from the tar package: http://ftp.gnu.org/gnu/gnuradio/gnuradio-3.3.0.tar.gz, on Ubuntu 10.04, amd64 …

---

## [A problem with Gem](https://www.ruby-forum.com/t/a-problem-with-gem/195113)

<div class="topic-metadata">

**Author:** [@Zark\_Yoc](https://www.ruby-forum.com/u/Zark_Yoc)\
**Replies:** 4\
**Last updated:** [September 17, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/a-problem-with-gem/195113 "2010-09-17T15:30:44Z")

</div>

I’m download the Ruby version 1.9.2-p0,and compile and install it,on /usr/local/. after the finish , i type the “gem install merb” or “gem install list” show an error. like this: ironbook:/home/zark/download/zlib-1…

---

## [Named route failing in class spec](https://www.ruby-forum.com/t/named-route-failing-in-class-spec/187925)

<div class="topic-metadata">

**Author:** [@cghost](https://www.ruby-forum.com/u/cghost)\
**Replies:** 4\
**Last updated:** [May 2, 2010, 8:46pm UTC](https://www.ruby-forum.com/t/named-route-failing-in-class-spec/187925 "2010-05-02T20:46:22Z")

</div>

I have something like: class Foo def initialize(template) @template = template end def link link\_to “foo”, foo\_path end def method\_missing(\*args, &block) @template.send(\*args, &block) end end … before(:all) …

---

## [Help convert code form PHP to Rails](https://www.ruby-forum.com/t/help-convert-code-form-php-to-rails/159499)

<div class="topic-metadata">

**Author:** [@lookshankar](https://www.ruby-forum.com/u/lookshankar)\
**Replies:** 4\
**Last updated:** [February 5, 2009, 6:30am UTC](https://www.ruby-forum.com/t/help-convert-code-form-php-to-rails/159499 "2009-02-05T06:30:33Z")

</div>

hi, Shown below is the PHP code to obtain the value for each date in the corresponding date range.And with I’ve attached the MYSQL Database Table.Please Have a look.I’ve tried to convert this code to rails but not ye…

---

## [Doubts in running a sample web application](https://www.ruby-forum.com/t/doubts-in-running-a-sample-web-application/155645)

<div class="topic-metadata">

**Author:** [@angaps](https://www.ruby-forum.com/u/angaps)\
**Replies:** 4\
**Last updated:** [December 15, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/doubts-in-running-a-sample-web-application/155645 "2008-12-15T19:48:32Z")

</div>

Hai Iam newbie. Iam using ruby on rails, I have some doubts in it. The steps i followed is Using ruby 1.8.6 rails 2.2.2 http://www.ibm.com/developerworks/linux/library/l-rubyrails/ created the rails project name …

---

## [How to get wireless carrier signal in GNU Radio](https://www.ruby-forum.com/t/how-to-get-wireless-carrier-signal-in-gnu-radio/151563)

<div class="topic-metadata">

**Author:** [@shirve](https://www.ruby-forum.com/u/shirve)\
**Replies:** 4\
**Last updated:** [October 26, 2008, 2:23am UTC](https://www.ruby-forum.com/t/how-to-get-wireless-carrier-signal-in-gnu-radio/151563 "2008-10-26T02:23:11Z")

</div>

Hi, As per the current status of GNU Radio, I got to know that there is no MAC (CSMA) implementation. Therefore I am not sure if I can get the signal from signal processing blocks of GNU Radio about the carrier sens…

---

## [Link\_to\_unless\_current y ampersand](https://www.ruby-forum.com/t/link-to-unless-current-y-ampersand/149204)

<div class="topic-metadata">

**Author:** [@fernan2](https://www.ruby-forum.com/u/fernan2)\
**Replies:** 4\
**Last updated:** [September 25, 2008, 10:09am UTC](https://www.ruby-forum.com/t/link-to-unless-current-y-ampersand/149204 "2008-09-25T10:09:03Z")

</div>

Parece que algo tan sencillo como esto, va mal: url="/usuarios/admin-list?estado=5&orden=nick" link\_to\_unless\_current(txt, url) AquÃ­ nunca le parece que sea current, y siempre saca el link, aunque efectivamente sea …

---

## [For WIN32OLE: The returning of Reading the Asian Langugae Text in Excel is always '? '](https://www.ruby-forum.com/t/for-win32ole-the-returning-of-reading-the-asian-langugae-text-in-excel-is-always/148678)

<div class="topic-metadata">

**Author:** [@Wu\_Nan](https://www.ruby-forum.com/u/Wu_Nan)\
**Replies:** 4\
**Last updated:** [September 16, 2008, 12:20pm UTC](https://www.ruby-forum.com/t/for-win32ole-the-returning-of-reading-the-asian-langugae-text-in-excel-is-always/148678 "2008-09-16T12:20:27Z")

</div>

Hi All, I think I just found a bug in Win32OLE, When I read a cell which has Korean or Chinese Character Text from Excel2003 with Win32Ole, whatever the text is, the value of the cell is always ‘???’ My environment…

---

## [How can I set window not resize?](https://www.ruby-forum.com/t/how-can-i-set-window-not-resize/135207)

<div class="topic-metadata">

**Author:** [@blitzer](https://www.ruby-forum.com/u/blitzer)\
**Replies:** 4\
**Last updated:** [April 19, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/how-can-i-set-window-not-resize/135207 "2008-04-19T13:14:28Z")

</div>

I try super(nil, :title =\> title, :size =\> \[700, 525\]) @window = Window.new(self, -1) @window.set\_background\_colour(WHITE) @window.set\_size(700,525) @window.resizable(false) resizable is not fuction declare. can I make…

---

## [Wrong number of arguments](https://www.ruby-forum.com/t/wrong-number-of-arguments/126043)

<div class="topic-metadata">

**Author:** [@lyon](https://www.ruby-forum.com/u/lyon)\
**Replies:** 4\
**Last updated:** [January 15, 2008, 1:12am UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments/126043 "2008-01-15T01:12:07Z")

</div>

hola lista tengo el siguiente detalle, talvez a alguno de ustedes ya les ocurrio acabo de instalar el ruby 1.8.6 y el rails 1.2.2 pero tengo un problema a la hora de ejecutar el comando ruby/script generate scaffold …

---

## [How do you validate dates of models](https://www.ruby-forum.com/t/how-do-you-validate-dates-of-models/123669)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 4\
**Last updated:** [December 20, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/how-do-you-validate-dates-of-models/123669 "2007-12-20T18:33:35Z")

</div>

i am wondering how you deal with date validation in your models … if i have a date attribute it only eats date objects … so i when i do this u = User.new(:born =\> Date.today) it works, but this results in a nil value …

---

## [8MHz Tx Bandwidth.. Nightmare and Fear](https://www.ruby-forum.com/t/8mhz-tx-bandwidth-nightmare-and-fear/113696)

<div class="topic-metadata">

**Author:** [@Vincenzo\_P](https://www.ruby-forum.com/u/Vincenzo_P)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/8mhz-tx-bandwidth-nightmare-and-fear/113696 "2007-09-25T23:09:08Z")

</div>

Matt, Tonight I have been recording slices of commercial FM spectrum, all centered right where a good station transmits, the first slice was 300Khz wide, the second was 2MHz the third was 4MHz then I sent all thes…

---

## [Arather basic and rather stupid MySQL question](https://www.ruby-forum.com/t/arather-basic-and-rather-stupid-mysql-question/111195)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [August 4, 2007, 8:45pm UTC](https://www.ruby-forum.com/t/arather-basic-and-rather-stupid-mysql-question/111195 "2007-08-04T20:45:49Z")

</div>

Email : removed\_email\_address@domain.invalid If I can do it then it can’t be done ! … - Anonymous As Dr. Nick of the Simpsons sez : Hi Everybody ! I’m trying to use Patrick Lenz’ Site Point book entitled “Build Your …

---

## [Update\_attributes and validations](https://www.ruby-forum.com/t/update-attributes-and-validations/86938)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [February 27, 2007, 1:34am UTC](https://www.ruby-forum.com/t/update-attributes-and-validations/86938 "2007-02-27T01:34:38Z")

</div>

I have a Person model. Person has\_many lab\_urls. The LabUrl model has a title and a url, which are both required. Now, I want to update a LabUrl object and stick some invalid data in there. And I want the person that …

---

## [Validates\_format\_of fails on empty field](https://www.ruby-forum.com/t/validates-format-of-fails-on-empty-field/80555)

<div class="topic-metadata">

**Author:** [@ldk2005](https://www.ruby-forum.com/u/ldk2005)\
**Replies:** 4\
**Last updated:** [December 30, 2006, 12:08am UTC](https://www.ruby-forum.com/t/validates-format-of-fails-on-empty-field/80555 "2006-12-30T00:08:19Z")

</div>

I have a phone number field with the following validation: validates\_format\_of :phone, :with =\> /^\\d\\d\\d-\\d\\d\\d-\\d\\d\\d\\d$/, :message =\> “The phone number must be of the format: ###-###-####” It works fine, when the p…

---

## [Win32-mmap 0.2.0](https://www.ruby-forum.com/t/win32-mmap-0-2-0/72101)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 4\
**Last updated:** [October 15, 2006, 1:09am UTC](https://www.ruby-forum.com/t/win32-mmap-0-2-0/72101 "2006-10-15T01:09:09Z")

</div>

Hi all, The Win32Utils team is happy to announce the release 0.2.0 release of win32-mmap. = What is it? A Ruby interface for memory mapped IO on windows. = What’s new? It is now pure Ruby instead of a C extension, …

---

## [Newbie Question to Get Rolling on Rails](https://www.ruby-forum.com/t/newbie-question-to-get-rolling-on-rails/63929)

<div class="topic-metadata">

**Author:** [@Justin\_JSLuciani](https://www.ruby-forum.com/u/Justin_JSLuciani)\
**Replies:** 4\
**Last updated:** [August 15, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/newbie-question-to-get-rolling-on-rails/63929 "2006-08-15T14:21:41Z")

</div>

I’m not sure if this is the right place to ask such questions. If not, my apologies and please direct me where such questions are handled. I am new to RoR and have been following the tutorial in Agile Web Developeme…

---

## [Detecting the close of a browser](https://www.ruby-forum.com/t/detecting-the-close-of-a-browser/97846)

<div class="topic-metadata">

**Author:** [@randomuser](https://www.ruby-forum.com/u/randomuser)\
**Replies:** 4\
**Last updated:** [July 10, 2006, 11:37pm UTC](https://www.ruby-forum.com/t/detecting-the-close-of-a-browser/97846 "2006-07-10T23:37:48Z")

</div>

Hi, I noticed that www.meebo.com has the ability that when you close the browser during a session, it prompts you , are you sure you want to close? How does it do this? I would like to use such an ability , so that i…

---

## [.rjs templates undesiered output problem](https://www.ruby-forum.com/t/rjs-templates-undesiered-output-problem/60801)

<div class="topic-metadata">

**Author:** [@Leo](https://www.ruby-forum.com/u/Leo)\
**Replies:** 4\
**Last updated:** [May 17, 2006, 8:30pm UTC](https://www.ruby-forum.com/t/rjs-templates-undesiered-output-problem/60801 "2006-05-17T20:30:10Z")

</div>

Hello everyone, I am working with rjs templates in rails, and I’m amazed of how simple it is to generate code with ajax, however I’am having some troubles and I can’t seem to find a way to solve’em. Whenever I put som…

---

## [How to create new rails 1.1 app if only rails 1.0 installed?](https://www.ruby-forum.com/t/how-to-create-new-rails-1-1-app-if-only-rails-1-0-installed/56774)

<div class="topic-metadata">

**Author:** [@pgohman](https://www.ruby-forum.com/u/pgohman)\
**Replies:** 4\
**Last updated:** [April 3, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/how-to-create-new-rails-1-1-app-if-only-rails-1-0-installed/56774 "2006-04-03T22:25:54Z")

</div>

I have rails 1.0 and I cannot install rails-1.1 system-wide. However, I can freeze\_edge (but just once because of svn 1.1.4 on Debian). Under this scenario, how can I create brand new rails-1.1 apps? I know how to fr…

---

## [How to add virtual fields in model](https://www.ruby-forum.com/t/how-to-add-virtual-fields-in-model/52380)

<div class="topic-metadata">

**Author:** [@Superbiji](https://www.ruby-forum.com/u/Superbiji)\
**Replies:** 4\
**Last updated:** [January 13, 2006, 1:47pm UTC](https://www.ruby-forum.com/t/how-to-add-virtual-fields-in-model/52380 "2006-01-13T13:47:21Z")

</div>

I want to add virtual fields in a model. table: field1 field2 I want to add field3 which is field1\*2 + field2 I know tihs can be achieved in View, but I want it in model. Then I will pass this model to PagerRenderer …

---

## ["Selecting" a calculated row / Using :select in the paginate](https://www.ruby-forum.com/t/selecting-a-calculated-row-using-select-in-the-paginate/51703)

<div class="topic-metadata">

**Author:** [@IvSSSSn\_Vega\_R](https://www.ruby-forum.com/u/IvSSSSn_Vega_R)\
**Replies:** 4\
**Last updated:** [January 6, 2006, 9:00pm UTC](https://www.ruby-forum.com/t/selecting-a-calculated-row-using-select-in-the-paginate/51703 "2006-01-06T21:00:58Z")

</div>

Hi, I was trying to use the :select parameter to select a calculated row, but it appears that the parameter is not picked up by the paginate method. I want to add the following to the select statement: timediff(now(…

---

## [Adding extra value to an object](https://www.ruby-forum.com/t/adding-extra-value-to-an-object/69056)

<div class="topic-metadata">

**Author:** [@naroor](https://www.ruby-forum.com/u/naroor)\
**Replies:** 4\
**Last updated:** [December 16, 2005, 11:28am UTC](https://www.ruby-forum.com/t/adding-extra-value-to-an-object/69056 "2005-12-16T11:28:25Z")

</div>

Hello friends , I have a clear method here :: def create @invoiceitems = Invoiceitems.new(params\[:invoiceitems\]) @invoiceitems\[“invoice\_id”\] = params\[:id\] if @invoiceitems.save flash\[:notice\] = ‘Invoiceitems was s…

---

## [Accept Header / cache versioning issue](https://www.ruby-forum.com/t/accept-header-cache-versioning-issue/243073)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [August 19, 2015, 11:00pm UTC](https://www.ruby-forum.com/t/accept-header-cache-versioning-issue/243073 "2015-08-19T23:00:24Z")

</div>

Hi Guys, I noticed that Nginx 1.8.X is taking into account the Client Header “Accept” for versioning the cache objects, for instance: This request, generates one object in cache: curl -sv -o /dev/null 'http://www.fo…

---

## [Parsing an object within an object](https://www.ruby-forum.com/t/parsing-an-object-within-an-object/241381)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [April 3, 2015, 5:02pm UTC](https://www.ruby-forum.com/t/parsing-an-object-within-an-object/241381 "2015-04-03T17:02:22Z")

</div>

Hello, I’m using ruby and the switchvox gem to pull data from an Asterisk box. I’m having a little trouble with the response I get back for the switchvox.callQueues.getCurrentStatus method call. I’m trying to pull th…

---

## [Fwd: New Defects reported by Coverity Scan for GNURadio](https://www.ruby-forum.com/t/fwd-new-defects-reported-by-coverity-scan-for-gnuradio/233959)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [January 26, 2015, 6:01pm UTC](https://www.ruby-forum.com/t/fwd-new-defects-reported-by-coverity-scan-for-gnuradio/233959 "2015-01-26T18:01:43Z")

</div>

FYI. -------- Forwarded Message -------- Subject: New Defects reported by Coverity Scan for GNURadio Date: Sun, 25 Jan 2015 23:13:10 -0800 From: removed\_email\_address@domain.invalid To: removed\_email\_address@domain.…

---

## [Question about using an automated date stamp for an abbreviation in the SciTE Editor Abbreviations F](https://www.ruby-forum.com/t/question-about-using-an-automated-date-stamp-for-an-abbreviation-in-the-scite-editor-abbreviations-f/227354)

<div class="topic-metadata">

**Author:** [@rubyman](https://www.ruby-forum.com/u/rubyman)\
**Replies:** 3\
**Last updated:** [March 12, 2013, 9:34pm UTC](https://www.ruby-forum.com/t/question-about-using-an-automated-date-stamp-for-an-abbreviation-in-the-scite-editor-abbreviations-f/227354 "2013-03-12T21:34:45Z")

</div>

Hello, I am using SciTE Editor ver. 1.59 and would like to do the following: I want to enter an abbreviation into my Abbreviations File that will produce a date stamp for entering comments in my Ruby code. I would li…

---

## [Timeout when sending over 16k of data with UTF-8 characters](https://www.ruby-forum.com/t/timeout-when-sending-over-16k-of-data-with-utf-8-characters/213404)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [November 1, 2011, 2:56pm UTC](https://www.ruby-forum.com/t/timeout-when-sending-over-16k-of-data-with-utf-8-characters/213404 "2011-11-01T14:56:59Z")

</div>

I’m experiencing an issue where nginx and having a difficult time determining the cause. It is timing out on an HTTPS PUT (to an HTTP backend) when content length is greater than 16384 (per $content\_length) and it con…

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

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