# Top

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

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

---

## [Color gem](https://www.ruby-forum.com/t/color-gem/112978)

<div class="topic-metadata">

**Author:** [@mariko](https://www.ruby-forum.com/u/mariko)\
**Replies:** 2\
**Last updated:** [August 26, 2007, 12:09am UTC](https://www.ruby-forum.com/t/color-gem/112978 "2007-08-26T00:09:57Z")

</div>

I’m using the ruby gem “Color” and I’m having some troubles with to\_hex. I’ve installed the gem, and when I try and run the test program I get this error: red = Color.new(‘ff0000’) =\> #\<Color:0x3685990 @saturation=…

---

## [GMailer won't connect](https://www.ruby-forum.com/t/gmailer-wont-connect/81173)

<div class="topic-metadata">

**Author:** [@cpjolicoeur](https://www.ruby-forum.com/u/cpjolicoeur)\
**Replies:** 2\
**Last updated:** [January 19, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/gmailer-wont-connect/81173 "2007-01-19T16:29:54Z")

</div>

I’m trying to integrate the GMailer libray into my rails project but I’m having problems even making a selection. using foo = GMailer.connect(“cpjolicoeur”, “mypassword”) I get the following error. RuntimeError: Not…

---

## [Splitting controller](https://www.ruby-forum.com/t/splitting-controller/72669)

<div class="topic-metadata">

**Author:** [@Domas\_S](https://www.ruby-forum.com/u/Domas_S)\
**Replies:** 2\
**Last updated:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/splitting-controller/72669 "2006-10-18T10:40:37Z")

</div>

I’m trying to split controller into several files. I tried extracting methods into separate files and then requiring them in main controller, but this doesn’t seem to work. controllers/reports/sales\_reports.rb: class…

---

## [Newbie: Symbol as array index error](https://www.ruby-forum.com/t/newbie-symbol-as-array-index-error/64566)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [August 10, 2006, 3:54pm UTC](https://www.ruby-forum.com/t/newbie-symbol-as-array-index-error/64566 "2006-08-10T15:54:10Z")

</div>

Hi all I’m terrible sorry for this newbie question, but I really can’t figure it out. :open\_mouth: I want to create a method that accepts a hash of parameters: def write\_email \*args ‘’ end But when I call it… \<%=…

---

## [Numeric precision problem](https://www.ruby-forum.com/t/numeric-precision-problem/60151)

<div class="topic-metadata">

**Author:** [@doug3](https://www.ruby-forum.com/u/doug3)\
**Replies:** 2\
**Last updated:** [May 10, 2006, 7:09pm UTC](https://www.ruby-forum.com/t/numeric-precision-problem/60151 "2006-05-10T19:09:37Z")

</div>

Greetings all. I’m having a little problem with numeric precision and being a NOOB to Ruby, I’m not quite sure where I am going wrong. When I perform the following calculation: n = ((9703.0 \* 16346204482307500.0) + 1…

---

## [ActionView::Helpers::FormHelper instance methods should take](https://www.ruby-forum.com/t/actionview-formhelper-instance-methods-should-take/57248)

<div class="topic-metadata">

**Author:** [@alder](https://www.ruby-forum.com/u/alder)\
**Replies:** 2\
**Last updated:** [April 8, 2006, 6:02pm UTC](https://www.ruby-forum.com/t/actionview-formhelper-instance-methods-should-take/57248 "2006-04-08T18:02:59Z")

</div>

Hi ActionView::Helpers::FormHelper methods (e.g. #text\_field, #check\_box…) take object\_name as an argument. From this argument they infer a name that is supposed to contains the reference to the relevant object. I c…

---

## [Can't setup Rails with RVM in ubuntu 12.04](https://www.ruby-forum.com/t/cant-setup-rails-with-rvm-in-ubuntu-12-04/245430)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 5\
**Last updated:** [May 31, 2013, 1:45pm UTC](https://www.ruby-forum.com/t/cant-setup-rails-with-rvm-in-ubuntu-12-04/245430 "2013-05-31T13:45:43Z")

</div>

I’m doing setu Ruby on Rails with RVM. I had setup ruby 1.9.3 p429 and RVM,RubyGem… succesfully But I can’t setup Rails with command : gem install rails because of error: ERROR: While executing gem … (Gem::Dependenc…

---

## [Error in Interpolating FIR filter](https://www.ruby-forum.com/t/error-in-interpolating-fir-filter/227976)

<div class="topic-metadata">

**Author:** [@Manu\_T\_S](https://www.ruby-forum.com/u/Manu_T_S)\
**Replies:** 5\
**Last updated:** [April 5, 2013, 7:10pm UTC](https://www.ruby-forum.com/t/error-in-interpolating-fir-filter/227976 "2013-04-05T19:10:17Z")

</div>

Executing the attached flow graph I get the following error. ##################################################################################### gr\_fir\_ccc: using SSE Traceback (most recent call last): File “/ho…

---

## [Power amplifier](https://www.ruby-forum.com/t/power-amplifier/219418)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 5\
**Last updated:** [May 2, 2012, 8:08pm UTC](https://www.ruby-forum.com/t/power-amplifier/219418 "2012-05-02T20:08:48Z")

</div>

Hi all, Can someone suggest me a power amplifier to use with usrp+wbx on the 434 MHz band ? (I need a small output power…from 2 to 5 W). Thanks in advance, Luca

---

## [Simultaneous wireless transmission and reception between USRP2s](https://www.ruby-forum.com/t/simultaneous-wireless-transmission-and-reception-between-usrp2s/208073)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [February 4, 2012, 1:31pm UTC](https://www.ruby-forum.com/t/simultaneous-wireless-transmission-and-reception-between-usrp2s/208073 "2012-02-04T13:31:11Z")

</div>

Dear GNU Radio list’s members, I have a set of USRP2+XCVR2450 with the host computers configured with the GNU Radio classic drivers (v.3.3.0). My main idea is to transmit and receive data through a wireless connectio…

---

## [Beginner here: What does it take to find a decent job as Rails developer and live from it](https://www.ruby-forum.com/t/beginner-here-what-does-it-take-to-find-a-decent-job-as-rails-developer-and-live-from-it/215445)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [January 9, 2012, 2:27pm UTC](https://www.ruby-forum.com/t/beginner-here-what-does-it-take-to-find-a-decent-job-as-rails-developer-and-live-from-it/215445 "2012-01-09T14:27:44Z")

</div>

Hi all. I’m a newbie developer that’s been working with Joomla + PHP till now, but I’ve decided some weeks ago to start with serious development and specifically Ruby & Rails. For the history I was searching which l…

---

## [T-shirts](https://www.ruby-forum.com/t/t-shirts/208270)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [November 9, 2011, 7:11am UTC](https://www.ruby-forum.com/t/t-shirts/208270 "2011-11-09T07:11:38Z")

</div>

For anyone interested, the guy who printed the Nginx t-shirts a couple of years ago finally put the remainder up on eBay: http://cgi.ebay.com/NGINX-t-shirt-/170654481676?pt=US\_Mens\_Tshirts&var=&hash=item6d700b391a#ht\_5…

---

## [Powerï¼ŒBandwi dth and spectrum switch problems](https://www.ruby-forum.com/t/poweri-oebandwi-dth-and-spectrum-switch-problems/190891)

<div class="topic-metadata">

**Author:** [@Johnson\_lu](https://www.ruby-forum.com/u/Johnson_lu)\
**Replies:** 5\
**Last updated:** [July 1, 2010, 3:23pm UTC](https://www.ruby-forum.com/t/poweri-oebandwi-dth-and-spectrum-switch-problems/190891 "2010-07-01T15:23:46Z")

</div>

Hi guysï¼Œ Could anybody can help me for these problemsï¼Ÿ 1ã€I varied Tx\_amplitude from 0.1 to 1 and measured the output with a spectrum analyzer. But the changes are very little. The output is almost the same whe…

---

## [Gr-howto import error](https://www.ruby-forum.com/t/gr-howto-import-error/173726)

<div class="topic-metadata">

**Author:** [@Alex\_young](https://www.ruby-forum.com/u/Alex_young)\
**Replies:** 5\
**Last updated:** [August 18, 2009, 8:20pm UTC](https://www.ruby-forum.com/t/gr-howto-import-error/173726 "2009-08-18T20:20:35Z")

</div>

Background info: GNU Radio trunk, revision 11163 Ubuntu 8.04, 32bit make version 3.81 autoconf version 2.61 gcc version 4.2.4 The problem I am having: I downloaded gr-howto-write-a-block-3.2.tar.gz from Index of …

---

## [Strange behaviour in ActiveRecord transaction](https://www.ruby-forum.com/t/strange-behaviour-in-activerecord-transaction/169004)

<div class="topic-metadata">

**Author:** [@farmerss](https://www.ruby-forum.com/u/farmerss)\
**Replies:** 5\
**Last updated:** [May 30, 2009, 7:10am UTC](https://www.ruby-forum.com/t/strange-behaviour-in-activerecord-transaction/169004 "2009-05-30T07:10:44Z")

</div>

Hi, I’m using an ActiveRecord transaction in a Rails app, and one of the changes made during the transaction is reverted as the transaction finishes, whilst the other changes are preserved. The code is like: def sw…

---

## [Ogni pagina richiesta carica sempre anche l'index](https://www.ruby-forum.com/t/ogni-pagina-richiesta-carica-sempre-anche-lindex/166671)

<div class="topic-metadata">

**Author:** [@softwarewin](https://www.ruby-forum.com/u/softwarewin)\
**Replies:** 5\
**Last updated:** [May 4, 2009, 1:32pm UTC](https://www.ruby-forum.com/t/ogni-pagina-richiesta-carica-sempre-anche-lindex/166671 "2009-05-04T13:32:15Z")

</div>

Salve ragazzi, cia Andrea C., come giustamente mi facesti notare tu in un post precedente (Development.log - disabilitazione - IT - Ruby-Forum), ho cominciato ad utilizzare il development.log. Non l’avessi mai fatto …

---

## [ZenTest Autotest and 1.1.5](https://www.ruby-forum.com/t/zentest-autotest-and-1-1-5/149810)

<div class="topic-metadata">

**Author:** [@Donald\_F](https://www.ruby-forum.com/u/Donald_F)\
**Replies:** 5\
**Last updated:** [September 30, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/zentest-autotest-and-1-1-5/149810 "2008-09-30T15:15:51Z")

</div>

I have been using ZenTest AutoTest with the previous version of rspec- rails. When I updated to 1.1.5 the autotest just hangs. Are these compatible? Don F.

---

## [Ripper cannot build on win32](https://www.ruby-forum.com/t/ripper-cannot-build-on-win32/125165)

<div class="topic-metadata">

**Author:** [@yukimi\_sake](https://www.ruby-forum.com/u/yukimi_sake)\
**Replies:** 5\
**Last updated:** [January 7, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/ripper-cannot-build-on-win32/125165 "2008-01-07T15:35:19Z")

</div>

e$B@c8+\<r$G$9!#e(B 1e$B7ne(B5e$BF|0J9\_e(Brippere$B$,e(Bmswin(W2K+VC8EE)e$B$Ge(B …/…/…/ruby/ext/ripper/tools/preproc.rb:44:in ===': broken Windows-31J string (ArgumentError) from ../../../ruby/ext/ripper/tools/preproc.r…

---

## [Compiling to byte codes](https://www.ruby-forum.com/t/compiling-to-byte-codes/118472)

<div class="topic-metadata">

**Author:** [@JONNALAGADDA\_Sriniv](https://www.ruby-forum.com/u/JONNALAGADDA_Sriniv)\
**Replies:** 5\
**Last updated:** [October 27, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/compiling-to-byte-codes/118472 "2007-10-27T16:45:02Z")

</div>

Dear all, I have just compiled and installed 1.9 from SVN trunk. I seem to miss the instructions for compiling my ruby script to byte codes. Is there some documentation available on using the YARV part of 1.9? Gre…

---

## [Which country did a user request come from? How can I determ](https://www.ruby-forum.com/t/which-country-did-a-user-request-come-from-how-can-i-determ/82371)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [September 25, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/which-country-did-a-user-request-come-from-how-can-i-determ/82371 "2007-09-25T23:11:11Z")

</div>

Hi, Can anybody recommend a means to determine the country that an incoming user request is originating from? I’m guessing that you would first get the IP from the HTTP header and then somehow translate this? Is t…

---

## [Adding elements of one array to another](https://www.ruby-forum.com/t/adding-elements-of-one-array-to-another/113337)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 5\
**Last updated:** [August 30, 2007, 12:52am UTC](https://www.ruby-forum.com/t/adding-elements-of-one-array-to-another/113337 "2007-08-30T00:52:48Z")

</div>

I can’t remember who asked this a while ago, but while I was stumbling through my Programming Ruby book, I found a nice method in array that will instantly do the trick: Array#concat a = \[1, 2\] b = \[3, 4\] a.concat(…

---

## [RoR useful gems or plugins](https://www.ruby-forum.com/t/ror-useful-gems-or-plugins/111251)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 5\
**Last updated:** [August 5, 2007, 12:12pm UTC](https://www.ruby-forum.com/t/ror-useful-gems-or-plugins/111251 "2007-08-05T12:12:48Z")

</div>

Hi all! Please recommend me a list of useful gems of plugins that can help me in web development, for example easier build web UI, some controls or admin pages, etc… everything that can realy help Tnx for answers

---

## [RubyCocoa and ActiveRecord?](https://www.ruby-forum.com/t/rubycocoa-and-activerecord/89857)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 5\
**Last updated:** [May 21, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/rubycocoa-and-activerecord/89857 "2007-05-21T19:51:41Z")

</div>

Hey all I have been contemplating if it is possible to use ActiveRecord in a RubyCocoa application? Has anyone tried it? is it even possible? All the best Tim P.

---

## [Something wierd with .save method](https://www.ruby-forum.com/t/something-wierd-with-save-method/103341)

<div class="topic-metadata">

**Author:** [@anupam](https://www.ruby-forum.com/u/anupam)\
**Replies:** 5\
**Last updated:** [May 6, 2007, 8:23am UTC](https://www.ruby-forum.com/t/something-wierd-with-save-method/103341 "2007-05-06T08:23:05Z")

</div>

Hi, I have a very sime app. I need to create as many records in the db as the selected checkboxes (named :isselected) in the view. Here is the code snippet from the controller: isselectedhash = params\[:isselected\] …

---

## [ActiveMerchant 1.0.0 Release](https://www.ruby-forum.com/t/activemerchant-1-0-0-release/86376)

<div class="topic-metadata">

**Author:** [@cody\_f](https://www.ruby-forum.com/u/cody_f)\
**Replies:** 5\
**Last updated:** [February 21, 2007, 9:20pm UTC](https://www.ruby-forum.com/t/activemerchant-1-0-0-release/86376 "2007-02-21T21:20:11Z")

</div>

This is just a quick announcement to let you know that we have released ActiveMerchant 1.0.0 and created a new homepage for the project at http://activemerchant.org. The homepage has links to all relevant information…

---

## [Rails view as PDF... suggestions?](https://www.ruby-forum.com/t/rails-view-as-pdf-suggestions/76124)

<div class="topic-metadata">

**Author:** [@JSBSRainsberger](https://www.ruby-forum.com/u/JSBSRainsberger)\
**Replies:** 5\
**Last updated:** [November 20, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/rails-view-as-pdf-suggestions/76124 "2006-11-20T14:46:19Z")

</div>

Hi, everybody! I am about to do some research tomorrow, but if any of you has an obvious answer, then that would help. I am looking to build PDFs from Rails views, and I’d like some guidance on how to go about it. If…

---

## [Firefox extension for ajax debugging](https://www.ruby-forum.com/t/firefox-extension-for-ajax-debugging/62291)

<div class="topic-metadata">

**Author:** [@Matias](https://www.ruby-forum.com/u/Matias)\
**Replies:** 5\
**Last updated:** [June 8, 2006, 9:26pm UTC](https://www.ruby-forum.com/t/firefox-extension-for-ajax-debugging/62291 "2006-06-08T21:26:11Z")

</div>

or similar… Is there any extension for firefox so that I can view the source code of ajax returned content? Thanks everybody.

---

## [Passing params to a component](https://www.ruby-forum.com/t/passing-params-to-a-component/82329)

<div class="topic-metadata">

**Author:** [@afg](https://www.ruby-forum.com/u/afg)\
**Replies:** 5\
**Last updated:** [March 16, 2006, 12:49am UTC](https://www.ruby-forum.com/t/passing-params-to-a-component/82329 "2006-03-16T00:49:34Z")

</div>

I see from http://rubyonrails.org/api/classes/ActionController/Components.html that is possible to pass paramaters to a component. I don’t understand the exact syntax. I’m trying: @master\_id = @params\[‘master\_id’\] …

---

## [Using sum on negative integers in array](https://www.ruby-forum.com/t/using-sum-on-negative-integers-in-array/259221)

<div class="topic-metadata">

**Author:** [@Jmzfrosto](https://www.ruby-forum.com/u/Jmzfrosto)\
**Replies:** 1\
**Last updated:** [April 12, 2020, 6:53pm UTC](https://www.ruby-forum.com/t/using-sum-on-negative-integers-in-array/259221 "2020-04-12T18:53:21Z")

</div>

Hi ruby-foum! I’m trying to find the sum of all of the integers within a given range, up to and including the base and highest integer: def get\_sum(a,b) @a = a @b = b if @a == @b return @a else return (@a…@b).to\_…

---

## [Facing issue on "bundle exec rails console" command](https://www.ruby-forum.com/t/facing-issue-on-bundle-exec-rails-console-command/249901)

<div class="topic-metadata">

**Author:** [@Dayalan](https://www.ruby-forum.com/u/Dayalan)\
**Replies:** 1\
**Last updated:** [October 26, 2018, 6:12pm UTC](https://www.ruby-forum.com/t/facing-issue-on-bundle-exec-rails-console-command/249901 "2018-10-26T18:12:28Z")

</div>

Hi , I have try to upgrade ruby software 2.5.1. I’m having issue , while executing the following command “bundle exec rails console”. I’m getting error like "Cannot load such a file— 2.5/pg\_ext " Please help me to…

---

## [Rails Inline Form](https://www.ruby-forum.com/t/rails-inline-form/211236)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [August 30, 2011, 12:57pm UTC](https://www.ruby-forum.com/t/rails-inline-form/211236 "2011-08-30T12:57:56Z")

</div>

Hello list i’m new in Rails. But i like rails. Now i’m writing application on rails. How to create inline form on rails ? Thank you Tsolmon N…

---

## [Re: turn off warning message on nginx](https://www.ruby-forum.com/t/re-turn-off-warning-message-on-nginx/202966)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [February 9, 2011, 9:53pm UTC](https://www.ruby-forum.com/t/re-turn-off-warning-message-on-nginx/202966 "2011-02-09T21:53:42Z")

</div>

On Feb 9, 2011 1:31 PM, “Michael S.” removed\_email\_address@domain.invalid wrote: I think Jerome was working on a fastcgi\_param method to alter ini directives from the nginx conf. IIRC. Is it available? If not then i…

---

## [OFDM on USRP2](https://www.ruby-forum.com/t/ofdm-on-usrp2/201574)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [January 18, 2011, 7:06pm UTC](https://www.ruby-forum.com/t/ofdm-on-usrp2/201574 "2011-01-18T19:06:37Z")

</div>

Hi all, Does anyone know of any updated OFDM benchmark code that is modified to be run on a USRP2? I have seen previous posts of this, however the link to the updated code is no longer available. Thanks, Michael R. …

---

## [Newbie: two cool discoveries](https://www.ruby-forum.com/t/newbie-two-cool-discoveries/199693)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 7\
**Last updated:** [November 27, 2010, 4:50am UTC](https://www.ruby-forum.com/t/newbie-two-cool-discoveries/199693 "2010-11-27T04:50:41Z")

</div>

Hi all, I just wanted to share a couple of things I’ve found out lately. I imagine they are well known to the experts here, but I thought maybe there are other newbies out there that could benefit from it too. Using…

---

## [One more regular expression, please](https://www.ruby-forum.com/t/one-more-regular-expression-please/179640)

<div class="topic-metadata">

**Author:** [@j-merrill](https://www.ruby-forum.com/u/j-merrill)\
**Replies:** 7\
**Last updated:** [December 1, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/one-more-regular-expression-please/179640 "2009-12-01T14:47:55Z")

</div>

Hi, I really can’t figure out how regular expressions work, and since I don’t use them frequently is easier to ask… I have the follwow string ++((100))++askjasdjksjdkasdkjk++((200))++skdjsjd I need a reg expression …

---

## [Favored development environment](https://www.ruby-forum.com/t/favored-development-environment/159865)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 7\
**Last updated:** [February 14, 2009, 4:50am UTC](https://www.ruby-forum.com/t/favored-development-environment/159865 "2009-02-14T04:50:56Z")

</div>

I am about to purchase a laptop strictly for development (ruby & rails) and then leverage my existing large screen monitor with it when in the office. Laptop monitor for running tests, large screen for development et…

---

## [Exploring the world of GNU](https://www.ruby-forum.com/t/exploring-the-world-of-gnu/158798)

<div class="topic-metadata">

**Author:** [@Bari\_B](https://www.ruby-forum.com/u/Bari_B)\
**Replies:** 7\
**Last updated:** [January 29, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/exploring-the-world-of-gnu/158798 "2009-01-29T22:16:15Z")

</div>

Hi I have just started work on gnu project. Initially i got basic concept of Python and now studying gnuradio through its website.can any body help me to give guidance about getting basic knowledge so that I will be…

---

## [Ruby namespace question](https://www.ruby-forum.com/t/ruby-namespace-question/158248)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 7\
**Last updated:** [January 21, 2009, 11:48am UTC](https://www.ruby-forum.com/t/ruby-namespace-question/158248 "2009-01-21T11:48:46Z")

</div>

I require two ruby files which include two classes with the same name. how can I specify which class I use?

---

## [Code Review: unni1](https://www.ruby-forum.com/t/code-review-unni1/143166)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 7\
**Last updated:** [July 17, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/code-review-unni1/143166 "2008-07-17T17:29:32Z")

</div>

tfpt review “/shelveset:unni1;REDMOND\\jdeville” Comment : Patch from Unnikrishnan N. to properly handle File.zero? for ‘NUL’

---

## [Assignment if key\_exist? in Hash](https://www.ruby-forum.com/t/assignment-if-key-exist-in-hash/133503)

<div class="topic-metadata">

**Author:** [@darren\_kirby](https://www.ruby-forum.com/u/darren_kirby)\
**Replies:** 7\
**Last updated:** [April 1, 2008, 8:29am UTC](https://www.ruby-forum.com/t/assignment-if-key-exist-in-hash/133503 "2008-04-01T08:29:26Z")

</div>

Hi all, I have a bunch of lines like: foo = some\_hash\[“some\_key”\] if some\_hash.has\_key?(“some\_key”) This feels awkward and cumbersome, so I would imagine there is a more idiomatic way to write it. Thanks, -d

---

## [Iterating through an array of calls to which a login belongs to](https://www.ruby-forum.com/t/iterating-through-an-array-of-calls-to-which-a-login-belongs-to/128996)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 7\
**Last updated:** [February 14, 2008, 8:10am UTC](https://www.ruby-forum.com/t/iterating-through-an-array-of-calls-to-which-a-login-belongs-to/128996 "2008-02-14T08:10:56Z")

</div>

There’s an array of calls in the controller to which this login belongs to. The desired output is the comment attribute for these Call instances. I’m getting an error of: undefined local variable or method \`calls’ w…

---

## [File handling](https://www.ruby-forum.com/t/file-handling/124092)

<div class="topic-metadata">

**Author:** [@advait](https://www.ruby-forum.com/u/advait)\
**Replies:** 7\
**Last updated:** [December 26, 2007, 9:17am UTC](https://www.ruby-forum.com/t/file-handling/124092 "2007-12-26T09:17:12Z")

</div>

Hi, I have to make use of a single associative array to hold two files and I should be able to access them in the following manner \[’’\] to have info related to group 2 \[’’\]\[’’\] 3 \[’’,’’,’’\] The file, along …

---

## [Nested controllers problem in production env](https://www.ruby-forum.com/t/nested-controllers-problem-in-production-env/119936)

<div class="topic-metadata">

**Author:** [@ghostrifle](https://www.ruby-forum.com/u/ghostrifle)\
**Replies:** 7\
**Last updated:** [November 12, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/nested-controllers-problem-in-production-env/119936 "2007-11-12T23:04:56Z")

</div>

Hi people, I’m using nested controllers in my dev env without any problems. Well… I’ve got a controller which is a nested controller of Customerbackend: class Customerbackend::AdvertisementController \< ApplicationCon…

---

## [RSpec Texmate Bundle errors](https://www.ruby-forum.com/t/rspec-texmate-bundle-errors/118744)

<div class="topic-metadata">

**Author:** [@Arthur\_PSSSStry](https://www.ruby-forum.com/u/Arthur_PSSSStry)\
**Replies:** 7\
**Last updated:** [October 30, 2007, 6:39pm UTC](https://www.ruby-forum.com/t/rspec-texmate-bundle-errors/118744 "2007-10-30T18:39:29Z")

</div>

I’ve the same problem as Alastair when running rspec command : \[TxMt\] RSpec Bundle errors …/spec/mate/runner.rb:34:in run': undefined method parse’ for Spec::runner::OptionParser:Class I fixed this for me by changi…

---

## [Naming Conventions](https://www.ruby-forum.com/t/naming-conventions/117598)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [October 18, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/naming-conventions/117598 "2007-10-18T21:44:55Z")

</div>

Hi all, I’m quite new to Ruby. One of the things I try to get when I learn a new language are naming conventions. I hate to write, for instance, Java code that looks like C++. My question is: are Ruby’s aliases inten…

---

## [Slave not removing slave\_proc\_\* files](https://www.ruby-forum.com/t/slave-not-removing-slave-proc-files/112353)

<div class="topic-metadata">

**Author:** [@Jos\_B](https://www.ruby-forum.com/u/Jos_B)\
**Replies:** 7\
**Last updated:** [August 19, 2007, 3:41am UTC](https://www.ruby-forum.com/t/slave-not-removing-slave-proc-files/112353 "2007-08-19T03:41:24Z")

</div>

Hi. In order to be able to run swiftiply\_mongrel\_rails under daemontools I patched swiftiply\_mongrel\_rails to use Ara’s Slave library. The patch does essentially this: slaves = \[\] 3.times do |i| require 'slave' …

---

## [Self.class in view rhtml](https://www.ruby-forum.com/t/self-class-in-view-rhtml/111745)

<div class="topic-metadata">

**Author:** [@SSrob\_desbois](https://www.ruby-forum.com/u/SSrob_desbois)\
**Replies:** 7\
**Last updated:** [August 10, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/self-class-in-view-rhtml/111745 "2007-08-10T15:08:42Z")

</div>

Hi all, very much new to Ruby and RoR - a very steep learning curve but exciting stuff! I’m just playing around with some things - I have a LoginController which has an index.rhtml view file. If I insert \<%= self.insp…

---

## [Gtk::Print\* sample program](https://www.ruby-forum.com/t/gtk-print-sample-program/110991)

<div class="topic-metadata">

**Author:** [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Replies:** 1\
**Last updated:** [August 5, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/gtk-print-sample-program/110991 "2007-08-05T17:43:17Z")

</div>

Hi, I made a sample program to demonstrate how to use Gtk::Print\* . It also demonstrates a simple pagination algorithm. It would be great if you could add it to gtk/sample/misc/! Cheers, Mathieu

---

## [User Roles](https://www.ruby-forum.com/t/user-roles/80607)

<div class="topic-metadata">

**Author:** [@Joannou\_Ng](https://www.ruby-forum.com/u/Joannou_Ng)\
**Replies:** 7\
**Last updated:** [December 30, 2006, 2:29pm UTC](https://www.ruby-forum.com/t/user-roles/80607 "2006-12-30T14:29:51Z")

</div>

Hi folks, Can someone explain to me the differences between the user roles? Cheers, Joannou. The Good Lord has changed water into wine, so how can drinking beer be a sin. - Sign near a Belgian monastery

---

## [Hiding multiple id's \[element.hide\]](https://www.ruby-forum.com/t/hiding-multiple-ids-element-hide/76943)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 7\
**Last updated:** [November 23, 2006, 4:33pm UTC](https://www.ruby-forum.com/t/hiding-multiple-ids-element-hide/76943 "2006-11-23T16:33:10Z")

</div>

I’m looking at this changeset http://dev.rubyonrails.org/changeset/5057 and I’m running edge revision 5196 so I’m assuming multiple id’s on element.hide would work. I’m getting parse errors though (“Toggle Info”, :af…

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

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