# Top

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

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

---

## [Choosing target network for UDP broadcast](https://www.ruby-forum.com/t/choosing-target-network-for-udp-broadcast/216399)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [February 3, 2012, 2:49pm UTC](https://www.ruby-forum.com/t/choosing-target-network-for-udp-broadcast/216399 "2012-02-03T14:49:32Z")

</div>

If I send a UDP packet containing ‘foo’ like this: socket = UDPSocket.new socket.setsockopt(Socket::SOL\_SOCKET, Socket::SO\_BROADCAST, true) socket.send(‘foo’, 0, ‘’, 40001) then wireshark tells me it gets sent from 1…

---

## [Add\_header not allowed in server if blocks?](https://www.ruby-forum.com/t/add-header-not-allowed-in-server-if-blocks/190306)

<div class="topic-metadata">

**Author:** [@steveh](https://www.ruby-forum.com/u/steveh)\
**Replies:** 3\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/add-header-not-allowed-in-server-if-blocks/190306 "2010-06-17T16:27:01Z")

</div>

I’m trying to add support for google chrome frame to our nginx config the simple way would be to include a fragment in each server block which looks something like: if ( $http\_user\_agent ~ chromeframe ) { …

---

## [RSS and images](https://www.ruby-forum.com/t/rss-and-images/181020)

<div class="topic-metadata">

**Author:** [@gibbons](https://www.ruby-forum.com/u/gibbons)\
**Replies:** 3\
**Last updated:** [January 4, 2010, 2:34pm UTC](https://www.ruby-forum.com/t/rss-and-images/181020 "2010-01-04T14:34:37Z")

</div>

Hi all, Using the default Ruby RSS parser, which format is best suited to pulling in images from feed elements, RSS2 or Atom? And then, how do I use the RSS classes to pull those images, per feed element? I am not f…

---

## [Can someone explain this?](https://www.ruby-forum.com/t/can-someone-explain-this/204476)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 14, 2011, 1:01am UTC](https://www.ruby-forum.com/t/can-someone-explain-this/204476 "2011-03-14T01:01:30Z")

</div>

First I create a proc: p = proc { self::X = Class.new def self.X X.new end } Then I create a module: A = Module.new(&p) puts A.X # =\> #\<A::x:0x9c2e774\> Then i create another module: B = Module.new(&p) puts B.X #…

---

## [CRITICAL: Rspec gem install \> spec command not found!](https://www.ruby-forum.com/t/critical-rspec-gem-install-spec-command-not-found/182761)

<div class="topic-metadata">

**Author:** [@kristianm](https://www.ruby-forum.com/u/kristianm)\
**Replies:** 2\
**Last updated:** [February 3, 2010, 10:08am UTC](https://www.ruby-forum.com/t/critical-rspec-gem-install-spec-command-not-found/182761 "2010-02-03T10:08:32Z")

</div>

I have the beta release of the RSpec book. Trying to run the greeting example ‘Hello World’ Using brew as package manager Installed rspec gem using $ sudo gem install rspec kristian-mandrups-macbook-pro:rspec-coding…

---

## [No route matches for public directory](https://www.ruby-forum.com/t/no-route-matches-for-public-directory/171576)

<div class="topic-metadata">

**Author:** [@Jej](https://www.ruby-forum.com/u/Jej)\
**Replies:** 2\
**Last updated:** [July 6, 2009, 2:11am UTC](https://www.ruby-forum.com/t/no-route-matches-for-public-directory/171576 "2009-07-06T02:11:39Z")

</div>

Hi all, Strange problem! I get this error when I try to access the public directory (http://localhost:3000/stylesheets/): Routing Error No route matches “/stylesheets/” with {:method=\>:get} This occurs on a fresh ra…

---

## [Gsub and slash-ampersand in the substitution string](https://www.ruby-forum.com/t/gsub-and-slash-ampersand-in-the-substitution-string/71498)

<div class="topic-metadata">

**Author:** [@jpatokal](https://www.ruby-forum.com/u/jpatokal)\
**Replies:** 2\
**Last updated:** [October 9, 2006, 4:45pm UTC](https://www.ruby-forum.com/t/gsub-and-slash-ampersand-in-the-substitution-string/71498 "2006-10-09T16:45:48Z")

</div>

Greetings, I’m trying to do something that should be very simple: stick a “” in front of every instance of “&” in a string. However, the obvious code… “this&that”.gsub!("&", “") –\> "thisthat” # OK! “this&that”.gsu…

---

## [ActiveResource and transactions](https://www.ruby-forum.com/t/activeresource-and-transactions/187058)

<div class="topic-metadata">

**Author:** [@Rolf\_P](https://www.ruby-forum.com/u/Rolf_P)\
**Replies:** 5\
**Last updated:** [April 15, 2014, 4:50am UTC](https://www.ruby-forum.com/t/activeresource-and-transactions/187058 "2014-04-15T04:50:50Z")

</div>

Hi Not trying to solve a specific problem here, but have a theoretical question, anyhow… Having created a simple model/controller with the scaffold generator, I created a simple remote client based on ActiveResource. …

---

## [Can't install typo](https://www.ruby-forum.com/t/cant-install-typo/160993)

<div class="topic-metadata">

**Author:** [@darius](https://www.ruby-forum.com/u/darius)\
**Replies:** 5\
**Last updated:** [March 8, 2009, 6:48pm UTC](https://www.ruby-forum.com/t/cant-install-typo/160993 "2009-03-08T18:48:26Z")

</div>

Hello, I try install typo, on my local machine, after set database config, i try start application and get fallowing error: /usr/local/lib/site\_ruby/1.8/rubygems.rb:149:in activate': can't activate actionpack (= 1.13.…

---

## [Test fixtures order](https://www.ruby-forum.com/t/test-fixtures-order/151370)

<div class="topic-metadata">

**Author:** [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Replies:** 5\
**Last updated:** [October 20, 2008, 10:39pm UTC](https://www.ruby-forum.com/t/test-fixtures-order/151370 "2008-10-20T22:39:18Z")

</div>

Hello, I’m trying to get my Rails test suite to load fixtures in a certain order, but I’m coming across a really strange problem. I have two tables and a join table. Instead of creating the entries for the join table …

---

## [Ruby Variable assignment](https://www.ruby-forum.com/t/ruby-variable-assignment/237170)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 8\
**Last updated:** [October 28, 2013, 2:05pm UTC](https://www.ruby-forum.com/t/ruby-variable-assignment/237170 "2013-10-28T14:05:30Z")

</div>

Hello, I want to assign my variable ‘a’ some value as follows: a = “:name, btnK” and use this variable ‘a’. when I do this and use the variable, I get error as “no implicit conversion of String into Hash”… Aprreciate…

---

## [Web Services on Rails](https://www.ruby-forum.com/t/web-services-on-rails/229535)

<div class="topic-metadata">

**Author:** [@balaraju\_amzur](https://www.ruby-forum.com/u/balaraju_amzur)\
**Replies:** 8\
**Last updated:** [February 7, 2013, 12:36pm UTC](https://www.ruby-forum.com/t/web-services-on-rails/229535 "2013-02-07T12:36:27Z")

</div>

Hello all, I am so confusing about web services on Rails, can we use REST approach for WEB SERVICES on Rails. If we use REST Approach Which one is the best one ??? REST or SOAP or WSDL ??? are is there any other p…

---

## [Unable connect to NGX website from Safari](https://www.ruby-forum.com/t/unable-connect-to-ngx-website-from-safari/210080)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [August 2, 2011, 4:36pm UTC](https://www.ruby-forum.com/t/unable-connect-to-ngx-website-from-safari/210080 "2011-08-02T16:36:13Z")

</div>

Hello, We can not access NGX website with Safari, the error window shows: No certificate available No certificates meet the applications Click OK to continue. However, after I click OK, it does not go to website. I…

---

## [CamelCase and Underscores](https://www.ruby-forum.com/t/camelcase-and-underscores/191349)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 8\
**Last updated:** [July 10, 2010, 8:00pm UTC](https://www.ruby-forum.com/t/camelcase-and-underscores/191349 "2010-07-10T20:00:31Z")

</div>

Is there a document anywhere that indicates when to use camel casing and when to use underscores between words?

---

## [Installing Ferret](https://www.ruby-forum.com/t/installing-ferret/191033)

<div class="topic-metadata">

**Author:** [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Replies:** 8\
**Last updated:** [July 6, 2010, 1:12am UTC](https://www.ruby-forum.com/t/installing-ferret/191033 "2010-07-06T01:12:46Z")

</div>

Hi, I try to install the ferret gem (in my windows 7), I got this : gem install ferret -v 0.11.6 --source http://gems.rubyforge.org/ Building native extensions. This could take a while… ERROR: Error installing ferr…

---

## [RAILS\_DEFAULT\_LOGGER on Mental](https://www.ruby-forum.com/t/rails-default-logger-on-mental/81909)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 8\
**Last updated:** [January 16, 2007, 6:55pm UTC](https://www.ruby-forum.com/t/rails-default-logger-on-mental/81909 "2007-01-16T18:55:58Z")

</div>

Hi- I just updated my mental branch, when I tried to start the server I got: =\> Booting WEBrick… ./script/…/config/…/vendor/rails/activesupport/lib/active\_support/dependencies.rb:264:in load\_missing\_constant': uninit…

---

## [How does nginx handle random seed for ssl connections?](https://www.ruby-forum.com/t/how-does-nginx-handle-random-seed-for-ssl-connections/144992)

<div class="topic-metadata">

**Author:** [@alexp](https://www.ruby-forum.com/u/alexp)\
**Replies:** 1\
**Last updated:** [August 5, 2008, 8:01am UTC](https://www.ruby-forum.com/t/how-does-nginx-handle-random-seed-for-ssl-connections/144992 "2008-08-05T08:01:00Z")

</div>

Is there a apache’s SSLRandomSeed alternative in nginx? I just want to make nginx use specific device like /dev/urandom or /dev/random. All i could see that nginx code uses srandom() a pseudo random generator. Thanks …

---

## [Rake tasks from war file](https://www.ruby-forum.com/t/rake-tasks-from-war-file/223793)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [October 19, 2012, 10:59pm UTC](https://www.ruby-forum.com/t/rake-tasks-from-war-file/223793 "2012-10-19T22:59:01Z")

</div>

I want to run some rake tasks from a war file (i.e. after it’s deployed and exploded, I want to be able to run some setup and import tasks). I see from this response on stack overflow that there was work going on to …

---

## [A new navigation gem](https://www.ruby-forum.com/t/a-new-navigation-gem/222297)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [August 27, 2012, 2:05pm UTC](https://www.ruby-forum.com/t/a-new-navigation-gem/222297 "2012-08-27T14:05:52Z")

</div>

Hello, I working on Rails extention gem. The gem named semantic\_navigation and trying to make implementation of navigation for Rails application as easy as possible. Link to github: GitHub - fr33z3/semantic\_navigation…

---

## [Nginx serving large files - performance issues with more than ~800-1000 connections](https://www.ruby-forum.com/t/nginx-serving-large-files-performance-issues-with-more-than-800-1000-connections/219990)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [July 7, 2012, 12:17pm UTC](https://www.ruby-forum.com/t/nginx-serving-large-files-performance-issues-with-more-than-800-1000-connections/219990 "2012-07-07T12:17:46Z")

</div>

Hi, I have a cluster of 10 nginx 1.2.0 servers, on Linux. They primarily serve large files. Whenever the number of ESTABLISHED connections to nginx is above 800-1000, the things get very slow. I.e. it can take a min…

---

## [Gfortran-4.2.1 build 5666.3 for Xcode 4.0.2 on Mac OS X 10.6.7](https://www.ruby-forum.com/t/gfortran-4-2-1-build-5666-3-for-xcode-4-0-2-on-mac-os-x-10-6-7/207591)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [May 31, 2011, 9:59pm UTC](https://www.ruby-forum.com/t/gfortran-4-2-1-build-5666-3-for-xcode-4-0-2-on-mac-os-x-10-6-7/207591 "2011-05-31T21:59:25Z")

</div>

Hi, One of the build dependencies for gnuradio on Mac OS X 10.6.7 is a version of gfortran. The compiler supplied with Xcode 4.0.2 on Mac OS X 10.6.7 is gcc version 4.2.1 (Apple Inc. build 5666) (dot 3). The most re…

---

## [How to make stand a lone Shoes apps (with require 'shoes')](https://www.ruby-forum.com/t/how-to-make-stand-a-lone-shoes-apps-with-require-shoes/205276)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [April 3, 2011, 7:01am UTC](https://www.ruby-forum.com/t/how-to-make-stand-a-lone-shoes-apps-with-require-shoes/205276 "2011-04-03T07:01:16Z")

</div>

Hello everyone, I’m working in Netbeans IDE 6.9 and tried the Shoes graphics toolkit (shoesrb.org) in Hackety Hack (hackety-hack.com). I also installed Shoes 3 and tried my Shoes apps I written in Hackety Hack they wo…

---

## [Calling a commandline function using the onclick button](https://www.ruby-forum.com/t/calling-a-commandline-function-using-the-onclick-button/175092)

<div class="topic-metadata">

**Author:** [@pl\_helpme](https://www.ruby-forum.com/u/pl_helpme)\
**Replies:** 6\
**Last updated:** [September 8, 2009, 4:21pm UTC](https://www.ruby-forum.com/t/calling-a-commandline-function-using-the-onclick-button/175092 "2009-09-08T16:21:33Z")

</div>

Hello everyone, I’ll start by describing what I’m doing and saying that I am a newbie. In my ROR (2.1.2) application, would like to send read data from a text field using the onclick tag to a python script I wrote. …

---

## [When run from cron, regex NEVER match, always give nil](https://www.ruby-forum.com/t/when-run-from-cron-regex-never-match-always-give-nil/173984)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 6\
**Last updated:** [August 20, 2009, 4:19am UTC](https://www.ruby-forum.com/t/when-run-from-cron-regex-never-match-always-give-nil/173984 "2009-08-20T04:19:27Z")

</div>

I’m using ruby 1.8.6 on RHEL 5.3. I also had this problem with ruby 1.8.5 that comes with RHEL. I had hoped the ruby upgrade would fix it but it didn’t. Anyway, no regexps will match, even the most blatant matches, wh…

---

## [Cannot set pixbuf pixels - how to modify an image?](https://www.ruby-forum.com/t/cannot-set-pixbuf-pixels-how-to-modify-an-image/172707)

<div class="topic-metadata">

**Author:** [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Replies:** 6\
**Last updated:** [August 4, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/cannot-set-pixbuf-pixels-how-to-modify-an-image/172707 "2009-08-04T12:55:59Z")

</div>

Hello I am using: libgtk2-ruby1.8 0.19.0-3 I get: image.rb:27:in step': undefined method pixels=’ for #\<Gdk::Pixbuf:0xb790c970 ptr=0x8ff1c38\> from image.rb:32:in on\_button\_clicked' from image.rb:5:i…

---

## [Regarding the 1.1.3 security release](https://www.ruby-forum.com/t/regarding-the-1-1-3-security-release/124497)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 6\
**Last updated:** [December 29, 2007, 3:42pm UTC](https://www.ruby-forum.com/t/regarding-the-1-1-3-security-release/124497 "2007-12-29T15:42:19Z")

</div>

Apologies for starting a new thread; I just subscribed. Has anyone been able to make this exploit happen if requests are being proxied to Mongrel through Apache? I’ve been trying variations on the double-encoding th…

---

## [Triggering a query within a loop](https://www.ruby-forum.com/t/triggering-a-query-within-a-loop/79298)

<div class="topic-metadata">

**Author:** [@bill](https://www.ruby-forum.com/u/bill)\
**Replies:** 6\
**Last updated:** [December 15, 2006, 5:11pm UTC](https://www.ruby-forum.com/t/triggering-a-query-within-a-loop/79298 "2006-12-15T17:11:20Z")

</div>

Any help with this would be very appreciated, I’m completely new to rails. I’m building an application that’s looking to do the following: First off i’m trying to convert my site from ColdFusion to RoR, this is the s…

---

## [Ugh - label printing](https://www.ruby-forum.com/t/ugh-label-printing/73805)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 6\
**Last updated:** [October 27, 2006, 7:40pm UTC](https://www.ruby-forum.com/t/ugh-label-printing/73805 "2006-10-27T19:40:09Z")

</div>

I have a ‘Library’ module where I am going to have to print apparently 5 different types of labels depending upon whether they are for books, cd’s, audio tapes, video tapes, etc. Is anyone printing labels with Rails? …

---

## [Piping bounced emails to rails script](https://www.ruby-forum.com/t/piping-bounced-emails-to-rails-script/168265)

<div class="topic-metadata">

**Author:** [@rcs](https://www.ruby-forum.com/u/rcs)\
**Replies:** 4\
**Last updated:** [November 19, 2011, 6:16pm UTC](https://www.ruby-forum.com/t/piping-bounced-emails-to-rails-script/168265 "2011-11-19T18:16:27Z")

</div>

Hi all. I have been banging my head against the wall for two days. Hoping you can help; this isn’t strictly a rails problem, but something I’m encountering in trying to get rails and postfix to work together. I want…

---

## [Markaby/Xmlbuilder error - XmlMarkup cannot mix a text argum](https://www.ruby-forum.com/t/markaby-xmlbuilder-error-xmlmarkup-cannot-mix-a-text-argum/99024)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 4\
**Last updated:** [July 19, 2006, 9:43pm UTC](https://www.ruby-forum.com/t/markaby-xmlbuilder-error-xmlmarkup-cannot-mix-a-text-argum/99024 "2006-07-19T21:43:16Z")

</div>

Hi folks, I’m not sure if I’m grokking how to use Markaby correctly. I’m trying to render some external Markaby code as follows but get the ArgumentError at the end: require ‘markaby’ =\> true template =\<\<EOS h…

---

## [Checkbox TreeView availability?](https://www.ruby-forum.com/t/checkbox-treeview-availability/98302)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 4\
**Last updated:** [July 15, 2006, 6:03pm UTC](https://www.ruby-forum.com/t/checkbox-treeview-availability/98302 "2006-07-15T18:03:14Z")

</div>

Does anyone know of a RoR implementation of a TreeView in which you can navigate to leafs of branches and select multiple leafs of interest via checkboxes. An example of this is the javascript Checkbox Tree available …

---

## [Koala - how to get users facebook friends](https://www.ruby-forum.com/t/koala-how-to-get-users-facebook-friends/244956)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [July 18, 2016, 6:09pm UTC](https://www.ruby-forum.com/t/koala-how-to-get-users-facebook-friends/244956 "2016-07-18T18:09:08Z")

</div>

hi, im using the koala gem, and i woudl like to display a list of friends, meaning the friend of the user being displayed. -\>\> /user/:id/friends this give me only an empty array friends = @graph.get\_connections(“me”…

---

## [Close to a 4.2 release; experimenting with Ragel alternatives](https://www.ruby-forum.com/t/close-to-a-4-2-release-experimenting-with-ragel-alternatives/169708)

<div class="topic-metadata">

**Author:** [@jasongarber](https://www.ruby-forum.com/u/jasongarber)\
**Replies:** 2\
**Last updated:** [June 8, 2009, 6:29am UTC](https://www.ruby-forum.com/t/close-to-a-4-2-release-experimenting-with-ragel-alternatives/169708 "2009-06-08T06:29:00Z")

</div>

I just went through the ticket list and dropped a bunch from the 4.2 milestone that are just too difficult with Ragel. Many of them I’ve poked at and they’ve left me saying, “how the heck am I supposed to do that!?” …

---

## [How to iterate fixtures](https://www.ruby-forum.com/t/how-to-iterate-fixtures/166870)

<div class="topic-metadata">

**Author:** [@colinloretz](https://www.ruby-forum.com/u/colinloretz)\
**Replies:** 2\
**Last updated:** [April 30, 2009, 12:41pm UTC](https://www.ruby-forum.com/t/how-to-iterate-fixtures/166870 "2009-04-30T12:41:34Z")

</div>

I have fixture data in froglets.yml In my functional test I specify fixtures :froglets I can then access the individual fixture values by froglets(:froglet1) for example. I want to check the data in my index view so…

---

## [How to deal with these 3 model's association?](https://www.ruby-forum.com/t/how-to-deal-with-these-3-models-association/151125)

<div class="topic-metadata">

**Author:** [@jette](https://www.ruby-forum.com/u/jette)\
**Replies:** 2\
**Last updated:** [October 17, 2008, 10:02am UTC](https://www.ruby-forum.com/t/how-to-deal-with-these-3-models-association/151125 "2008-10-17T10:02:22Z")

</div>

Now I have 3 models, item category and sub-category and 3 Tables in my database. I planed to set the association like this. Item Belongs\_to :category Belongs\_to :sub-category category Has\_many :items Has\_many :su…

---

## [Problem starting mongrel in windows](https://www.ruby-forum.com/t/problem-starting-mongrel-in-windows/147848)

<div class="topic-metadata">

**Author:** [@suman\_gurungShotmai](https://www.ruby-forum.com/u/suman_gurungShotmai)\
**Replies:** 2\
**Last updated:** [September 7, 2008, 5:30am UTC](https://www.ruby-forum.com/t/problem-starting-mongrel-in-windows/147848 "2008-09-07T05:30:35Z")

</div>

Hi everybody, I was trying to get rails applications deployed in my pc(windows vista), and I had some problem trying to start mongrel web server, and I have no clue as to how and why it is not working. I have install…

---

## [Parsing useful subtext from text file, and saving it to Mysql](https://www.ruby-forum.com/t/parsing-useful-subtext-from-text-file-and-saving-it-to-mysql/234854)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [December 1, 2014, 4:29pm UTC](https://www.ruby-forum.com/t/parsing-useful-subtext-from-text-file-and-saving-it-to-mysql/234854 "2014-12-01T16:29:59Z")

</div>

Hi there, I am trying to figure out how to do something in Rails. Here’s the situation: I want to store in the DB (as fields) info found in a text file. I’ve created a ruby scripted, where I “isolate” the area with t…

---

## [Proxy\_pass & getServerPort problems](https://www.ruby-forum.com/t/proxy-pass-getserverport-problems/239102)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [February 13, 2014, 11:21am UTC](https://www.ruby-forum.com/t/proxy-pass-getserverport-problems/239102 "2014-02-13T11:21:22Z")

</div>

When I use the nginx upstream and proxy\_pass to Reverse Proxy the request. the configuration is: upstream w3new\_cls { server szxap205-in.huawei.com:9090; server szxap206-in.huawei.com:9090; } server { listen 80; …

---

## [Net::ssh authenticationfailed every time!](https://www.ruby-forum.com/t/net-ssh-authenticationfailed-every-time/121203)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 3\
**Last updated:** [May 18, 2010, 1:28pm UTC](https://www.ruby-forum.com/t/net-ssh-authenticationfailed-every-time/121203 "2010-05-18T13:28:23Z")

</div>

hi, got a real serious issue with net::ssh again, I’ve bought a new slice from slicehost running Ubuntu Gutsy 7.10, and i’ve setup ssh to work fine via… scp ~/.ssh/id\_rsa.pub root@myipaddress:~/ once copied to the se…

---

## [How do I use ActiveRecord for selects that return data across multiple tables, or a database view? (](https://www.ruby-forum.com/t/how-do-i-use-activerecord-for-selects-that-return-data-across-multiple-tables-or-a-database-view/159181)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [February 2, 2009, 3:53am UTC](https://www.ruby-forum.com/t/how-do-i-use-activerecord-for-selects-that-return-data-across-multiple-tables-or-a-database-view/159181 "2009-02-02T03:53:59Z")

</div>

Hi, If I want to return SQL data that cuts across multiple models (e.g. not specific to one mode) how do I do this? Actually the use case could be either (a) custom SQL I want to call or via (b) SQL call to a databa…

---

## [RedCloth Mini-Cookbook Started: How Tos, Recipes, F.A.Qs](https://www.ruby-forum.com/t/redcloth-mini-cookbook-started-how-tos-recipes-f-a-qs/146027)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 3\
**Last updated:** [August 16, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/redcloth-mini-cookbook-started-how-tos-recipes-f-a-qs/146027 "2008-08-16T23:38:13Z")

</div>

Hello, I’ve started a RedCloth mini cookbook collecting how-tos, recipes and F.A.Qs. How-tos in the mini cookbook so far include: o How to use the redcloth command line tool o How to turn off/disable hard line break…

---

## [How to perform natural sorting on model and result should be in ActiveRecord::Relation?](https://www.ruby-forum.com/t/how-to-perform-natural-sorting-on-model-and-result-should-be-in-activerecord-relation/234287)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [February 21, 2015, 11:09am UTC](https://www.ruby-forum.com/t/how-to-perform-natural-sorting-on-model-and-result-should-be-in-activerecord-relation/234287 "2015-02-21T11:09:44Z")

</div>

Hello All, I need to perform natural sorting on alphanumeric column’s data and even return type should be ActiveRecord::Relation. I tried ‘naturally’ and ‘‘naturalsorter’’ gem but not successful.Below link explain wh…

---

## [How to stub a has\_many relationship in Rails 2.3.5](https://www.ruby-forum.com/t/how-to-stub-a-has-many-relationship-in-rails-2-3-5/185684)

<div class="topic-metadata">

**Author:** [@killswitchcollectiv](https://www.ruby-forum.com/u/killswitchcollectiv)\
**Replies:** 1\
**Last updated:** [March 25, 2010, 1:24pm UTC](https://www.ruby-forum.com/t/how-to-stub-a-has-many-relationship-in-rails-2-3-5/185684 "2010-03-25T13:24:46Z")

</div>

We have a test that has been working find until we upgraded to rails 2.3.5. I’m not too familiar with mocks/stubs so maybe there is an easy solution. Here is a simple example of our scenario. Class Person \< ActiveRe…

---

## [Sobre patrones de creaciÃ³n: doble dep endencia has\_many, belongs\_to](https://www.ruby-forum.com/t/sobre-patrones-de-creacia-n-doble-dep-endencia-has-many-belongs-to/155040)

<div class="topic-metadata">

**Author:** [@fearx](https://www.ruby-forum.com/u/fearx)\
**Replies:** 7\
**Last updated:** [December 7, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/sobre-patrones-de-creacia-n-doble-dep-endencia-has-many-belongs-to/155040 "2008-12-07T19:41:47Z")

</div>

Hola gente, Tenemos por aquí el siguiente dilema: LA DOBLE VINCULACIÓN Tenemos el modelo Trip y el modelo Destination tal que: Trip has\_many :destination Destination belongs\_to :trip Una de las condiciones de Trip …

---

## [Contact Page with ActionMailer](https://www.ruby-forum.com/t/contact-page-with-actionmailer/151580)

<div class="topic-metadata">

**Author:** [@bbnnt](https://www.ruby-forum.com/u/bbnnt)\
**Replies:** 7\
**Last updated:** [October 29, 2008, 6:15am UTC](https://www.ruby-forum.com/t/contact-page-with-actionmailer/151580 "2008-10-29T06:15:51Z")

</div>

Hello, I am trying to make a very basic “contact me” form on my website. I have tried the following tutorials: http://railsforum.com/viewtopic.php?id=15172 http://railsforum.com/viewtopic.php?id=404 http://forums.sit…

---

## [Net::HTTP timeouts not respected depending on how it's used?](https://www.ruby-forum.com/t/net-http-timeouts-not-respected-depending-on-how-its-used/134209)

<div class="topic-metadata">

**Author:** [@xavi](https://www.ruby-forum.com/u/xavi)\
**Replies:** 1\
**Last updated:** [April 8, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/net-http-timeouts-not-respected-depending-on-how-its-used/134209 "2008-04-08T23:00:28Z")

</div>

In my Mac with Leopard, this doesn’t respect the 2 seconds timeout that’s set in the code… require ‘net/http’ require ‘uri’ url = URI.parse(“http://222.222.3.234”) req = Net::HTTP::Get.new(url.request\_uri) res = Ne…

---

## [Sending Multiple Files To The Browser](https://www.ruby-forum.com/t/sending-multiple-files-to-the-browser/111385)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 1\
**Last updated:** [August 6, 2007, 7:12pm UTC](https://www.ruby-forum.com/t/sending-multiple-files-to-the-browser/111385 "2007-08-06T19:12:51Z")

</div>

Hello, I am having trouble sending multiple files to the browser in one action. I can’t be the first to do this, so I’m wondering what the best pattern is. The user has a screen where they can choose files they woul…

---

## [How to create your own markup language?](https://www.ruby-forum.com/t/how-to-create-your-own-markup-language/57278)

<div class="topic-metadata">

**Author:** [@SSSSSbastien\_Grosje](https://www.ruby-forum.com/u/SSSSSbastien_Grosje)\
**Replies:** 7\
**Last updated:** [April 9, 2006, 12:51pm UTC](https://www.ruby-forum.com/t/how-to-create-your-own-markup-language/57278 "2006-04-09T12:51:57Z")

</div>

I’m actually looking to create my own markup language, after a look to the greats markdown and textilize markup languages they seem to be more complexes that what I need, so not feating with my application. Any help i…

---

## [How to capture a pressed key?](https://www.ruby-forum.com/t/how-to-capture-a-pressed-key/96674)

<div class="topic-metadata">

**Author:** [@rubyist](https://www.ruby-forum.com/u/rubyist)\
**Replies:** 7\
**Last updated:** [January 25, 2006, 4:55am UTC](https://www.ruby-forum.com/t/how-to-capture-a-pressed-key/96674 "2006-01-25T04:55:56Z")

</div>

Hi, How can I capture a key from keyboard in a console program? I mean, I want to get an answer consisted of only one letter and the user will not press “enter”. Just a key, that’s all. Thank you.

---

## [Handling 500k concurrent connections on Linux](https://www.ruby-forum.com/t/handling-500k-concurrent-connections-on-linux/223568)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [October 10, 2012, 10:12pm UTC](https://www.ruby-forum.com/t/handling-500k-concurrent-connections-on-linux/223568 "2012-10-10T22:12:31Z")

</div>

I was wondering if anyone had some tips/guidelines for scaling Nginx on Linux to \>500k concurrent connections. Playing with the nginx\_http\_push\_stream module in streaming mode. Noticing periodic slow accept and/or res…

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

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