# Top

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

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

---

## [Array Ãºltimos 6 meses](https://www.ruby-forum.com/t/array-a-ltimos-6-meses/130023)

<div class="topic-metadata">

**Author:** [@masoto](https://www.ruby-forum.com/u/masoto)\
**Replies:** 6\
**Last updated:** [February 25, 2008, 12:23pm UTC](https://www.ruby-forum.com/t/array-a-ltimos-6-meses/130023 "2008-02-25T12:23:28Z")

</div>

Hola a todos, en una aplicaciÃ³n necesito trabajar con rangos de fecha, por ejemplo: dates = (Date.today-15 … Date.today).map(&:to\_s) Obtengo un array con con las fechas de los Ãºltimos 15 dÃ­as. Ahora necesito hacer…

---

## [ActiveResource and (polymorphic) associations](https://www.ruby-forum.com/t/activeresource-and-polymorphic-associations/124351)

<div class="topic-metadata">

**Author:** [@rails3000](https://www.ruby-forum.com/u/rails3000)\
**Replies:** 6\
**Last updated:** [December 28, 2007, 4:59pm UTC](https://www.ruby-forum.com/t/activeresource-and-polymorphic-associations/124351 "2007-12-28T16:59:28Z")

</div>

Hi, I’m just playing with ActiveResource and I did’nt find anything about the support of (polymorphic) associations. Is there a support at all? Thanks in advance

---

## [Sorting an array based on two attributes of objects](https://www.ruby-forum.com/t/sorting-an-array-based-on-two-attributes-of-objects/90165)

<div class="topic-metadata">

**Author:** [@senthil](https://www.ruby-forum.com/u/senthil)\
**Replies:** 6\
**Last updated:** [March 27, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/sorting-an-array-based-on-two-attributes-of-objects/90165 "2007-03-27T18:18:12Z")

</div>

Thanks for some of your replies for the lst post i need small modification in that post … i want to sort the salary in descending order. i have explained the same quesion again… Hi all, I want to sort the objects of …

---

## [Is calling system() from a thread suppose to be safe?](https://www.ruby-forum.com/t/is-calling-system-from-a-thread-suppose-to-be-safe/222357)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [September 4, 2012, 5:11am UTC](https://www.ruby-forum.com/t/is-calling-system-from-a-thread-suppose-to-be-safe/222357 "2012-09-04T05:11:55Z")

</div>

Hey there, I am calling system() from a thread and getting: system': no implicit conversion from nil to integer (TypeError) from wifi-state-observer:169:in vpn\_down’ from wifi-state-observer:46:in block in run' from w…

---

## [Create a select with HABM](https://www.ruby-forum.com/t/create-a-select-with-habm/217587)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [March 6, 2012, 1:39am UTC](https://www.ruby-forum.com/t/create-a-select-with-habm/217587 "2012-03-06T01:39:05Z")

</div>

Hello, I have two tables with association HABM, projects and users, and in projects I want to show all users that was associated to the project. I have try with this: \<%= select( “user”, “id”, Project.all.collect { |p…

---

## [How to make unique ids for URLs](https://www.ruby-forum.com/t/how-to-make-unique-ids-for-urls/194022)

<div class="topic-metadata">

**Author:** [@closedbook](https://www.ruby-forum.com/u/closedbook)\
**Replies:** 8\
**Last updated:** [August 28, 2010, 6:52pm UTC](https://www.ruby-forum.com/t/how-to-make-unique-ids-for-urls/194022 "2010-08-28T18:52:35Z")

</div>

The path I currently have for a record in the post table is this: www.myrailsapp.com/post/id here’s the route: map.resources :posts, :has\_many =\> :comments Any thoughts on how you would make the above this? www.myra…

---

## [Hash key value pairs](https://www.ruby-forum.com/t/hash-key-value-pairs/128947)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 8\
**Last updated:** [February 13, 2008, 10:57am UTC](https://www.ruby-forum.com/t/hash-key-value-pairs/128947 "2008-02-13T10:57:47Z")

</div>

Hi It seems to me that you cant append to hash. I am trying to find a way to dynamically create key value pairs. Example some\_hash = {“name” =\> “tom”, “uid”=“100”, “mail” = “tom.dot.com” } Now I have function which …

---

## [Ruby dht libs](https://www.ruby-forum.com/t/ruby-dht-libs/124546)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 8\
**Last updated:** [January 3, 2008, 5:45am UTC](https://www.ruby-forum.com/t/ruby-dht-libs/124546 "2008-01-03T05:45:35Z")

</div>

Anybody know of some DHT (distributed hash table) implementations written in ruby? Thanks! -Roger

---

## [Error de compilacion en gsub](https://www.ruby-forum.com/t/error-de-compilacion-en-gsub/122198)

<div class="topic-metadata">

**Author:** [@Angel\_Mauricio\_Pino](https://www.ruby-forum.com/u/Angel_Mauricio_Pino)\
**Replies:** 8\
**Last updated:** [December 6, 2007, 12:59am UTC](https://www.ruby-forum.com/t/error-de-compilacion-en-gsub/122198 "2007-12-06T00:59:45Z")

</div>

Tengo el siguiente cÃ³digo en un controller y me da error al compilar, alguna idea? def h( txt) txt.gsub! /\[Ã¡\]/, “á” txt.gsub! /\[Ã©\]/, “é” txt.gsub! /\[Ã­\]/, “í” txt.gsub! /\[Ã³\]/, “ó” txt.gsub! /\[Ãº\]/, “ú” end

---

## [\[Semi OT\] BlindDown and a floated div](https://www.ruby-forum.com/t/semi-ot-blinddown-and-a-floated-div/96183)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 8\
**Last updated:** [June 27, 2006, 3:37am UTC](https://www.ruby-forum.com/t/semi-ot-blinddown-and-a-floated-div/96183 "2006-06-27T03:37:39Z")

</div>

I am using the drop shadow technique described at http://www.1976design.com/blog/archive/2003/11/14/shadows/ to give several of my divs drop shadows. That part works fine. What doesn’t work so well is when I try to …

---

## [Update\_all along with conditions, validations and callbacks](https://www.ruby-forum.com/t/update-all-along-with-conditions-validations-and-callbacks/143776)

<div class="topic-metadata">

**Author:** [@deepak](https://www.ruby-forum.com/u/deepak)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/update-all-along-with-conditions-validations-and-callbacks/143776 "2008-07-22T17:49:03Z")

</div>

hi, I want to update the database given a where clause. Basically i want a function like ActiveRecord::base.update\_attributes along with a parameter for condition. http://www.railsbrain.com/api/rails-1.2.6/doc/index.…

---

## [Problem of using UHD blocks as Tx & Rx](https://www.ruby-forum.com/t/problem-of-using-uhd-blocks-as-tx-rx/198194)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 7\
**Last updated:** [October 30, 2010, 8:16pm UTC](https://www.ruby-forum.com/t/problem-of-using-uhd-blocks-as-tx-rx/198194 "2010-10-30T20:16:53Z")

</div>

Hi everyone, I made a test for UHD blocks today, and I found a problem as follows: I take two USRP2 boards for my test. One is used as transmiter and the other board is set to be receiver.And I use UHD Simple Sink an…

---

## [Running a shell command from ruby](https://www.ruby-forum.com/t/running-a-shell-command-from-ruby/190979)

<div class="topic-metadata">

**Author:** [@studlee2](https://www.ruby-forum.com/u/studlee2)\
**Replies:** 7\
**Last updated:** [July 2, 2010, 3:56am UTC](https://www.ruby-forum.com/t/running-a-shell-command-from-ruby/190979 "2010-07-02T03:56:54Z")

</div>

I am experimenting with running bash commands from within ruby. The commands should be in an array, separated internally with semicolons. The problem is that they do not get executed. My script: #!/usr/bin/ruby scr…

---

## [New in Jargon: User Language Preference](https://www.ruby-forum.com/t/new-in-jargon-user-language-preference/111786)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 7\
**Last updated:** [August 11, 2007, 2:28am UTC](https://www.ruby-forum.com/t/new-in-jargon-user-language-preference/111786 "2007-08-11T02:28:51Z")

</div>

Just committed changes to jargon to allow users to select the language that they want to view the admin interface in: http://dev.radiantcms.org/radiant/changeset/479 There is still some work to do on this, but it work…

---

## [Couldn't find Type without an ID](https://www.ruby-forum.com/t/couldnt-find-type-without-an-id/110706)

<div class="topic-metadata">

**Author:** [@fgdhar](https://www.ruby-forum.com/u/fgdhar)\
**Replies:** 7\
**Last updated:** [July 30, 2007, 11:48am UTC](https://www.ruby-forum.com/t/couldnt-find-type-without-an-id/110706 "2007-07-30T11:48:17Z")

</div>

Hi, I am trying to learn Ruby on Rails programming. I have installed “Instant Rails” and trying to build a small application. I created a table called “types” for the application. Below is the structure of the type…

---

## [Using Rails to Generate static pages](https://www.ruby-forum.com/t/using-rails-to-generate-static-pages/96136)

<div class="topic-metadata">

**Author:** [@Chris\_ESSCBL](https://www.ruby-forum.com/u/Chris_ESSCBL)\
**Replies:** 7\
**Last updated:** [October 3, 2006, 4:41pm UTC](https://www.ruby-forum.com/t/using-rails-to-generate-static-pages/96136 "2006-10-03T16:41:19Z")

</div>

Hi all, Has anyone ever thought about or implemented a way to use Rails to pull content from a database and actually generate static html pages from view templates? I want to throw a bunch of content into a db usin…

---

## [Help needed in UNIT Testing](https://www.ruby-forum.com/t/help-needed-in-unit-testing/70453)

<div class="topic-metadata">

**Author:** [@narayana](https://www.ruby-forum.com/u/narayana)\
**Replies:** 7\
**Last updated:** [September 29, 2006, 11:17am UTC](https://www.ruby-forum.com/t/help-needed-in-unit-testing/70453 "2006-09-29T11:17:37Z")

</div>

hi guys, I needed help in Unit test. i just try to save new data intomy test database. but save method does not works for me. the result shows here def test\_new\_avail avail = Avail.new(:vendor\_id =\> 1, :last\_mod\_by…

---

## [Ajax Tabbed Browsing](https://www.ruby-forum.com/t/ajax-tabbed-browsing/98752)

<div class="topic-metadata">

**Author:** [@blewis](https://www.ruby-forum.com/u/blewis)\
**Replies:** 7\
**Last updated:** [July 18, 2006, 2:33am UTC](https://www.ruby-forum.com/t/ajax-tabbed-browsing/98752 "2006-07-18T02:33:44Z")

</div>

I was wondering if anyone has done this, namely make tabbed browsing exactly like a web browser, but have it within the page. I would like to make a search function that updates a section of the page with the results,…

---

## [Savoir de quel controlleur et de quelle action l'on vient?](https://www.ruby-forum.com/t/savoir-de-quel-controlleur-et-de-quelle-action-lon-vient/97299)

<div class="topic-metadata">

**Author:** [@Mathieu\_C](https://www.ruby-forum.com/u/Mathieu_C)\
**Replies:** 7\
**Last updated:** [July 7, 2006, 12:04pm UTC](https://www.ruby-forum.com/t/savoir-de-quel-controlleur-et-de-quelle-action-lon-vient/97299 "2006-07-07T12:04:22Z")

</div>

Bonjour, Je monte un système d’aide en ligne. C’est possible de savoir au sein d’un controlleur de quel controller et de quelle action l’on vient ? sans utiliser les sessions ? Ciao’

---

## [GNURadio fails to generate flow graph](https://www.ruby-forum.com/t/gnuradio-fails-to-generate-flow-graph/259896)

<div class="topic-metadata">

**Author:** [@bob11334](https://www.ruby-forum.com/u/bob11334)\
**Replies:** 1\
**Last updated:** [June 25, 2020, 9:00pm UTC](https://www.ruby-forum.com/t/gnuradio-fails-to-generate-flow-graph/259896 "2020-06-25T21:00:13Z")

</div>

Was away from GNURadio for about a month and when I came back, none of my flow graphs built at all. Using Ubuntu 18.04 dual booted from Windows 10 with GNURadio 3.9 Attached image is the error it’s throwing Image in r…

---

## [Collection\_select with optional text box](https://www.ruby-forum.com/t/collection-select-with-optional-text-box/245172)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [January 21, 2017, 10:04am UTC](https://www.ruby-forum.com/t/collection-select-with-optional-text-box/245172 "2017-01-21T10:04:02Z")

</div>

I have a form that prompts a user to select an option from a drop down selection box. Ideally I’d like a text box to appear next to the selection box only if they select “Add new”. I’ve been able to do this in the p…

---

## [Static local variables for methods?](https://www.ruby-forum.com/t/static-local-variables-for-methods/211029)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [August 24, 2011, 5:31pm UTC](https://www.ruby-forum.com/t/static-local-variables-for-methods/211029 "2011-08-24T17:31:34Z")

</div>

I have this: def valid\_attributes { :email =\> “some\_#{rand(9999)}@thing.com” } end For Rspec testing right? But I would like to do something like this: def valid\_attributes static user\_id = 0 user\_id += 1 { :emai…

---

## [Counter Inside a Block?](https://www.ruby-forum.com/t/counter-inside-a-block/208448)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [June 18, 2011, 10:47pm UTC](https://www.ruby-forum.com/t/counter-inside-a-block/208448 "2011-06-18T22:47:10Z")

</div>

Hello! When inside a block, do I have access to a local integer counter from 0 up to whatever the length of the collection, like this: %w\[ Hamster Zebra Wolf \].each do|a| puts “Warning Number #{$CURRENT}: a #{a} …

---

## [Stupid question about blocks in before\_validation for eg](https://www.ruby-forum.com/t/stupid-question-about-blocks-in-before-validation-for-eg/192419)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [July 30, 2010, 11:56am UTC](https://www.ruby-forum.com/t/stupid-question-about-blocks-in-before-validation-for-eg/192419 "2010-07-30T11:56:22Z")

</div>

Hi, I’m hitting a wall in my ruby knowledge. When I have: before\_validation { |object| object.permalink = object.title.parameterize } What’s that { |object| …} thing? It’s a block, ok, but when does it get executed?…

---

## [Create Temporary Sqlite in Memory](https://www.ruby-forum.com/t/create-temporary-sqlite-in-memory/181914)

<div class="topic-metadata">

**Author:** [@karlshea](https://www.ruby-forum.com/u/karlshea)\
**Replies:** 2\
**Last updated:** [January 20, 2010, 7:31pm UTC](https://www.ruby-forum.com/t/create-temporary-sqlite-in-memory/181914 "2010-01-20T19:31:07Z")

</div>

I need to create a temporary, in memory, Sqlite3 database… plus I want all the AR goodness to go with. Oh, and I don’t want to affect existing AR models or schemas. I’m close, but I don’t know how to create a schema j…

---

## [Difference between blks and blks2](https://www.ruby-forum.com/t/difference-between-blks-and-blks2/167613)

<div class="topic-metadata">

**Author:** [@Colby\_B](https://www.ruby-forum.com/u/Colby_B)\
**Replies:** 2\
**Last updated:** [May 13, 2009, 12:53pm UTC](https://www.ruby-forum.com/t/difference-between-blks-and-blks2/167613 "2009-05-13T12:53:38Z")

</div>

Hi all, So I am not too familiar with the history of how GNU-Radio has evolved over the past few years and I am wondering what are the fundamental differences between blks and blks2(old revisions vs new revisions)? …

---

## [Win32ole and WMI question](https://www.ruby-forum.com/t/win32ole-and-wmi-question/156806)

<div class="topic-metadata">

**Author:** [@baz0860](https://www.ruby-forum.com/u/baz0860)\
**Replies:** 2\
**Last updated:** [January 3, 2009, 11:58am UTC](https://www.ruby-forum.com/t/win32ole-and-wmi-question/156806 "2009-01-03T11:58:26Z")

</div>

Hi, I am trying to get process information from Windows server. Using examples I have found on the web and in documentation I have come up with the following script. require ‘win32ole’ wmi = WIN32OLE.connect("winmg…

---

## [Redcloth executable removed from gem?](https://www.ruby-forum.com/t/redcloth-executable-removed-from-gem/152719)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 2\
**Last updated:** [November 11, 2008, 2:01am UTC](https://www.ruby-forum.com/t/redcloth-executable-removed-from-gem/152719 "2008-11-11T02:01:52Z")

</div>

Hello, I have the RedCloth 4.x gem installed on a new machine. I used to use the redcloth command line tool/executable ocassionally. Can anyone clarify if it’s still part of the RedCloth 4.x gem series? Thanks. PS: …

---

## [Can rails create a database table](https://www.ruby-forum.com/t/can-rails-create-a-database-table/84550)

<div class="topic-metadata">

**Author:** [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Replies:** 2\
**Last updated:** [February 5, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/can-rails-create-a-database-table/84550 "2007-02-05T23:49:57Z")

</div>

Hi, I know the activeRecords can use easily a table from a database, but if I want to create a new table, can rails do this??? Thanks you very much Sayoyo

---

## [Undefined method \`to\_url' for "This is my weblog":String](https://www.ruby-forum.com/t/undefined-method-to-url-for-this-is-my-weblog-string/58721)

<div class="topic-metadata">

**Author:** [@Pras](https://www.ruby-forum.com/u/Pras)\
**Replies:** 2\
**Last updated:** [April 27, 2006, 3:19am UTC](https://www.ruby-forum.com/t/undefined-method-to-url-for-this-is-my-weblog-string/58721 "2006-04-27T03:19:58Z")

</div>

Hi, In my application I cant use “to\_url” method on any of strings. What should I do if i want to use this method? Is there any plugin needed to download for this “to\_url”. In my application now when I am trying to …

---

## [Want to write api of twitter to post tweet without any gem/library means with curl command](https://www.ruby-forum.com/t/want-to-write-api-of-twitter-to-post-tweet-without-any-gem-library-means-with-curl-command/244514)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [April 26, 2016, 4:29pm UTC](https://www.ruby-forum.com/t/want-to-write-api-of-twitter-to-post-tweet-without-any-gem-library-means-with-curl-command/244514 "2016-04-26T16:29:12Z")

</div>

Hello I am new to ruby want to create an api which post tweet to twitter without help of any gem include as we did on command line by running below code: curl --request ‘POST’ ‘https://api.twitter.com/1.1/statuses/up…

---

## [Ruby on rails: try to connect Stripe](https://www.ruby-forum.com/t/ruby-on-rails-try-to-connect-stripe/246554)

<div class="topic-metadata">

**Author:** [@Psycho\_S](https://www.ruby-forum.com/u/Psycho_S)\
**Replies:** 0\
**Last updated:** [December 27, 2015, 11:38pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-try-to-connect-stripe/246554 "2015-12-27T23:38:46Z")

</div>

Hi all. i am trying to connect StipeConnect to my app. I downloaded simple code example from I update and install bundle, copy and change some session files, but receive an error: NameError in Users#show Showing /…

---

## [Ruby holiday in the UK?](https://www.ruby-forum.com/t/ruby-holiday-in-the-uk/228617)

<div class="topic-metadata">

**Author:** [@louisror](https://www.ruby-forum.com/u/louisror)\
**Replies:** 3\
**Last updated:** [May 3, 2013, 5:38pm UTC](https://www.ruby-forum.com/t/ruby-holiday-in-the-uk/228617 "2013-05-03T17:38:28Z")

</div>

Hola Italia, Hope you guys are doing well. The UK contract Rails market has got awesome over the last couple of weeks. I’ve got like 6 friggin’ contracts available at the moment in London and around the UK working on…

---

## [Difference between validate and validate\_on\_create](https://www.ruby-forum.com/t/difference-between-validate-and-validate-on-create/206355)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 28, 2011, 10:54pm UTC](https://www.ruby-forum.com/t/difference-between-validate-and-validate-on-create/206355 "2011-04-28T22:54:23Z")

</div>

i just ran into a problem with some test, and i am not exactly sure why, but the difference happened when i changed my model validation from: validate :custom\_validation to: validate\_on\_create :custom\_validation can…

---

## [Warbler 1.2.1, Rails 2.3.8 and Tomcat - RackInitializationException: no such file to load](https://www.ruby-forum.com/t/warbler-1-2-1-rails-2-3-8-and-tomcat-rackinitializationexception-no-such-file-to-load/197337)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [November 9, 2010, 5:00pm UTC](https://www.ruby-forum.com/t/warbler-1-2-1-rails-2-3-8-and-tomcat-rackinitializationexception-no-such-file-to-load/197337 "2010-11-09T17:00:49Z")

</div>

I have a Rails 2.3.8 app that I have been building successfully with Warbler 1.1.0 and JRuby 1.5.1. It ran great under Tomcat. I just updated to Warbler 1.2.1, enabled the “compiled” feature in Warbler and now I’m ge…

---

## [Print problem with Mac OS X cutting pages](https://www.ruby-forum.com/t/print-problem-with-mac-os-x-cutting-pages/176374)

<div class="topic-metadata">

**Author:** [@Arno\_Dirlam](https://www.ruby-forum.com/u/Arno_Dirlam)\
**Replies:** 3\
**Last updated:** [October 7, 2009, 12:10am UTC](https://www.ruby-forum.com/t/print-problem-with-mac-os-x-cutting-pages/176374 "2009-10-07T00:10:27Z")

</div>

Hi, I am using the wxruby printing framework to print cash receipts with a small thermo-printer, which can naturally produce very long pages if a lot of articles are printed on them. Under Windows XP there are no pr…

---

## [Issue in ngx\_http\_parse\_request\_line](https://www.ruby-forum.com/t/issue-in-ngx-http-parse-request-line/233454)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [December 16, 2014, 2:24pm UTC](https://www.ruby-forum.com/t/issue-in-ngx-http-parse-request-line/233454 "2014-12-16T14:24:07Z")

</div>

Hi, I can see an issue in assigning the port\_start and port\_end members of ngx\_http\_request\_t inside ngx\_http\_parse\_request\_line(). If the request line has a absolute URI with explicit port specified, then port\_end …

---

## [How to make the Nginx-0.7.54(Windows official release) RUN AS WINDOWS SERVICE?](https://www.ruby-forum.com/t/how-to-make-the-nginx-0-7-54-windows-official-release-run-as-windows-service/167025)

<div class="topic-metadata">

**Author:** [@kernelforce](https://www.ruby-forum.com/u/kernelforce)\
**Replies:** 5\
**Last updated:** [May 3, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/how-to-make-the-nginx-0-7-54-windows-official-release-run-as-windows-service/167025 "2009-05-03T15:04:45Z")

</div>

Recently, I got Nginx-0.7.54(official Windows binary), it is simply to install, I’m very apperciate it. But in this version, Nginx must be started as cd c:\\nginx start nginx My question is how to make it run as a wi…

---

## [Controller filters running twice in 1.1.4?](https://www.ruby-forum.com/t/controller-filters-running-twice-in-1-1-4/139460)

<div class="topic-metadata">

**Author:** [@Matt\_McNeil](https://www.ruby-forum.com/u/Matt_McNeil)\
**Replies:** 5\
**Last updated:** [June 4, 2008, 10:27am UTC](https://www.ruby-forum.com/t/controller-filters-running-twice-in-1-1-4/139460 "2008-06-04T10:27:42Z")

</div>

since upgrading to 1.1.4 (I had been running without issue on a git snapshot), I’m noticing that my filter actions initiated from application.rb seem to be running twice. I created a test rails project with the rspec …

---

## [Best practises for exception handling](https://www.ruby-forum.com/t/best-practises-for-exception-handling/119656)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 5\
**Last updated:** [November 9, 2007, 5:29am UTC](https://www.ruby-forum.com/t/best-practises-for-exception-handling/119656 "2007-11-09T05:29:59Z")

</div>

I’m write a wrapper for a web service and am wondering about the best way to handle exceptions. The main method in the wrapper sends either a HEAD or GET request to a web server using Net::HTTP. Should I catch any ex…

---

## [Detection de navigateur avec Prototype](https://www.ruby-forum.com/t/detection-de-navigateur-avec-prototype/112963)

<div class="topic-metadata">

**Author:** [@initou](https://www.ruby-forum.com/u/initou)\
**Replies:** 5\
**Last updated:** [August 26, 2007, 1:04am UTC](https://www.ruby-forum.com/t/detection-de-navigateur-avec-prototype/112963 "2007-08-26T01:04:37Z")

</div>

Bonjour a tous, Longtemps fana des technos web microsoft (ASP.Net et Cie), j’ai decide de me mettre au Ruby On Rails lorsque j’ai fait l’acquisition d’un Mac. Donc je me forme (Ruby On Rails, 2eme edition chez Eyrolle…

---

## [Reading byte stream from network](https://www.ruby-forum.com/t/reading-byte-stream-from-network/112220)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [August 22, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/reading-byte-stream-from-network/112220 "2007-08-22T13:07:10Z")

</div>

Hi I hope this is an OK place to ask a beginner question. Right now I am just playing around with Ruby and IMO the best way to play around is actually writing smtg. So I wanted to convert one of my old C programs int…

---

## [Beginner Q: Kernel#puts, STDOUT, $stdout relation](https://www.ruby-forum.com/t/beginner-q-kernel-puts-stdout-stdout-relation/78833)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [December 9, 2006, 1:50am UTC](https://www.ruby-forum.com/t/beginner-q-kernel-puts-stdout-stdout-relation/78833 "2006-12-09T01:50:38Z")

</div>

Can anybody help me understanding the relation between Kernel#puts, STDOUT and $stdout? I thought ‘puts’ is equivalent to ‘$stdout.puts’. Why ‘puts’ doesn’t give same result as ‘STDOUT.puts’? class \<\< STDOUT def p…

---

## [Distinguish between Ajax.Request and Updater?](https://www.ruby-forum.com/t/distinguish-between-ajax-request-and-updater/77351)

<div class="topic-metadata">

**Author:** [@slain](https://www.ruby-forum.com/u/slain)\
**Replies:** 5\
**Last updated:** [December 1, 2006, 1:31pm UTC](https://www.ruby-forum.com/t/distinguish-between-ajax-request-and-updater/77351 "2006-12-01T13:31:52Z")

</div>

Is there a way to tell if an actiojn was called with Ajax.Request as opposed to Ajax.Updater? Ie., if link\_to\_remote was called without the :update param, and with the :update param? In my action I would like to know …

---

## [Help in deleting data from database](https://www.ruby-forum.com/t/help-in-deleting-data-from-database/232269)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [September 29, 2014, 9:26pm UTC](https://www.ruby-forum.com/t/help-in-deleting-data-from-database/232269 "2014-09-29T21:26:32Z")

</div>

Hey In section 5.13 of getting started with rails it shows how to delete data from the database. When i added the code i got this error. I have checked my code and cant find any problems. Help Please

---

## [Cmake and Fedora 20](https://www.ruby-forum.com/t/cmake-and-fedora-20/230370)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 13, 2014, 11:57pm UTC](https://www.ruby-forum.com/t/cmake-and-fedora-20/230370 "2014-06-13T23:57:01Z")

</div>

Hello All, I’m working on the Out-of-Tree Module tutorial to ensure that my install of GNU Radio (3.7.3) on Fedora 20 (64bit) is working properly (as I am more accustomed to working on Ubuntu). Alas, when I run CMake …

---

## [Gri\_portaudio](https://www.ruby-forum.com/t/gri-portaudio/225199)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [December 20, 2012, 4:38am UTC](https://www.ruby-forum.com/t/gri-portaudio/225199 "2012-12-20T04:38:57Z")

</div>

hi all, im trying to compile git sources under debian squeeze but can’t go further cause i use jackd2 and if i try to install portaudio19-dev the system will try to remove and go down to jackd. question: do i need por…

---

## [Validates\_format\_of with condition](https://www.ruby-forum.com/t/validates-format-of-with-condition/187077)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 4\
**Last updated:** [April 17, 2010, 8:14pm UTC](https://www.ruby-forum.com/t/validates-format-of-with-condition/187077 "2010-04-17T20:14:11Z")

</div>

Hi, I am trying to validate the email format by using “validates\_format\_of”. I have written a code like this:- "validates\_format\_of :email, :with=\>/^\[0-9a-zA-Z\_\]\[\\w.-\]\[a-zA-Z0-9\_\]@\[a-zA-Z0-9\]\[\\w.-\]\[a-zA-Z0-9\].\[a-zA-Z…

---

## [Problems with GNU radio in Cygwin](https://www.ruby-forum.com/t/problems-with-gnu-radio-in-cygwin/175197)

<div class="topic-metadata">

**Author:** [@Robert\_and\_Millie](https://www.ruby-forum.com/u/Robert_and_Millie)\
**Replies:** 4\
**Last updated:** [September 9, 2009, 8:09pm UTC](https://www.ruby-forum.com/t/problems-with-gnu-radio-in-cygwin/175197 "2009-09-09T20:09:30Z")

</div>

More Detail Provided: I am installing GNUradio version 3.2 into Cygwin running Windows XP. I am using the tarball source for wxPython version 2.8.10.1. I have unpacked the source and successfully compiled it, built …

---

## [Sql Rand() returns same result](https://www.ruby-forum.com/t/sql-rand-returns-same-result/168664)

<div class="topic-metadata">

**Author:** [@jgjgjg](https://www.ruby-forum.com/u/jgjgjg)\
**Replies:** 4\
**Last updated:** [May 24, 2009, 7:27pm UTC](https://www.ruby-forum.com/t/sql-rand-returns-same-result/168664 "2009-05-24T19:27:03Z")

</div>

I have a method that calls Model.find(:first, :order =\> “RAND()”) twice. I want it to return two different results but it always returns the same thing twice. Is there some kind of sql caching at work here? If so, can…

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

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