# Top

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

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

---

## [Nil in ActiveRecord and SQL](https://www.ruby-forum.com/t/nil-in-activerecord-and-sql/83342)

<div class="topic-metadata">

**Author:** [@alabama](https://www.ruby-forum.com/u/alabama)\
**Replies:** 4\
**Last updated:** [January 25, 2007, 2:06pm UTC](https://www.ruby-forum.com/t/nil-in-activerecord-and-sql/83342 "2007-01-25T14:06:51Z")

</div>

Hi all ! How I can do like this, because it dosen’t work ? SomethingClass.find(:all, :conditions =\> \[“something\_attribute = ?”,nil\])

---

## [External html page include](https://www.ruby-forum.com/t/external-html-page-include/172318)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 8\
**Last updated:** [July 20, 2009, 5:26am UTC](https://www.ruby-forum.com/t/external-html-page-include/172318 "2009-07-20T05:26:37Z")

</div>

I would like to include an external html page into a .rhtml document. I know you can do it with iframes but that is not what I want. Does ruby have an include tag for that?

---

## [Oracle compra a sun \[ot\]](https://www.ruby-forum.com/t/oracle-compra-a-sun-ot/166899)

<div class="topic-metadata">

**Author:** [@Mauricio\_D](https://www.ruby-forum.com/u/Mauricio_D)\
**Replies:** 8\
**Last updated:** [April 30, 2009, 10:45pm UTC](https://www.ruby-forum.com/t/oracle-compra-a-sun-ot/166899 "2009-04-30T22:45:04Z")

</div>

esta noticia me acaba de llegar, mi pregunta es, que futuro tiene mysql.???

---

## [Quickbooks integration](https://www.ruby-forum.com/t/quickbooks-integration/78428)

<div class="topic-metadata">

**Author:** [@Zack\_C](https://www.ruby-forum.com/u/Zack_C)\
**Replies:** 8\
**Last updated:** [December 8, 2006, 11:30pm UTC](https://www.ruby-forum.com/t/quickbooks-integration/78428 "2006-12-08T23:30:24Z")

</div>

Does anyone out there have experience integrating with QuickBooks using qbXML, the QuickBooks Web Connector (QBWC), and ActionWebService? I’m going to write an integration soon and was looking for any war stories, hi…

---

## [Header/Payload Demux Bug Fix](https://www.ruby-forum.com/t/header-payload-demux-bug-fix/242163)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [June 1, 2015, 9:04pm UTC](https://www.ruby-forum.com/t/header-payload-demux-bug-fix/242163 "2015-06-01T21:04:24Z")

</div>

Martin et. al., The fix that makes this block work for us in any scenario, is to add a break statement at the end of every case statement (don’t allow the fall through’s to happen). This leads me to believe the sourc…

---

## [Net::HTTP end of file reached](https://www.ruby-forum.com/t/net-http-end-of-file-reached/206324)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 28, 2011, 8:58am UTC](https://www.ruby-forum.com/t/net-http-end-of-file-reached/206324 "2011-04-28T08:58:32Z")

</div>

Doing a check on a remote file url, using Net::HTTP, I get an ‘end of file reached’ here is the Ruby code (1.9.2) \[env ; Rails3 , webrick \] url = URI.parse(URI.escape(test\_upload.videoUrl)) req = Net::HTTP::Head.n…

---

## [Zlib::GzipWriter - same code - different OS - different result](https://www.ruby-forum.com/t/zlib-gzipwriter-same-code-different-os-different-result/135559)

<div class="topic-metadata">

**Author:** [@denmat](https://www.ruby-forum.com/u/denmat)\
**Replies:** 2\
**Last updated:** [April 23, 2008, 8:52am UTC](https://www.ruby-forum.com/t/zlib-gzipwriter-same-code-different-os-different-result/135559 "2008-04-23T08:52:06Z")

</div>

Hi List, I have ruby-1.8.6.114-1.fc7 and archive-tar-minitar (0.5.2). If I run this script on windowsXP (ruby1.8.6.26 archive-tar-minitar (0.5.2)) it completes without a problem def tar\_and\_gzip(destination, paths) …

---

## [Sending sms via rails](https://www.ruby-forum.com/t/sending-sms-via-rails/204670)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [March 18, 2011, 2:56pm UTC](https://www.ruby-forum.com/t/sending-sms-via-rails/204670 "2011-03-18T14:56:08Z")

</div>

Hi all, Im trying to send sms via rails but it is not reached my mobile because in sms\_fu.yml file there is no carrier is set for India. How can i set the carrier for send sms to India. Please anyone help me. I am us…

---

## [Problem with mocking a simple has\_many relationship](https://www.ruby-forum.com/t/problem-with-mocking-a-simple-has-many-relationship/132305)

<div class="topic-metadata">

**Author:** [@demisone](https://www.ruby-forum.com/u/demisone)\
**Replies:** 6\
**Last updated:** [March 19, 2008, 1:04am UTC](https://www.ruby-forum.com/t/problem-with-mocking-a-simple-has-many-relationship/132305 "2008-03-19T01:04:10Z")

</div>

Hi there all. Sorry if the question sounds silly but i’m rather new at the ‘mocking’ stuff… So here is my problem (code helps more than talking): the model: class Item \< ActiveRecord::Base … has\_many :images, :depe…

---

## [Decode password](https://www.ruby-forum.com/t/decode-password/93087)

<div class="topic-metadata">

**Author:** [@mitesh](https://www.ruby-forum.com/u/mitesh)\
**Replies:** 6\
**Last updated:** [April 27, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/decode-password/93087 "2007-04-27T22:32:20Z")

</div>

Hi All, i had encoded the password using, Digest::SHA1.hexdigest(“change-me–#{pass}–”) i got the password in the encoded form and i want to decode this string. How can i do this?

---

## [IE CSS, where to put the .htc file?](https://www.ruby-forum.com/t/ie-css-where-to-put-the-htc-file/88187)

<div class="topic-metadata">

**Author:** [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Replies:** 6\
**Last updated:** [March 8, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/ie-css-where-to-put-the-htc-file/88187 "2007-03-08T21:37:50Z")

</div>

HI, I try to create a very simple menu with CSS in IE (and I always use firefox) but I have to make the web application compatible with IE :frowning: … I realize the :hover is not working on and in IE, I have to …

---

## [RuntimeError in Recipe#edit](https://www.ruby-forum.com/t/runtimeerror-in-recipe-edit/59838)

<div class="topic-metadata">

**Author:** [@Ling](https://www.ruby-forum.com/u/Ling)\
**Replies:** 6\
**Last updated:** [May 8, 2006, 7:16am UTC](https://www.ruby-forum.com/t/runtimeerror-in-recipe-edit/59838 "2006-05-08T07:16:37Z")

</div>

I have tried to learn ruby on rails from scratch by going into a tutorial at the following website. http://instantrails.rubyforge.org/tutorial/index.html I followed the suggestions and encountered 3 problems so far. …

---

## [Removing commas](https://www.ruby-forum.com/t/removing-commas/252997)

<div class="topic-metadata">

**Author:** [@sunilkumarnagoore](https://www.ruby-forum.com/u/sunilkumarnagoore)\
**Replies:** 3\
**Last updated:** [September 11, 2019, 12:01pm UTC](https://www.ruby-forum.com/t/removing-commas/252997 "2019-09-11T12:01:05Z")

</div>

arr = \[\[10,20,30\],\[40,50,60\],\[70,80,90\]\] i need to remove comma’s expected output should be: \[\[10,20,30\]\[40,50,60\]\[70,80,90\]\]

---

## [Rest-client posting multipart to rails 2](https://www.ruby-forum.com/t/rest-client-posting-multipart-to-rails-2/154365)

<div class="topic-metadata">

**Author:** [@e\_deleflie](https://www.ruby-forum.com/u/e_deleflie)\
**Replies:** 3\
**Last updated:** [November 28, 2008, 1:30pm UTC](https://www.ruby-forum.com/t/rest-client-posting-multipart-to-rails-2/154365 "2008-11-28T13:30:17Z")

</div>

Hi all, I’m using rest-client (in a Shoooes app) to post a multi-part form to my rails server. I’ve been struck down by a gotcha (which may not be a gotcha for non-newbies). What I want to do is post an image file wi…

---

## [Public/500.html](https://www.ruby-forum.com/t/public-500-html/84136)

<div class="topic-metadata">

**Author:** [@Rivky\_P](https://www.ruby-forum.com/u/Rivky_P)\
**Replies:** 3\
**Last updated:** [February 1, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/public-500-html/84136 "2007-02-01T19:41:50Z")

</div>

I am working in ruby on rails with a postgresql database. trying to develop a package for importers while teaching myself the language. After changing a view, I tried to access the order listing not realizing I had ca…

---

## [Set printer on](https://www.ruby-forum.com/t/set-printer-on/95309)

<div class="topic-metadata">

**Author:** [@rails\_suheimi](https://www.ruby-forum.com/u/rails_suheimi)\
**Replies:** 5\
**Last updated:** [May 30, 2006, 3:32am UTC](https://www.ruby-forum.com/t/set-printer-on/95309 "2006-05-30T03:32:00Z")

</div>

hi all, I’m newbie on ror. My question is: how could I set the printer on. The logic is as follow: set printer on my print stmt to printer set printer off thx

---

## [Why is admin\_signed\_in? false even after logging in as admin?](https://www.ruby-forum.com/t/why-is-admin-signed-in-false-even-after-logging-in-as-admin/243625)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [December 11, 2015, 9:43pm UTC](https://www.ruby-forum.com/t/why-is-admin-signed-in-false-even-after-logging-in-as-admin/243625 "2015-12-11T21:43:19Z")

</div>

Back story: I’m developing a new Rails site for the local Ruby user group. I’m using Devise to provide authentication for separate user and admin classes. Current task: I’m working on the create/new function for th…

---

## [Deep Hash creation one liner](https://www.ruby-forum.com/t/deep-hash-creation-one-liner/236913)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 5\
**Last updated:** [October 11, 2013, 9:43am UTC](https://www.ruby-forum.com/t/deep-hash-creation-one-liner/236913 "2013-10-11T09:43:07Z")

</div>

I was trying to create a hash { mountain: { river: { tree: 23 } } }using the below : path = \[:mountain, :river, :tree,23\] hash = {} path.each\_cons(2).to\_a.reverse.inject(hash,:\[\]=) =\> ~\> -:3:in \`\[\]=’: wrong number of…

---

## [How do I add menu items from XRC source?](https://www.ruby-forum.com/t/how-do-i-add-menu-items-from-xrc-source/182359)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 5\
**Last updated:** [January 29, 2010, 11:20am UTC](https://www.ruby-forum.com/t/how-do-i-add-menu-items-from-xrc-source/182359 "2010-01-29T11:20:52Z")

</div>

I understand how to add normal menus and menu items by using append. However, when creating menus inside a designer and it’s output to source, I can’t figure out how to reference the menu from xrc to append items to. …

---

## [Why not auto import active\_rbac's lib$B!)(B](https://www.ruby-forum.com/t/why-not-auto-import-active-rbacs-lib-b-b/88271)

<div class="topic-metadata">

**Author:** [@martinx](https://www.ruby-forum.com/u/martinx)\
**Replies:** 5\
**Last updated:** [March 10, 2007, 4:00am UTC](https://www.ruby-forum.com/t/why-not-auto-import-active-rbacs-lib-b-b/88271 "2007-03-10T04:00:48Z")

</div>

I’ve installed the lasted engines and active\_rbac from svnï¼Œand configurated it as the following. 1:edit the routes.rb,and add map.connect ‘/active\_rbac/registration/confirm/:user/:token’, :controller =\> ‘active\_r…

---

## [Button\_to with image?](https://www.ruby-forum.com/t/button-to-with-image/87180)

<div class="topic-metadata">

**Author:** [@jimmyether](https://www.ruby-forum.com/u/jimmyether)\
**Replies:** 5\
**Last updated:** [March 26, 2006, 5:30pm UTC](https://www.ruby-forum.com/t/button-to-with-image/87180 "2006-03-26T17:30:52Z")

</div>

I’m trying to use button\_to and have it use an image in place of the submit button. I had figured it would work the same as link\_to like so: button\_to(image\_tag(“editicon”, :size =\> “16x16”, :border =\> 0), :action =\> …

---

## [BigDecimal's #power method behaves strangely](https://www.ruby-forum.com/t/bigdecimals-power-method-behaves-strangely/246090)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 7\
**Last updated:** [August 26, 2013, 12:51pm UTC](https://www.ruby-forum.com/t/bigdecimals-power-method-behaves-strangely/246090 "2013-08-26T12:51:36Z")

</div>

I’m experimenting with arbitrary precision numbers but I ran into a precision problem with #power method. The base: b = BigDecimal(“1.034482758620689655172413793103448275862068965517241379310344827586206896551724”) …

---

## [Maintaining non persisted data](https://www.ruby-forum.com/t/maintaining-non-persisted-data/177033)

<div class="topic-metadata">

**Author:** [@cristie](https://www.ruby-forum.com/u/cristie)\
**Replies:** 7\
**Last updated:** [October 10, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/maintaining-non-persisted-data/177033 "2009-10-10T19:19:25Z")

</div>

Hi all, I have the following file below which is a controller inteneded to maintain non persisted data. It has two routes defined by ‘gather’ and ‘show’. Gather displays a form and show, obviously, shows the non pe…

---

## [Using the blacklist in admin](https://www.ruby-forum.com/t/using-the-blacklist-in-admin/94632)

<div class="topic-metadata">

**Author:** [@Gary\_S](https://www.ruby-forum.com/u/Gary_S)\
**Replies:** 7\
**Last updated:** [May 10, 2006, 7:58am UTC](https://www.ruby-forum.com/t/using-the-blacklist-in-admin/94632 "2006-05-10T07:58:06Z")

</div>

(I really should put something like this on the wiki as well) How many actually use the Blacklist page in admin? I’d sort of left it alone because I knew it uses the black art of regex. But I’ve had a little look at…

---

## [Error : Redmine](https://www.ruby-forum.com/t/error-redmine/162288)

<div class="topic-metadata">

**Author:** [@gypsygoks](https://www.ruby-forum.com/u/gypsygoks)\
**Replies:** 4\
**Last updated:** [March 11, 2009, 9:28pm UTC](https://www.ruby-forum.com/t/error-redmine/162288 "2009-03-11T21:28:25Z")

</div>

Hello, Iam getting the following error whem adding new task in redmine – Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your redMine adm…

---

## [Net::SFTP hangs when downloading a file](https://www.ruby-forum.com/t/net-sftp-hangs-when-downloading-a-file/220329)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 7, 2012, 1:05am UTC](https://www.ruby-forum.com/t/net-sftp-hangs-when-downloading-a-file/220329 "2012-06-07T01:05:42Z")

</div>

I have some code which attempts to download some data from an sftp server and it hangs. Once it hangs it seems to lock up the entire process so the timeout is not working either. The code hangs at the session.downloa…

---

## [Compass : (Zlib::GzipFile::Error)](https://www.ruby-forum.com/t/compass-zlib-error/213739)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [November 10, 2011, 6:42pm UTC](https://www.ruby-forum.com/t/compass-zlib-error/213739 "2011-11-10T18:42:28Z")

</div>

unable to install compass OS Win7 Ruby 1.9.2 gem sources : http://rubygems.org/ gem update --system gem install compass throwing ERROR: While executing gem … (Zlib::GzipFile::Error) not in gzip format

---

## [Multiple models from one controller](https://www.ruby-forum.com/t/multiple-models-from-one-controller/92685)

<div class="topic-metadata">

**Author:** [@ikiini](https://www.ruby-forum.com/u/ikiini)\
**Replies:** 2\
**Last updated:** [April 23, 2007, 2:28am UTC](https://www.ruby-forum.com/t/multiple-models-from-one-controller/92685 "2007-04-23T02:28:09Z")

</div>

Hey all, I am new to Ruby on Rails and need some beyond basics help. I have a the agile web dev with rails 2nd ed. And i have looked at a few tutorials online. However none has covered real life webapps with multiple…

---

## [Best OS platform for rails development](https://www.ruby-forum.com/t/best-os-platform-for-rails-development/100256)

<div class="topic-metadata">

**Author:** [@jonathan\_o](https://www.ruby-forum.com/u/jonathan_o)\
**Replies:** 2\
**Last updated:** [July 28, 2006, 1:51am UTC](https://www.ruby-forum.com/t/best-os-platform-for-rails-development/100256 "2006-07-28T01:51:58Z")

</div>

I am on OS X right now and it definitely works well for rails, but I am considering buying a cheaper Dell and running a flavor of linux, ubuntu maybe. I’ve only heard bad things about running on Windows, but I am not …

---

## [DNS cache in nginx](https://www.ruby-forum.com/t/dns-cache-in-nginx/242580)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [July 6, 2015, 4:30pm UTC](https://www.ruby-forum.com/t/dns-cache-in-nginx/242580 "2015-07-06T16:30:34Z")

</div>

Hello , I have an A record which resolve to 2 CNAME’s , the DNS failover will make the switch if something go wrong . The problem is that after a change the nginx stick to the OLD IP unless I reload it … any way the…

---

## [Plugin active-rbac](https://www.ruby-forum.com/t/plugin-active-rbac/151919)

<div class="topic-metadata">

**Author:** [@avenasatira](https://www.ruby-forum.com/u/avenasatira)\
**Replies:** 8\
**Last updated:** [October 28, 2008, 9:45am UTC](https://www.ruby-forum.com/t/plugin-active-rbac/151919 "2008-10-28T09:45:35Z")

</div>

Hola necesito implementar el plugin de active-rbac y no se ni por donde emepezar, no se si tengan algun ejemplo o tutorial de como configurarlo y como utilizarlo, se los agradeceria muchisimo ! ! ! Saludos.

---

## [Pregunta recurrente: hosting?](https://www.ruby-forum.com/t/pregunta-recurrente-hosting/107637)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [July 10, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/pregunta-recurrente-hosting/107637 "2007-07-10T19:41:43Z")

</div>

Hola amigos. Soy conciente que la pregunta de dónde recomiendan hostear una aplicación Ruby/Rails, es recurrente. Pero también sé que las ofertas de hosting en esta plataforma cambian frecuentemente. Hoy en día estoy…

---

## [RSS::Parser](https://www.ruby-forum.com/t/rss-parser/106563)

<div class="topic-metadata">

**Author:** [@beusse](https://www.ruby-forum.com/u/beusse)\
**Replies:** 8\
**Last updated:** [June 25, 2007, 10:32am UTC](https://www.ruby-forum.com/t/rss-parser/106563 "2007-06-25T10:32:48Z")

</div>

Salut Ã tous. J’essai de crÃ©er un lecteur de flux rss, mais j’ai un problÃ¨me. voila une ligne de code que j’utilise: flux = RSS::Parser.parse(open(url).read, false) et voilÃ le message d’erreur: uninitialized co…

---

## [Post visit count](https://www.ruby-forum.com/t/post-visit-count/104724)

<div class="topic-metadata">

**Author:** [@raj](https://www.ruby-forum.com/u/raj)\
**Replies:** 8\
**Last updated:** [May 22, 2007, 12:50am UTC](https://www.ruby-forum.com/t/post-visit-count/104724 "2007-05-22T00:50:43Z")

</div>

I have blog and I want to count number of visits made on each post. I want to store the count in the database. How do i do that. I am new to rails. Thank you, Raj.

---

## [Strange behavior for cache manager](https://www.ruby-forum.com/t/strange-behavior-for-cache-manager/233863)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [May 15, 2015, 12:11pm UTC](https://www.ruby-forum.com/t/strange-behavior-for-cache-manager/233863 "2015-05-15T12:11:12Z")

</div>

Hi, we are current running nginx version 1.7.6, we use nginx primarily as a reverse proxy on linux. we have encountered a strange behavior for nginx cache manager, everything is fine after restart nginx, the cache ma…

---

## [Gute Ruby/Rails/Entwickler Magazine?](https://www.ruby-forum.com/t/gute-ruby-rails-entwickler-magazine/167944)

<div class="topic-metadata">

**Author:** [@Johannes\_Fahrenkrug](https://www.ruby-forum.com/u/Johannes_Fahrenkrug)\
**Replies:** 3\
**Last updated:** [May 14, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/gute-ruby-rails-entwickler-magazine/167944 "2009-05-14T18:15:50Z")

</div>

Hi, was haltet ihr vom RailsWay Magazin oder z.B. vom Rails Magazine (http://railsmagazine.com/)? Ich war bis jetzt immer treuer Abonent vom Dr. Dobb’s Journal, aber das gibt’s ja leider nicht mehr, deshalb schaue ic…

---

## [Requiring multiple files](https://www.ruby-forum.com/t/requiring-multiple-files/110344)

<div class="topic-metadata">

**Author:** [@rnuby](https://www.ruby-forum.com/u/rnuby)\
**Replies:** 3\
**Last updated:** [July 25, 2007, 7:52pm UTC](https://www.ruby-forum.com/t/requiring-multiple-files/110344 "2007-07-25T19:52:02Z")

</div>

Hi all! I was wonder how one goes about requireing multiple files. I have the follow file structure: Project/ run.rb sub/ go.rb require\_me.rb now in run.rb require ‘sub/go’ in go.rb require ‘require\_me’ but w…

---

## [New forum search powered by Ferret](https://www.ruby-forum.com/t/new-forum-search-powered-by-ferret/55849)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 3\
**Last updated:** [August 5, 2006, 8:49pm UTC](https://www.ruby-forum.com/t/new-forum-search-powered-by-ferret/55849 "2006-08-05T20:49:15Z")

</div>

Ferret is now used as search engine. You can enter queries like: +ferret +index -mysql

---

## [Increment outerloop value in innerloop in each do Syntax](https://www.ruby-forum.com/t/increment-outerloop-value-in-innerloop-in-each-do-syntax/179752)

<div class="topic-metadata">

**Author:** [@nagaraju](https://www.ruby-forum.com/u/nagaraju)\
**Replies:** 6\
**Last updated:** [December 3, 2009, 4:47pm UTC](https://www.ruby-forum.com/t/increment-outerloop-value-in-innerloop-in-each-do-syntax/179752 "2009-12-03T16:47:27Z")

</div>

Hi All, I am new to RUBY. Please help me in solving the below problem. I have a c code and I am trying to do the same in RUBY. for(int i = 0; i \< 10;i++) { for(int j = 0; j\< 5; j++) { if(i == j) { printf("%d - i…

---

## [UTF-8 string conversion difficulties in JRuby](https://www.ruby-forum.com/t/utf-8-string-conversion-difficulties-in-jruby/176772)

<div class="topic-metadata">

**Author:** [@serguei\_f](https://www.ruby-forum.com/u/serguei_f)\
**Replies:** 6\
**Last updated:** [October 12, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/utf-8-string-conversion-difficulties-in-jruby/176772 "2009-10-12T18:29:34Z")

</div>

The following code correctly determines that a string is not UTF-8 in ruby 1.8.6, but in JRuby this doesn’t work. require ‘iconv’ require ‘stringio’ non\_utf8 = “\\xa4” utf8 = Iconv.conv(‘UTF-8//IGNORE’, ‘UTF-8’, non\_…

---

## [How to reset the base\_url value?](https://www.ruby-forum.com/t/how-to-reset-the-base-url-value/105130)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [May 26, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/how-to-reset-the-base-url-value/105130 "2007-05-26T22:11:41Z")

</div>

Hello all, I recently set up Typo 4.1.1 and made the mistake of accessing it via one of the mongrel instances at “localhost:8000”, so now Typo seems to think that this is the default base URL for about half of the li…

---

## [Link\_to\_image - Remove Border](https://www.ruby-forum.com/t/link-to-image-remove-border/52276)

<div class="topic-metadata">

**Author:** [@reback](https://www.ruby-forum.com/u/reback)\
**Replies:** 6\
**Last updated:** [January 12, 2006, 3:47pm UTC](https://www.ruby-forum.com/t/link-to-image-remove-border/52276 "2006-01-12T15:47:17Z")

</div>

Hi All, I am new to both Ruby and Rails, so please be patient with me. I am currently working on a view for a controller and I have used the following excerpt: \<%= link\_to\_image "b\_edit", :action =\> 'edit', :id =\> p…

---

## [GnuRadio File sink Operation, Need help](https://www.ruby-forum.com/t/gnuradio-file-sink-operation-need-help/231911)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [September 5, 2014, 6:28pm UTC](https://www.ruby-forum.com/t/gnuradio-file-sink-operation-need-help/231911 "2014-09-05T18:28:06Z")

</div>

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

---

## [Custom order of Hash](https://www.ruby-forum.com/t/custom-order-of-hash/239388)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [February 24, 2014, 6:01pm UTC](https://www.ruby-forum.com/t/custom-order-of-hash/239388 "2014-02-24T18:01:04Z")

</div>

Would a custom order of a hash be useful in Rails? If I have the following Hash: my\_hash = { key1: ‘value’, key2: ‘value’, key3: ‘value’ } And I want to order it by the following keys: my\_hash = my\_hash.order(:key2, …

---

## [Extconf.rb and checking for C++ headers](https://www.ruby-forum.com/t/extconf-rb-and-checking-for-c-headers/218999)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [April 18, 2012, 7:29pm UTC](https://www.ruby-forum.com/t/extconf-rb-and-checking-for-c-headers/218999 "2012-04-18T19:29:23Z")

</div>

I’m extending our project \[1\] with some native extensions. Our code is written (currently) all in C++, and we use Swig to provide Ruby bindings. For the extconf.rb file previous I’ve just had: —8\<\[snip\]— require ‘mk…

---

## ['to\_f or not to\_f', that is the matter of my question](https://www.ruby-forum.com/t/to-f-or-not-to-f-that-is-the-matter-of-my-question/186357)

<div class="topic-metadata">

**Author:** [@grar](https://www.ruby-forum.com/u/grar)\
**Replies:** 5\
**Last updated:** [April 5, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/to-f-or-not-to-f-that-is-the-matter-of-my-question/186357 "2010-04-05T21:41:18Z")

</div>

What is the best practice for handling ActiveRecord attributes in logic when those attributes were allowed to be nil? I’ve been handling the possibly-nil status of my Numeric attributes in my logic by calling to\_f (to…

---

## [Threading questions](https://www.ruby-forum.com/t/threading-questions/160107)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 5\
**Last updated:** [February 12, 2009, 9:38pm UTC](https://www.ruby-forum.com/t/threading-questions/160107 "2009-02-12T21:38:21Z")

</div>

Hi I have read the Tip about using Ruby threads with GTK (http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips\_threads), and I have a few questions that I hope you can help me with. First, since all Ruby code (in 1.8.6 at…

---

## [Database connection switching at runtime](https://www.ruby-forum.com/t/database-connection-switching-at-runtime/150800)

<div class="topic-metadata">

**Author:** [@priyasaini](https://www.ruby-forum.com/u/priyasaini)\
**Replies:** 5\
**Last updated:** [October 15, 2008, 6:16am UTC](https://www.ruby-forum.com/t/database-connection-switching-at-runtime/150800 "2008-10-15T06:16:07Z")

</div>

Hi All: I want my application to authenticate user through master database and accordingly should connect them to their specific database. I am using the sub-domain as identifier for the user and stores domain-databa…

---

## [Como insertar valor en una relacion has\_and\_belongs\_to\_many](https://www.ruby-forum.com/t/como-insertar-valor-en-una-relacion-has-and-belongs-to-many/140086)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 5\
**Last updated:** [June 10, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/como-insertar-valor-en-una-relacion-has-and-belongs-to-many/140086 "2008-06-10T18:47:06Z")

</div>

Hola a todos, De nuevo me encuentro con un problema para la relacion has\_and\_belongs\_to\_many. El caso es el siguiente: Tengo dos modelos llamados: Especificacion y Proveedor, donde una especificacion puede ser cumpli…

---

## [Cannot build IronRuby or IronPython MSI's](https://www.ruby-forum.com/t/cannot-build-ironruby-or-ironpython-msis/215425)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 4, 2012, 6:20am UTC](https://www.ruby-forum.com/t/cannot-build-ironruby-or-ironpython-msis/215425 "2012-01-04T06:20:08Z")

</div>

I did a git pull today of IronLanguages\\main, and noticed a giant stack of changes on December 30, 31 and Jan 1 - which look like they’re related to Win8 and Mango, amongst other things. I’m trying to build the Iron…

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

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