# Top

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

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

---

## [Private method in custom module](https://www.ruby-forum.com/t/private-method-in-custom-module/180925)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 4\
**Last updated:** [December 31, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/private-method-in-custom-module/180925 "2009-12-31T21:25:11Z")

</div>

I have a module of custom examples, such as module ControllerHelperMethods module MyExampleGroupMethods def should\_set\_the\_body\_id(body\_id) it “should set the body id to ‘#{body\_id}’” do assigns\[:body\_id\].should == …

---

## [Spreadsheet::ParseExcel](https://www.ruby-forum.com/t/spreadsheet-parseexcel/101931)

<div class="topic-metadata">

**Author:** [@spreadsheet](https://www.ruby-forum.com/u/spreadsheet)\
**Replies:** 4\
**Last updated:** [August 4, 2009, 2:15pm UTC](https://www.ruby-forum.com/t/spreadsheet-parseexcel/101931 "2009-08-04T14:15:34Z")

</div>

Spreadsheet::ParseExcel - Get information from an Excel file. Version: 0.3.2 Date: 2005-12-15 Short Description: Spreadsheet::ParseExcel allows you to get information out of a simple Excel file This Package is an -…

---

## [\[ANN\] Ruby-GetText-Package-2.0.0](https://www.ruby-forum.com/t/ann-ruby-gettext-package-2-0-0/163582)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 4\
**Last updated:** [March 27, 2009, 10:39am UTC](https://www.ruby-forum.com/t/ann-ruby-gettext-package-2-0-0/163582 "2009-03-27T10:39:07Z")

</div>

Hi, Ruby-GetText-Package-2.0.0 is now available. Ruby-GetText-Package now separate 2 base libraries and 3 libraries which support Ruby on Rails 2.3.2. For all libraries/applications: locale - Management Locale IDs g…

---

## [Using PUTS to send message to console](https://www.ruby-forum.com/t/using-puts-to-send-message-to-console/47913)

<div class="topic-metadata">

**Author:** [@pixelmech](https://www.ruby-forum.com/u/pixelmech)\
**Replies:** 4\
**Last updated:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/using-puts-to-send-message-to-console/47913 "2005-11-12T12:49:19Z")

</div>

Hi, I’m having trouble with my card not working correctly (not adding to quantity instead of adding full new line item) so I figured I would output some messages to the console to see what clause I am in, so I tried…

---

## [Error nginx: dlopen() "/usr/local/nginx/modules/ds\_http\_module.so" failed (/usr/local/nginx/modules/](https://www.ruby-forum.com/t/error-nginx-dlopen-usr-local-nginx-modules-ds-http-module-so-failed-usr-local-nginx-modules/244967)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 20, 2016, 11:03am UTC](https://www.ruby-forum.com/t/error-nginx-dlopen-usr-local-nginx-modules-ds-http-module-so-failed-usr-local-nginx-modules/244967 "2016-07-20T11:03:57Z")

</div>

Hi All, I am getting error below error for own written module ds\_http\_module. nginx: \[emerg\] dlopen() “/usr/local/nginx/modules/ds\_http\_module.so” failed (/usr/local/nginx/modules/ds\_http\_module.so: undefined symbol: …

---

## [NRZI decoding](https://www.ruby-forum.com/t/nrzi-decoding/148103)

<div class="topic-metadata">

**Author:** [@irene159](https://www.ruby-forum.com/u/irene159)\
**Replies:** 0\
**Last updated:** [September 9, 2008, 11:58am UTC](https://www.ruby-forum.com/t/nrzi-decoding/148103 "2008-09-09T11:58:41Z")

</div>

Hi, I am trying to get a better understanding of different receiver blocks. In the ais-tools-gnuradio-1.0.2 (Automatic Identification System (AIS) using GNU Radio - Fun With Electronics) source code (aisrcv-usrp.py),…

---

## ["make" error while making detector (howto\_detect\_ff) block](https://www.ruby-forum.com/t/make-error-while-making-detector-howto-detect-ff-block/241321)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [April 1, 2015, 10:15am UTC](https://www.ruby-forum.com/t/make-error-while-making-detector-howto-detect-ff-block/241321 "2015-04-01T10:15:55Z")

</div>

hey, I am working to make a detector block in gnuradio 3.7.1 using gr-how “out-of-tree module”. I am stuck with an error during make command abhishek@abhishek-Inspiron-N5110:~/gr-howto/build$ make Scanning dependenci…

---

## [Italians@Railsberry?](https://www.ruby-forum.com/t/italians-railsberry/229930)

<div class="topic-metadata">

**Author:** [@paolo\_p](https://www.ruby-forum.com/u/paolo_p)\
**Replies:** 5\
**Last updated:** [March 22, 2013, 11:55am UTC](https://www.ruby-forum.com/t/italians-railsberry/229930 "2013-03-22T11:55:30Z")

</div>

Ciao a tutti, volevo chiedervi… quanti di voi saranno a Railsberry il prossimo Aprile? Io sar l a parlare, hanno accettato un talk su come usare Ruby per un pentest web, una nuova versione del talk dell’anno scorso al …

---

## [Convert this Php code to ruby on rails](https://www.ruby-forum.com/t/convert-this-php-code-to-ruby-on-rails/206104)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [April 22, 2011, 11:29pm UTC](https://www.ruby-forum.com/t/convert-this-php-code-to-ruby-on-rails/206104 "2011-04-22T23:29:43Z")

</div>

$\_SESSION\[“userpwd”\] = base64\_encode(mcrypt\_encrypt(MCRYPT\_RIJNDAEL\_256, md5($cryptokey), $\_POST\[‘password’\], MCRYPT\_MODE\_CBC, md5(md5($cryptokey))));; Thanks.

---

## [$.ajax() jquery et CREATE](https://www.ruby-forum.com/t/ajax-jquery-et-create/187393)

<div class="topic-metadata">

**Author:** [@thomthom](https://www.ruby-forum.com/u/thomthom)\
**Replies:** 5\
**Last updated:** [April 27, 2010, 2:21pm UTC](https://www.ruby-forum.com/t/ajax-jquery-et-create/187393 "2010-04-27T14:21:17Z")

</div>

Bonjour, Je veux ajouter des favoris en ajax. Voici mon code : ///////// code javascript /////////// $(".add\_favoris").live(‘click’,function(){ var id; id = $(this).attr(“rel”); $.ajax({ type: “POST”, url: ‘\<%= f…

---

## [Append (\<\<) to Array attributes of DRb objects?](https://www.ruby-forum.com/t/append-to-array-attributes-of-drb-objects/110711)

<div class="topic-metadata">

**Author:** [@Jay\_McGavren](https://www.ruby-forum.com/u/Jay_McGavren)\
**Replies:** 5\
**Last updated:** [July 31, 2007, 1:56am UTC](https://www.ruby-forum.com/t/append-to-array-attributes-of-drb-objects/110711 "2007-07-31T01:56:14Z")

</div>

When working locally with an object whose attribute is meant to store an array, I have no problem making calls like: object.items \<\< new\_item If I try to do the same thing with a DRb object, though, appending has no …

---

## [Calculate methods on attr\_accessor objects](https://www.ruby-forum.com/t/calculate-methods-on-attr-accessor-objects/100191)

<div class="topic-metadata">

**Author:** [@zerohalo](https://www.ruby-forum.com/u/zerohalo)\
**Replies:** 5\
**Last updated:** [July 27, 2006, 10:10pm UTC](https://www.ruby-forum.com/t/calculate-methods-on-attr-accessor-objects/100191 "2006-07-27T22:10:56Z")

</div>

Is it possible to use the calculate methods (sum, etc.) on attr\_accessor attributes? Ie: Class Item \< ActiveRecord::Base attr\_accessor :total\_cost def total\_cost @total\_cost = self.cost\_unit \* self.amount end cal…

---

## [Rubygems doesn't find the repository](https://www.ruby-forum.com/t/rubygems-doesnt-find-the-repository/188698)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 6\
**Last updated:** [May 16, 2010, 11:30pm UTC](https://www.ruby-forum.com/t/rubygems-doesnt-find-the-repository/188698 "2010-05-16T23:30:42Z")

</div>

Hi everyone, I can’t install any gem through jruby’s rubygems. See the problem below: root@K2:/usr/local/jruby/bin# ./gem install rails JRuby limited openssl loaded. gem install jruby-openssl for full support. http:…

---

## [Help Deploying with Capistrano](https://www.ruby-forum.com/t/help-deploying-with-capistrano/143149)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 6\
**Last updated:** [July 16, 2008, 4:23am UTC](https://www.ruby-forum.com/t/help-deploying-with-capistrano/143149 "2008-07-16T04:23:59Z")

</div>

I’m attempting to deploy an application using Capistrano. I’ve successfully “capified” and have edited the deploy.rb file. However, when I run either “rake remote:setup” or “rake remote:exec ACTION = setup” I get an…

---

## [Rails 2.0/Autotest "Color is not a class"](https://www.ruby-forum.com/t/rails-2-0-autotest-color-is-not-a-class/130043)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 6\
**Last updated:** [February 25, 2008, 12:01am UTC](https://www.ruby-forum.com/t/rails-2-0-autotest-color-is-not-a-class/130043 "2008-02-25T00:01:25Z")

</div>

I’ve made a model called Color to manage custom styles for my application. It works find when I’m running it locally in Mongrel, and I haven’t tried to deploy it yet. I use ZenTest and Autotest, and when I run autote…

---

## [Counting lines of code in a ruby code file ignoring method code lines in the process](https://www.ruby-forum.com/t/counting-lines-of-code-in-a-ruby-code-file-ignoring-method-code-lines-in-the-process/209984)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [July 28, 2011, 12:25pm UTC](https://www.ruby-forum.com/t/counting-lines-of-code-in-a-ruby-code-file-ignoring-method-code-lines-in-the-process/209984 "2011-07-28T12:25:11Z")

</div>

Hello, I am re-posting this in case it did not make it when I posted it earlier: Hello, I am writing a Ruby program that reads a ruby code file and counts the number of lines of code that are in the file. I do not w…

---

## [Connecting to MS SQL server from OSX](https://www.ruby-forum.com/t/connecting-to-ms-sql-server-from-osx/143804)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [November 19, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/connecting-to-ms-sql-server-from-osx/143804 "2008-11-19T19:35:09Z")

</div>

This has been a long painful day and I am hoping someone can help. I am trying to get my Rails application running on Mac/Leopard to connect to a Microsoft SQL server. I have followed the instructions at http://wik…

---

## [4.1 progress](https://www.ruby-forum.com/t/4-1-progress/65275)

<div class="topic-metadata">

**Author:** [@slembcke](https://www.ruby-forum.com/u/slembcke)\
**Replies:** 7\
**Last updated:** [August 18, 2006, 8:24pm UTC](https://www.ruby-forum.com/t/4-1-progress/65275 "2006-08-18T20:24:10Z")

</div>

$ ls -l components/plugins/textfilters ls: components/plugins/textfilters: No such file or directory $ ls -l vendor/plugins/ drwxr-xr-x 4 slaird staff 136 Aug 12 23:26 expiring\_action\_cache drwxr-xr-x 9 slair…

---

## [Range#size](https://www.ruby-forum.com/t/range-size/93898)

<div class="topic-metadata">

**Author:** [@Meinrad\_R](https://www.ruby-forum.com/u/Meinrad_R)\
**Replies:** 7\
**Last updated:** [April 13, 2006, 5:31pm UTC](https://www.ruby-forum.com/t/range-size/93898 "2006-04-13T17:31:45Z")

</div>

dear list, does anyone object to adding the method :size to class Range? class Range def size max-min+1 end end i think it’s useful. maybe others too. i’d like to see it added to the core. here is the test for R…

---

## [Ruby edit sudo file](https://www.ruby-forum.com/t/ruby-edit-sudo-file/238199)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [December 25, 2013, 2:56am UTC](https://www.ruby-forum.com/t/ruby-edit-sudo-file/238199 "2013-12-25T02:56:35Z")

</div>

Hello friends I am trying to edit apache2 https.config file which require sudo permission through my ruby scripting. File.open(local\_filename, ‘a’) { |f| f.write(doc) } I can open and edit normal file which doesn’t …

---

## [Exception - not sure how to fix](https://www.ruby-forum.com/t/exception-not-sure-how-to-fix/206966)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [May 16, 2011, 10:57am UTC](https://www.ruby-forum.com/t/exception-not-sure-how-to-fix/206966 "2011-05-16T10:57:54Z")

</div>

I am running ruby 1.8.7 and rails 3.0.7 on a MacPro. When I run a command - something as simple as ‘gem list --local’ I get a stack trace in the terminal. The stack trace mentions deprecation and that something will b…

---

## [Installing IronRuby using RVM on Linux](https://www.ruby-forum.com/t/installing-ironruby-using-rvm-on-linux/188306)

<div class="topic-metadata">

**Author:** [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Replies:** 3\
**Last updated:** [May 23, 2010, 11:33pm UTC](https://www.ruby-forum.com/t/installing-ironruby-using-rvm-on-linux/188306 "2010-05-23T23:33:43Z")

</div>

Has anyone successfully installed IronRuby using RVM on Linux? It seems that IronRubyh itself is installed, but I get an error during some post-install bit: Error running 'PATH=/home/will/.rvm/rubies/ironruby-1.0/b…

---

## [Accessing Flash/Session in Radiant Tags?](https://www.ruby-forum.com/t/accessing-flash-session-in-radiant-tags/128744)

<div class="topic-metadata">

**Author:** [@J\_Aaron\_F](https://www.ruby-forum.com/u/J_Aaron_F)\
**Replies:** 3\
**Last updated:** [February 11, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/accessing-flash-session-in-radiant-tags/128744 "2008-02-11T14:45:53Z")

</div>

The scenerio is this: The Comments extension has a controller that handles the comment form and then redirects the request back to the originating Page (with the comment now saved). The form requires an email address…

---

## [How to include classes in extensions?](https://www.ruby-forum.com/t/how-to-include-classes-in-extensions/122418)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [December 7, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/how-to-include-classes-in-extensions/122418 "2007-12-07T20:23:21Z")

</div>

Hi, I would like to access this snippet of code from within my extension tags: class Numeric def ordinal cardinal = self.to\_i.abs if (10…20).include?(cardinal) then cardinal.to\_s \<\< ‘th’ else cardinal.to\_s \<\< %w…

---

## [How to add mime module to sent email ruby](https://www.ruby-forum.com/t/how-to-add-mime-module-to-sent-email-ruby/223489)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [October 7, 2012, 11:27pm UTC](https://www.ruby-forum.com/t/how-to-add-mime-module-to-sent-email-ruby/223489 "2012-10-07T23:27:58Z")

</div>

Hi I am looking in google for long time about how to sent email with inline image. and got this site http://rubydoc.info/gems/mime/frames i have installed gem install mime its installed but dont understand how to i…

---

## [Marshal#load vs Marshal#restore](https://www.ruby-forum.com/t/marshal-load-vs-marshal-restore/233778)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [January 11, 2015, 6:09pm UTC](https://www.ruby-forum.com/t/marshal-load-vs-marshal-restore/233778 "2015-01-11T18:09:17Z")

</div>

Hello ruby hackers! Can you explain, what is difference between Marshal#load and Marshal#restore ? On ruby doc I see the same description for above. Is reload exists as alias? If so, why there is a copy past desc f…

---

## [Gzip\_proxied question](https://www.ruby-forum.com/t/gzip-proxied-question/184594)

<div class="topic-metadata">

**Author:** [@bryndole](https://www.ruby-forum.com/u/bryndole)\
**Replies:** 2\
**Last updated:** [March 8, 2010, 8:10pm UTC](https://www.ruby-forum.com/t/gzip-proxied-question/184594 "2010-03-08T20:10:33Z")

</div>

I’m new to nginx. After setting up a reverse proxy and reading the documentation I am still left baffled over what the gzip\_proxied option does. http://wiki.nginx.org/NginxHttpGzipModule#gzip\_proxied gzip\_proxied sy…

---

## [An error occurred while sending mail (530 5.7.0 Must issue a STARTTLS command first. 15sm1058080bwz](https://www.ruby-forum.com/t/an-error-occurred-while-sending-mail-530-5-7-0-must-issue-a-starttls-command-first-15sm1058080bwz/179361)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 2\
**Last updated:** [November 23, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/an-error-occurred-while-sending-mail-530-5-7-0-must-issue-a-starttls-command-first-15sm1058080bwz/179361 "2009-11-23T16:42:15Z")

</div>

I get an error after configured everything as in this tutorial: My email.yml: Outgoing email settings meglio: delivery\_method: :smtp smtp\_settings: tls: true address: “smtp.gmail.com” port: ‘587’ domain: “smtp.…

---

## [How to catch AJAX calls on session-timeout?](https://www.ruby-forum.com/t/how-to-catch-ajax-calls-on-session-timeout/162149)

<div class="topic-metadata">

**Author:** [@mad](https://www.ruby-forum.com/u/mad)\
**Replies:** 2\
**Last updated:** [March 6, 2009, 1:01pm UTC](https://www.ruby-forum.com/t/how-to-catch-ajax-calls-on-session-timeout/162149 "2009-03-06T13:01:11Z")

</div>

hallo everybody, my problem is the following: on one of our rails-apps we implemented session-expiry, so that the user gets redirected to our login-page whenever his session has timed- out. this is working fine for n…

---

## [REST versus RPC in Rails](https://www.ruby-forum.com/t/rest-versus-rpc-in-rails/105338)

<div class="topic-metadata">

**Author:** [@Lza](https://www.ruby-forum.com/u/Lza)\
**Replies:** 2\
**Last updated:** [May 30, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/rest-versus-rpc-in-rails/105338 "2007-05-30T15:57:06Z")

</div>

I have made a similar post to this one before, however I decided to repost it as a more general purpose question to elicit the views of the Rails community. I have been trying to design an application in Ruby on Rails…

---

## [Problem with proxy cache misses](https://www.ruby-forum.com/t/problem-with-proxy-cache-misses/244169)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [February 29, 2016, 10:49pm UTC](https://www.ruby-forum.com/t/problem-with-proxy-cache-misses/244169 "2016-02-29T22:49:53Z")

</div>

Hello! I’m testing out a new configuration and there are two issues with the proxy cacheing feature I’m getting stuck on. Everything is a cache miss, and I’m not sure why: My cache config (anonymized): … proxy\_cach…

---

## [\[ANN\] os gem: initial release: easier platform management](https://www.ruby-forum.com/t/ann-os-gem-initial-release-easier-platform-management/181626)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [January 15, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/ann-os-gem-initial-release-easier-platform-management/181626 "2010-01-15T17:19:22Z")

</div>

Initial release of the OS gem. The OS gem allows for some easy telling if you’re on windows or not. require ‘os’ OS.windows? =\> true OS.bits =\> 32 OS.java? =\> true OS.ruby\_exe =\> “c:\\ruby18\\bin\\ru…

---

## [Randomly generated words from a set of letters](https://www.ruby-forum.com/t/randomly-generated-words-from-a-set-of-letters/177585)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [October 21, 2009, 11:14am UTC](https://www.ruby-forum.com/t/randomly-generated-words-from-a-set-of-letters/177585 "2009-10-21T11:14:04Z")

</div>

Hi, I have an interesting problem to solve and thought I’d ask for some input here. We’re developing an application and one part of it is building a random combination for this lock… http://wordlock.com/\_pdf/Wordloc…

---

## [Urgent: activerecord-jdbc-0.9.1 doesn't "see" tables or views in another schema and MRI doesn't hav](https://www.ruby-forum.com/t/urgent-activerecord-jdbc-0-9-1-doesnt-see-tables-or-views-in-another-schema-and-mri-doesnt-hav/163408)

<div class="topic-metadata">

**Author:** [@Renato\_Santos](https://www.ruby-forum.com/u/Renato_Santos)\
**Replies:** 4\
**Last updated:** [March 20, 2009, 4:50pm UTC](https://www.ruby-forum.com/t/urgent-activerecord-jdbc-0-9-1-doesnt-see-tables-or-views-in-another-schema-and-mri-doesnt-hav/163408 "2009-03-20T16:50:50Z")

</div>

Hi all. I have a very peculiar problem that I’m not remotely capable of solving (or so it seems…): my application uses Oracle 10g database and, for safety and manageability reasons, has to use an user that is not th…

---

## [Ruby vs. RubyOnRails compatibility matrix?](https://www.ruby-forum.com/t/ruby-vs-rubyonrails-compatibility-matrix/156061)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 4\
**Last updated:** [December 20, 2008, 12:34am UTC](https://www.ruby-forum.com/t/ruby-vs-rubyonrails-compatibility-matrix/156061 "2008-12-20T00:34:51Z")

</div>

Hello, I’m looking for some compatibility matrix between specific versions of Ruby (like 1.8.5, 1.8.6…) and specific versions of Rails (like 1.1.6, 1.2.2 etc). I’m in a position where I’ll have to upgrade Ruby (to 1.…

---

## [Ping.pingecho](https://www.ruby-forum.com/t/ping-pingecho/147232)

<div class="topic-metadata">

**Author:** [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Replies:** 4\
**Last updated:** [August 30, 2008, 1:48pm UTC](https://www.ruby-forum.com/t/ping-pingecho/147232 "2008-08-30T13:48:29Z")

</div>

Cisco.com don’t normally allow pings so tracroutes and pings won’t get echo requests. irb(main):003:0\> Ping.pingecho(‘cisco.com’, 10, 80) =\> true How come this works and ping does not? From irb I see that Ruby’s pin…

---

## [Gems in userdir - Could not find RubyGem](https://www.ruby-forum.com/t/gems-in-userdir-could-not-find-rubygem/93412)

<div class="topic-metadata">

**Author:** [@subroutine](https://www.ruby-forum.com/u/subroutine)\
**Replies:** 4\
**Last updated:** [April 2, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/gems-in-userdir-could-not-find-rubygem/93412 "2006-04-02T19:17:27Z")

</div>

Hi, I am new to ruby and gem and I have installed a few gems (rails and deps) in userdir. $ HOME=$HOME/html gem list rails \*\*\* LOCAL GEMS \*\*\* rails (1.1.0) Web-application framework with template engine, control-fl…

---

## [Activerecord has\_many custom method](https://www.ruby-forum.com/t/activerecord-has-many-custom-method/244641)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [May 18, 2016, 5:26pm UTC](https://www.ruby-forum.com/t/activerecord-has-many-custom-method/244641 "2016-05-18T17:26:57Z")

</div>

Hi, I’m trying to create this method: has\_many :cars do Car.where(color: 'red').all end I’m using a class without Activerecord and outside rails: module API class User \< Base include ActiveRecord::Associati…

---

## [Sinatra link routing](https://www.ruby-forum.com/t/sinatra-link-routing/243894)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [January 23, 2016, 5:22am UTC](https://www.ruby-forum.com/t/sinatra-link-routing/243894 "2016-01-23T05:22:38Z")

</div>

I lost what I had before and am trying to reconstruct it. If you can see my attached file then what I’m trying to do is get any listed markdown files that show on the rdoc and md pages to render by clicking the link i…

---

## [Cygwin compile of 3.7.8](https://www.ruby-forum.com/t/cygwin-compile-of-3-7-8/243123)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 28, 2015, 6:38am UTC](https://www.ruby-forum.com/t/cygwin-compile-of-3-7-8/243123 "2015-08-28T06:38:11Z")

</div>

Has anyone had any luck compiling the latest 3.7.8 on cygwin? I’m running into the following: \[ 14%\] Built target pygen\_python\_volk\_modtool\_95e3e \[ 14%\] Built target pmt\_generated \[ 15%\] Built target gnuradio-pmt …

---

## [Waiting for multiple child processes to finish](https://www.ruby-forum.com/t/waiting-for-multiple-child-processes-to-finish/75790)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 1\
**Last updated:** [November 13, 2006, 3:30pm UTC](https://www.ruby-forum.com/t/waiting-for-multiple-child-processes-to-finish/75790 "2006-11-13T15:30:56Z")

</div>

Why does this not work (it waits for each process to finish before launching the next): $stdout.sync = true 10.times {|i| pid = Process.fork { puts “launching process #{i}” 3.times { sleep 0.5 puts “hello from pro…

---

## [File '/usr/sbin/nginx' seems to be deleted](https://www.ruby-forum.com/t/file-usr-sbin-nginx-seems-to-be-deleted/232945)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [November 16, 2014, 1:07pm UTC](https://www.ruby-forum.com/t/file-usr-sbin-nginx-seems-to-be-deleted/232945 "2014-11-16T13:07:58Z")

</div>

I am seeing a lot of these entries in my logs Nov 6 04:29:13 sv1 kernel: nginx\[62598\]: segfault at 0 ip 0000000000438f38 sp 0 0007fffa5a934c0 error 4 in nginx (deleted)\[400000+e2000\] Nov 6 04:29:13 sv1 ab…

---

## [Undefined method \`^' for "d":String](https://www.ruby-forum.com/t/undefined-method-for-d-string/175398)

<div class="topic-metadata">

**Author:** [@LFLFLF](https://www.ruby-forum.com/u/LFLFLF)\
**Replies:** 5\
**Last updated:** [October 5, 2009, 11:41pm UTC](https://www.ruby-forum.com/t/undefined-method-for-d-string/175398 "2009-10-05T23:41:30Z")

</div>

Hi guys. I’m a freshman on Rails (and Ruby) so I’m sorry if my question is pretty basic, and possible has a vary basic answer. I tried to Google this problem, but a couple of hour after and no solution found, I decid…

---

## [Mobile version](https://www.ruby-forum.com/t/mobile-version/143647)

<div class="topic-metadata">

**Author:** [@matte\_S](https://www.ruby-forum.com/u/matte_S)\
**Replies:** 5\
**Last updated:** [July 21, 2008, 4:46pm UTC](https://www.ruby-forum.com/t/mobile-version/143647 "2008-07-21T16:46:58Z")

</div>

Hi, I am building 3 layouts of the same site: 1 for the web, 1 for the iphone, 1 for the mobile (xhtml mp). I know if the request of my site is from iphone with this string: request.env\[“HTTP\_USER\_AGENT”\] && request.…

---

## [Ignoring column on save](https://www.ruby-forum.com/t/ignoring-column-on-save/114944)

<div class="topic-metadata">

**Author:** [@andre123](https://www.ruby-forum.com/u/andre123)\
**Replies:** 5\
**Last updated:** [September 27, 2007, 6:14pm UTC](https://www.ruby-forum.com/t/ignoring-column-on-save/114944 "2007-09-27T18:14:20Z")

</div>

How can I tell Rails to completely ignore one specific column when INSERTing using the save method? I want the database’s default value to be used, but currently Rails is setting it to NULL.

---

## [Installing Tk for Ruby on OS X](https://www.ruby-forum.com/t/installing-tk-for-ruby-on-os-x/70291)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [February 19, 2006, 2:49pm UTC](https://www.ruby-forum.com/t/installing-tk-for-ruby-on-os-x/70291 "2006-02-19T14:49:50Z")

</div>

Hi, I tried to run the one line script tk.rb require ‘tk’ and saw the following error $ ruby tk.rb /usr/local/lib/ruby/1.8/tk.rb:7:in require': No such file to load -- tcltklib (LoadError) from /usr/local/lib/ruby/1…

---

## [Array subtraction](https://www.ruby-forum.com/t/array-subtraction/253351)

<div class="topic-metadata">

**Author:** [@Kdobson93](https://www.ruby-forum.com/u/Kdobson93)\
**Replies:** 3\
**Last updated:** [November 19, 2019, 3:38am UTC](https://www.ruby-forum.com/t/array-subtraction/253351 "2019-11-19T03:38:09Z")

</div>

Hi everyone, been scratching my head on this one for ages! test1=\[1,6,4,11,13\] test2=\[13,6\] test3=test1-test2 I want test3 to remove the elements in test2 from test1, resulting in \[1,4,11\] but instead I am getting \[4…

---

## [Ruby vs jruby](https://www.ruby-forum.com/t/ruby-vs-jruby/234355)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [March 23, 2015, 1:43pm UTC](https://www.ruby-forum.com/t/ruby-vs-jruby/234355 "2015-03-23T13:43:15Z")

</div>

Hi friends, what is advantages in JRuby? Thanks K2B Solutions

---

## [Rails 3 routes with same name, different param name based on constraint](https://www.ruby-forum.com/t/rails-3-routes-with-same-name-different-param-name-based-on-constraint/212549)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [October 6, 2011, 6:42pm UTC](https://www.ruby-forum.com/t/rails-3-routes-with-same-name-different-param-name-based-on-constraint/212549 "2011-10-06T18:42:35Z")

</div>

Hello there fellow RoR enthusiasts, I have been wrestling with rails 3 routes for hours trying to accomplish the following: I want to use the same url helper (photo\_url) in my views but have a different route match m…

---

## [ActiveRecord changes Logger formatting](https://www.ruby-forum.com/t/activerecord-changes-logger-formatting/168696)

<div class="topic-metadata">

**Author:** [@robredford](https://www.ruby-forum.com/u/robredford)\
**Replies:** 3\
**Last updated:** [June 1, 2009, 4:43am UTC](https://www.ruby-forum.com/t/activerecord-changes-logger-formatting/168696 "2009-06-01T04:43:44Z")

</div>

Why does my Logger formatting change after I “require ‘active\_record’”? irb(main):001:0\> require ‘logger’ =\> true irb(main):002:0\> $logger = Logger::new STDOUT =\> #\<Logger:0xb7dd0a38 @formatter=nil, @default\_format…

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

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