# Top

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

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

---

## [Attribute/control stream question](https://www.ruby-forum.com/t/attribute-control-stream-question/106639)

<div class="topic-metadata">

**Author:** [@Eric\_ASCottrell](https://www.ruby-forum.com/u/Eric_ASCottrell)\
**Replies:** 4\
**Last updated:** [June 14, 2007, 3:54am UTC](https://www.ruby-forum.com/t/attribute-control-stream-question/106639 "2007-06-14T03:54:12Z")

</div>

Hello, The processing of pulses into data requires me to keep track of valid pulses (following samples are above threshold) and leading edges (sample is 6 dB or more than previous sample and following sample is 6 dB o…

---

## [Class hierarchy with rdoc](https://www.ruby-forum.com/t/class-hierarchy-with-rdoc/91359)

<div class="topic-metadata">

**Author:** [@Googy](https://www.ruby-forum.com/u/Googy)\
**Replies:** 4\
**Last updated:** [April 7, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/class-hierarchy-with-rdoc/91359 "2007-04-07T17:25:50Z")

</div>

Hi, I am newbie to ruby, I have extensive experience in java & with javadoc, javadoc shows class hierarchy i.e. its parent classes and interfaces in a tree view, so you can easily understand the whole hierarchy but w…

---

## [RJS to refresh partial not working](https://www.ruby-forum.com/t/rjs-to-refresh-partial-not-working/87507)

<div class="topic-metadata">

**Author:** [@wcheung](https://www.ruby-forum.com/u/wcheung)\
**Replies:** 4\
**Last updated:** [March 3, 2007, 7:59am UTC](https://www.ruby-forum.com/t/rjs-to-refresh-partial-not-working/87507 "2007-03-03T07:59:18Z")

</div>

Hi, I have the following: \_list\_user.rhtml \<% for column in User.content\_columns %\> \<%= column.human\_name %\> \<% end %\> \<% for user in @users %\> \<% for column in user.content\_columns %\> \<%=h u…

---

## [How to make a per-request variable globally available?](https://www.ruby-forum.com/t/how-to-make-a-per-request-variable-globally-available/84857)

<div class="topic-metadata">

**Author:** [@kampers](https://www.ruby-forum.com/u/kampers)\
**Replies:** 4\
**Last updated:** [February 8, 2007, 7:52pm UTC](https://www.ruby-forum.com/t/how-to-make-a-per-request-variable-globally-available/84857 "2007-02-08T19:52:55Z")

</div>

I’m developing a single application that responds to requests from two domains. Various parts of my code need to work differently depending on the request’s domain. The typical solution would be to do something like t…

---

## [Passing the data from a tkEntry widgit to a variable](https://www.ruby-forum.com/t/passing-the-data-from-a-tkentry-widgit-to-a-variable/72006)

<div class="topic-metadata">

**Author:** [@merrua](https://www.ruby-forum.com/u/merrua)\
**Replies:** 4\
**Last updated:** [October 16, 2006, 4:53pm UTC](https://www.ruby-forum.com/t/passing-the-data-from-a-tkentry-widgit-to-a-variable/72006 "2006-10-16T16:53:37Z")

</div>

I’m a bit confused about this, when you create a TkEntry Widgit on a frame How exactly do you put the data entered into a variable? I want it passed when the user clicks a button. So I was looking at examples and it …

---

## [Need help for coding an extension to ferret](https://www.ruby-forum.com/t/need-help-for-coding-an-extension-to-ferret/71664)

<div class="topic-metadata">

**Author:** [@ahfeel](https://www.ruby-forum.com/u/ahfeel)\
**Replies:** 4\
**Last updated:** [October 11, 2006, 9:47am UTC](https://www.ruby-forum.com/t/need-help-for-coding-an-extension-to-ferret/71664 "2006-10-11T09:47:36Z")

</div>

Hi, i’m working on a project using Ferret for indexing it’s datas. I’m very happy with it but i need to code an extension to implement a .to\_json method to TopDocs class, because ruby’s json implementation is really …

---

## [Ruby and Borland C++](https://www.ruby-forum.com/t/ruby-and-borland-c/69547)

<div class="topic-metadata">

**Author:** [@Sig](https://www.ruby-forum.com/u/Sig)\
**Replies:** 4\
**Last updated:** [September 22, 2006, 6:27pm UTC](https://www.ruby-forum.com/t/ruby-and-borland-c/69547 "2006-09-22T18:27:48Z")

</div>

Hello all, I successfully build ruby using both Borland C++ Builder 6 and BDS2006 C++. However when I try to include ruby.h in my C++ project I get compiler errors: \[C++ Error\] stdio.h(384): E2167 ‘\_strerror(const ch…

---

## [Model still using mysql](https://www.ruby-forum.com/t/model-still-using-mysql/100987)

<div class="topic-metadata">

**Author:** [@Winton](https://www.ruby-forum.com/u/Winton)\
**Replies:** 4\
**Last updated:** [August 3, 2006, 12:18pm UTC](https://www.ruby-forum.com/t/model-still-using-mysql/100987 "2006-08-03T12:18:51Z")

</div>

When calling a Result.find\_by\_content on my model, I get the following error: Mysql::Error: Table ‘db.results’ doesn’t exist: SHOW FIELDS FROM results Yes, I remembered to put acts\_as\_ferret. Any ideas? Trace: /Appl…

---

## [FXDirDialog.new Error Message](https://www.ruby-forum.com/t/fxdirdialog-new-error-message/183123)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 0\
**Last updated:** [February 8, 2010, 5:46pm UTC](https://www.ruby-forum.com/t/fxdirdialog-new-error-message/183123 "2010-02-08T17:46:19Z")

</div>

I want a dialog box to choose a directory. I’m running the following code require ‘fox16’ include Fox dialog = FXDirDialog.new(self, “Choose Directory”) and am getting an error that says “No matching function for …

---

## [Web resources about Nitro?](https://www.ruby-forum.com/t/web-resources-about-nitro/129685)

<div class="topic-metadata">

**Author:** [@tomjerry](https://www.ruby-forum.com/u/tomjerry)\
**Replies:** 0\
**Last updated:** [February 20, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/web-resources-about-nitro/129685 "2008-02-20T17:18:48Z")

</div>

Hi there, We are trying to gather the best tutorials and other useful web resources (hosting, showcase, community site,…) about Nitro in our web framework directory. Please don’t hesitate to have a look on our “All a…

---

## [Select-multiple for has\_many association](https://www.ruby-forum.com/t/select-multiple-for-has-many-association/64631)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [August 15, 2006, 2:11pm UTC](https://www.ruby-forum.com/t/select-multiple-for-has-many-association/64631 "2006-08-15T14:11:55Z")

</div>

I haven’t looked into this for several months, but there still doesn’t seem to be an obvious way to generate a HTML select element for choosing multiple items to be set for a has\_many association. Do something … …

---

## [Class initialization with open method](https://www.ruby-forum.com/t/class-initialization-with-open-method/238337)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [January 10, 2014, 8:28pm UTC](https://www.ruby-forum.com/t/class-initialization-with-open-method/238337 "2014-01-10T20:28:29Z")

</div>

Is it possible that If I put a method to open a webpage in the class initialization that when I call it like content = Web.New then it automatically assigns the contents of the page? And how exactly would it be done i…

---

## [Rvm installation script](https://www.ruby-forum.com/t/rvm-installation-script/228715)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 5\
**Last updated:** [May 5, 2013, 10:08pm UTC](https://www.ruby-forum.com/t/rvm-installation-script/228715 "2013-05-05T22:08:44Z")

</div>

Which of these scripts is preferred to install rvm on ubuntu server: curl -#L https://get.rvm.io | bash -s stable --autolibs=4 --ruby curl -L get.rvm.io | bash -s stable --auto

---

## [Unable to require 'test/unit'](https://www.ruby-forum.com/t/unable-to-require-test-unit/221917)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [August 6, 2012, 1:36pm UTC](https://www.ruby-forum.com/t/unable-to-require-test-unit/221917 "2012-08-06T13:36:17Z")

</div>

Hi All I am having the following error when I try to require ‘test/unit’, on Mac OS X using rbenv with rub 1.9.3, has anyone seen this error before ? if so can you tell me how to fix it. Thanks /ruby\_sandbox/ruby\_be…

---

## [Truncate may leave trailing spaces do you think this is wrong?](https://www.ruby-forum.com/t/truncate-may-leave-trailing-spaces-do-you-think-this-is-wrong/202544)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [February 1, 2011, 10:36pm UTC](https://www.ruby-forum.com/t/truncate-may-leave-trailing-spaces-do-you-think-this-is-wrong/202544 "2011-02-01T22:36:15Z")

</div>

Hi all - I noticed the other day that it’s possible to truncate a string such that it has trailing spaces before it appends the omission characters. Notice the space in the output below. ruby-1.8.7-p330 :007 \> “one t…

---

## [If the variable is set](https://www.ruby-forum.com/t/if-the-variable-is-set/196398)

<div class="topic-metadata">

**Author:** [@leonel](https://www.ruby-forum.com/u/leonel)\
**Replies:** 5\
**Last updated:** [October 12, 2010, 8:25pm UTC](https://www.ruby-forum.com/t/if-the-variable-is-set/196398 "2010-10-12T20:25:37Z")

</div>

How can I create an if statement to check if a variable contains a value? If it does contain a value, I want to send an email. I’m doing the following but it doesn’t work… EXTRACT def create @appointment = Appointme…

---

## [Rail3 e unobtrusive javascript](https://www.ruby-forum.com/t/rail3-e-unobtrusive-javascript/194161)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 5\
**Last updated:** [September 1, 2010, 8:03pm UTC](https://www.ruby-forum.com/t/rail3-e-unobtrusive-javascript/194161 "2010-09-01T20:03:12Z")

</div>

Ok, il fatto di non legarsi ad uno specifico framwework javascript mi sta bene ma…trovavo utilissimo l’helper observe\_field e ora, a meno di usare il plugin prototype\_legacy\_helpers, che tuttavia preferisco non voglio…

---

## [Active record validation Issue](https://www.ruby-forum.com/t/active-record-validation-issue/183492)

<div class="topic-metadata">

**Author:** [@sakhi](https://www.ruby-forum.com/u/sakhi)\
**Replies:** 5\
**Last updated:** [February 17, 2010, 12:23pm UTC](https://www.ruby-forum.com/t/active-record-validation-issue/183492 "2010-02-17T12:23:47Z")

</div>

Hello, I am trying to put some validation using active records onto form fields. like this - validates\_length\_of :tag\_list, :maximum =\> 2 When i provide value of tag\_list as “abc” then it gives the proper messag…

---

## [Jruby 1.3.0RC1 is broken for drb](https://www.ruby-forum.com/t/jruby-1-3-0rc1-is-broken-for-drb/168051)

<div class="topic-metadata">

**Author:** [@mshah](https://www.ruby-forum.com/u/mshah)\
**Replies:** 5\
**Last updated:** [May 18, 2009, 7:53am UTC](https://www.ruby-forum.com/t/jruby-1-3-0rc1-is-broken-for-drb/168051 "2009-05-18T07:53:37Z")

</div>

Hi, Is this known issue? Is there work around? \[manish@alioth rubyexperiments\]$ jruby server.rb /opt/jruby/lib/ruby/1.8/drb/drb.rb:968:in set\_sockopt': JRuby only supports F\_SETFL for fcntl/ioctl currently (NotImpleme…

---

## [Re: mspec error undefined method \`filtered' for	MSpecScript:Class](https://www.ruby-forum.com/t/re-mspec-error-undefined-method-filtered-for-mspecscript-class/166814)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 5\
**Last updated:** [April 29, 2009, 9:30pm UTC](https://www.ruby-forum.com/t/re-mspec-error-undefined-method-filtered-for-mspecscript-class/166814 "2009-04-29T21:30:11Z")

</div>

The gem won’t work for now. Make sure that the mspec that runs is the Mspec in Merlin/External.LCA\_RESTRICTED. JD

---

## [Rspec dependencies](https://www.ruby-forum.com/t/rspec-dependencies/161152)

<div class="topic-metadata">

**Author:** [@arshak](https://www.ruby-forum.com/u/arshak)\
**Replies:** 5\
**Last updated:** [March 10, 2009, 1:08pm UTC](https://www.ruby-forum.com/t/rspec-dependencies/161152 "2009-03-10T13:08:18Z")

</div>

Hello, I followed this http://cheat.errtheblog.com/s/rspec/ to try to get rspec working with rails 2.2.2 and installed rspec and rack gems but I’m still getting the following messages c:/ruby/lib/ruby/site\_ruby/1.8…

---

## [Buen libro de ruby](https://www.ruby-forum.com/t/buen-libro-de-ruby/155500)

<div class="topic-metadata">

**Author:** [@aprendiz\_ror](https://www.ruby-forum.com/u/aprendiz_ror)\
**Replies:** 5\
**Last updated:** [January 14, 2009, 11:09pm UTC](https://www.ruby-forum.com/t/buen-libro-de-ruby/155500 "2009-01-14T23:09:15Z")

</div>

buenas que buen libro de ruby me aconsejan comprar? cuanto demora en llegar si estoy en colombia? saludos

---

## [Very odd NoMethodError/stack overflow](https://www.ruby-forum.com/t/very-odd-nomethoderror-stack-overflow/156792)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [January 4, 2009, 1:36am UTC](https://www.ruby-forum.com/t/very-odd-nomethoderror-stack-overflow/156792 "2009-01-04T01:36:24Z")

</div>

I’m getting this very weird error and I can’t figure out what the problem is. I’m using acts\_as\_commentable. Basically, I have a partial with this code in it: \<%= link\_to comment.user.login, profile\_path(User.…

---

## [RAWR can't find jruby\_fetch](https://www.ruby-forum.com/t/rawr-cant-find-jruby-fetch/155986)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 5\
**Last updated:** [December 19, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/rawr-cant-find-jruby-fetch/155986 "2008-12-19T20:25:08Z")

</div>

Hi people! I am trying to use RAWR to package a netbeans/monkeybars project, but am running into some bugs. First (on version 1.1.1) I was getting: undefined local variable or method \`processed\_file’ for main:Object …

---

## [Strange (for me) Scaffold source code generated](https://www.ruby-forum.com/t/strange-for-me-scaffold-source-code-generated/154097)

<div class="topic-metadata">

**Author:** [@jujuju](https://www.ruby-forum.com/u/jujuju)\
**Replies:** 5\
**Last updated:** [November 25, 2008, 2:27pm UTC](https://www.ruby-forum.com/t/strange-for-me-scaffold-source-code-generated/154097 "2008-11-25T14:27:08Z")

</div>

Hello :slight\_smile: I generated model, view and controler for products database table using scaffold I try to change controler name from product to admin but I can’t :frowning: (I didn’t know how to specifi diferent…

---

## [Strange issue with jruby rack & rails production settings](https://www.ruby-forum.com/t/strange-issue-with-jruby-rack-rails-production-settings/143351)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 5\
**Last updated:** [July 17, 2008, 8:57pm UTC](https://www.ruby-forum.com/t/strange-issue-with-jruby-rack-rails-production-settings/143351 "2008-07-17T20:57:50Z")

</div>

I need to do more sleuthing on this, but for some reason when I set our app to run in production mode in rails I’m getting this error (see below). Running in development mode is fine. The file its complaining about is…

---

## [MutableString.each](https://www.ruby-forum.com/t/mutablestring-each/141715)

<div class="topic-metadata">

**Author:** [@Dave\_Remy](https://www.ruby-forum.com/u/Dave_Remy)\
**Replies:** 5\
**Last updated:** [June 30, 2008, 10:13pm UTC](https://www.ruby-forum.com/t/mutablestring-each/141715 "2008-06-30T22:13:52Z")

</div>

I am working on one of the specs for string.each which is failing. This is the spec that is failing. it “raises a RuntimeError if the string is modified while substituting” do str = “hello\\nworld” should\_raise(Runti…

---

## [Ignoring columns?](https://www.ruby-forum.com/t/ignoring-columns/141104)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 5\
**Last updated:** [June 22, 2008, 9:11pm UTC](https://www.ruby-forum.com/t/ignoring-columns/141104 "2008-06-22T21:11:43Z")

</div>

Hi all, Is there any way to specify that AR ignore certain columns? I have a project where I have to connect to a legacy DB where I have a very wide read only table (actually a view, but the result is the same). The …

---

## [Ruby math parenthesis wierdness](https://www.ruby-forum.com/t/ruby-math-parenthesis-wierdness/138609)

<div class="topic-metadata">

**Author:** [@Tom\_Verbeure](https://www.ruby-forum.com/u/Tom_Verbeure)\
**Replies:** 5\
**Last updated:** [May 26, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/ruby-math-parenthesis-wierdness/138609 "2008-05-26T14:48:18Z")

</div>

All, The code below: m = 5\*( (1.0) - (1.0/2.0) ) puts m m = 5\*( (1.0) - (1.0/2.0) ) puts m prints out: bash-3.2$ ./run.rb -2.5 2.5 The second result is what I expect, but I don’t understand the first resu…

---

## [Printing the contents of variables to the screen legibly](https://www.ruby-forum.com/t/printing-the-contents-of-variables-to-the-screen-legibly/138184)

<div class="topic-metadata">

**Author:** [@validkeys](https://www.ruby-forum.com/u/validkeys)\
**Replies:** 5\
**Last updated:** [May 21, 2008, 12:32am UTC](https://www.ruby-forum.com/t/printing-the-contents-of-variables-to-the-screen-legibly/138184 "2008-05-21T00:32:47Z")

</div>

Hi there, I am a recent convert from PHP, specifically CakePHP. When I would run a query in CakePHP and read that query into an array, I could run a function debug() on that array and it would print all of the content…

---

## [Rake db:create fails and every other rake task](https://www.ruby-forum.com/t/rake-db-create-fails-and-every-other-rake-task/127700)

<div class="topic-metadata">

**Author:** [@kaizerkaizer](https://www.ruby-forum.com/u/kaizerkaizer)\
**Replies:** 5\
**Last updated:** [February 1, 2008, 10:55am UTC](https://www.ruby-forum.com/t/rake-db-create-fails-and-every-other-rake-task/127700 "2008-02-01T10:55:17Z")

</div>

Okay, I’m trying really hard to get this to work. And it has worked before. I have added tables to my database before but now it suddenly doesn’t "know how to build task ‘db:create’, ‘db:drop’ or even ‘db:reset’. I’v…

---

## [\[RADIANT\] aggiungere attributi alle pagine e/o ordinarle esplicitamente](https://www.ruby-forum.com/t/radiant-aggiungere-attributi-alle-pagine-e-o-ordinarle-esplicitamente/115921)

<div class="topic-metadata">

**Author:** [@gabriele\_renzi](https://www.ruby-forum.com/u/gabriele_renzi)\
**Replies:** 5\
**Last updated:** [October 1, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/radiant-aggiungere-attributi-alle-pagine-e-o-ordinarle-esplicitamente/115921 "2007-10-01T14:35:40Z")

</div>

ciao gente, sto trafficando con radiant, che per quanto mi sembri penosamente lento fa quello che deve fare, ovvero pubblicare paginette. Devo creare una pagina stile Indice (Table of Contents) e uso uno spezzone co…

---

## [Due domande sugli array](https://www.ruby-forum.com/t/due-domande-sugli-array/105280)

<div class="topic-metadata">

**Author:** [@mentat](https://www.ruby-forum.com/u/mentat)\
**Replies:** 5\
**Last updated:** [May 28, 2007, 11:38am UTC](https://www.ruby-forum.com/t/due-domande-sugli-array/105280 "2007-05-28T11:38:52Z")

</div>

Vi vorrei sottoporre due domande su due problemi che mi sono capitati studiando Ruby.Nelle risposte considerate che sono all’inizio. 8\>) I domanda: Questo e’ il codice che ho scritto Creaziane dell array a=%w{ pippo g…

---

## [Ruby on Rails site with 10 million users?](https://www.ruby-forum.com/t/ruby-on-rails-site-with-10-million-users/91625)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [April 10, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-site-with-10-million-users/91625 "2007-04-10T23:52:25Z")

</div>

How big could a Ruby on Rails site scale interests me. Take 37signals who have just over 1 million users. Amazing products but not mass market like myspace or youtube… If someone released a site that got huge traffic …

---

## [RDOC: several related modules in several C files](https://www.ruby-forum.com/t/rdoc-several-related-modules-in-several-c-files/87893)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokSS\_Sh](https://www.ruby-forum.com/u/Victor_SZverokSS_Sh)\
**Replies:** 5\
**Last updated:** [March 16, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/rdoc-several-related-modules-in-several-c-files/87893 "2007-03-16T17:11:52Z")

</div>

Hi all! I have a pretty large extension I want to document with RDoc. The problem is, I have several files: htmr\_main.cpp: … rb\_mHtmr = rb\_define\_module(“Htmr”); … htmr\_constants.cpp: … rb\_mHtmrConstants = rb\_def…

---

## [Info generali su ruby](https://www.ruby-forum.com/t/info-generali-su-ruby/87715)

<div class="topic-metadata">

**Author:** [@Il\_Ramingo](https://www.ruby-forum.com/u/Il_Ramingo)\
**Replies:** 5\
**Last updated:** [March 7, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/info-generali-su-ruby/87715 "2007-03-07T23:55:22Z")

</div>

Salve a tutti, sono un neo appassionato di ruby, a dire il vero o iniziato in questi giorni lo studio di questo linguaggio cosi tanto declamato dai suoi sostenitori e lo conosco ben poco. L’obbiettivo principale per …

---

## [Ignite Seattle geek nights](https://www.ruby-forum.com/t/ignite-seattle-geek-nights/83717)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 5\
**Last updated:** [January 29, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/ignite-seattle-geek-nights/83717 "2007-01-29T14:01:00Z")

</div>

Hi, I don’t see any Seattle.rb folks in the lightning talk line ups… Speaker Schedule for Ask Later – Ignite Seattle What’s up? Later,

---

## [System() on windows](https://www.ruby-forum.com/t/system-on-windows/98570)

<div class="topic-metadata">

**Author:** [@brad7a0](https://www.ruby-forum.com/u/brad7a0)\
**Replies:** 5\
**Last updated:** [July 16, 2006, 10:32am UTC](https://www.ruby-forum.com/t/system-on-windows/98570 "2006-07-16T10:32:12Z")

</div>

I want to capture the string that system(“hostname”) produces on windows and store it in a variable. system() returns true or false. How can I make it return the result (the hostname as a string) instead?

---

## [What IDE for Rails on OSX?](https://www.ruby-forum.com/t/what-ide-for-rails-on-osx/56614)

<div class="topic-metadata">

**Author:** [@larrywright](https://www.ruby-forum.com/u/larrywright)\
**Replies:** 5\
**Last updated:** [April 1, 2006, 10:39pm UTC](https://www.ruby-forum.com/t/what-ide-for-rails-on-osx/56614 "2006-04-01T22:39:26Z")

</div>

Hi, I’m using TextMate for rails development on OSX, but have reached a point where I need to run in a debugger and be able to step through the code as it executes. I have previously used the Eclipse Ruby plug in a…

---

## [How to provide 2 actions to a form?](https://www.ruby-forum.com/t/how-to-provide-2-actions-to-a-form/81659)

<div class="topic-metadata">

**Author:** [@tiwaripk](https://www.ruby-forum.com/u/tiwaripk)\
**Replies:** 5\
**Last updated:** [March 14, 2006, 2:39pm UTC](https://www.ruby-forum.com/t/how-to-provide-2-actions-to-a-form/81659 "2006-03-14T14:39:21Z")

</div>

Hi, I have a form in rhtml. Now I have 2 buttons indside that form. Clicking on the first button action will be ‘create’ & on second button action will be ‘delete’. How to do this? Thanx Prash

---

## [Rand() order and Pagination](https://www.ruby-forum.com/t/rand-order-and-pagination/49099)

<div class="topic-metadata">

**Author:** [@steve.odom](https://www.ruby-forum.com/u/steve.odom)\
**Replies:** 5\
**Last updated:** [December 1, 2005, 4:49pm UTC](https://www.ruby-forum.com/t/rand-order-and-pagination/49099 "2005-12-01T16:49:57Z")

</div>

I’m stumped with how to combine pagination and a rand order\_by from my model. Let’s say I am a teacher and have a table full of test questions. I want to return a query of 20 questions and use the paginator to return…

---

## [Help with Ruby on Rails](https://www.ruby-forum.com/t/help-with-ruby-on-rails/227848)

<div class="topic-metadata">

**Author:** [@Anwaar\_A](https://www.ruby-forum.com/u/Anwaar_A)\
**Replies:** 6\
**Last updated:** [April 1, 2013, 4:10pm UTC](https://www.ruby-forum.com/t/help-with-ruby-on-rails/227848 "2013-04-01T16:10:12Z")

</div>

Hello… Can anyone help me in make a KIckstarter-like site with Ruby on Rails? IF anyone helps me… I would be really happy… Anwaar

---

## [Noob question regarding custom method](https://www.ruby-forum.com/t/noob-question-regarding-custom-method/213851)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [December 29, 2011, 11:43am UTC](https://www.ruby-forum.com/t/noob-question-regarding-custom-method/213851 "2011-12-29T11:43:01Z")

</div>

Hello, I am still learning ruby. My question is, often we see things like this: def set\_miles(miles) @miles = miles end Here, we’re defining a custom method set\_miles , then passing it an argument (what’s the reaso…

---

## [If statements and case statements questions](https://www.ruby-forum.com/t/if-statements-and-case-statements-questions/191356)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 6\
**Last updated:** [July 10, 2010, 6:08pm UTC](https://www.ruby-forum.com/t/if-statements-and-case-statements-questions/191356 "2010-07-10T18:08:54Z")

</div>

I am fairly new to Ruby and programming and had a couple questions about if/else and case statements. I was wondering if there were benefits to using case statements instead of if/elsif/else type statements. Are cas…

---

## [Re: access to java class objects](https://www.ruby-forum.com/t/re-access-to-java-class-objects/185279)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 6\
**Last updated:** [March 17, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/re-access-to-java-class-objects/185279 "2010-03-17T22:23:50Z")

</div>

Hi Jan, I would just do this: Clazz = javax.swing.JLabel Is this what you would like to do? Cheers Michael On Mi 17/03/10 12:20 , Jan H. removed\_email\_address@domain.invalid wrote: =\> Class does not work as expe…

---

## [Upcoming changes in the development trunk](https://www.ruby-forum.com/t/upcoming-changes-in-the-development-trunk/168938)

<div class="topic-metadata">

**Author:** [@jconley](https://www.ruby-forum.com/u/jconley)\
**Replies:** 6\
**Last updated:** [July 9, 2009, 5:24am UTC](https://www.ruby-forum.com/t/upcoming-changes-in-the-development-trunk/168938 "2009-07-09T05:24:45Z")

</div>

Now that we have a new stable release series, I want to alert developers to some upcoming changes in the GNU Radio trunk which will impact your software, requiring changes on your part in order to continue to compile …

---

## [Problem when trying to freeze gem (XP user)](https://www.ruby-forum.com/t/problem-when-trying-to-freeze-gem-xp-user/163132)

<div class="topic-metadata">

**Author:** [@sultan](https://www.ruby-forum.com/u/sultan)\
**Replies:** 6\
**Last updated:** [March 18, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/problem-when-trying-to-freeze-gem-xp-user/163132 "2009-03-18T19:35:26Z")

</div>

I am on XP. This is the first time I am trying to freeze to a gem. This is what I get: rake rails:freeze:gems --trace (in C:/Documents and Settings/Sultan/My Documents/Aptana Studio/ upload) \*\* Invoke rails:freeze:g…

---

## [Stupid Question - Need to get a field from table](https://www.ruby-forum.com/t/stupid-question-need-to-get-a-field-from-table/161604)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 6\
**Last updated:** [February 27, 2009, 8:47pm UTC](https://www.ruby-forum.com/t/stupid-question-need-to-get-a-field-from-table/161604 "2009-02-27T20:47:08Z")

</div>

Hi all, I’m ashamed to ask this but I can’t figure it out. Lately my brain gets more burned out by the minute. Basically I’m trying to have a shirt have up to 2 colors. I currently have this working. When I edit a shi…

---

## [\[Bug:1.9\] lack consistency in hash iteration](https://www.ruby-forum.com/t/bug-1-9-lack-consistency-in-hash-iteration/159458)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 6\
**Last updated:** [February 6, 2009, 4:57pm UTC](https://www.ruby-forum.com/t/bug-1-9-lack-consistency-in-hash-iteration/159458 "2009-02-06T16:57:23Z")

</div>

e$B1sF#$G$9!#e(B \[ruby-core:21812\] e$B$GD4$Y$F$$$F5$$,IU$$$?$3$H$G$9$,!"e(B $ ./ruby -e ‘h = {0 =\> nil}; i = 1; h.each\_key { h\[i\] = nil; i += 1 }’ e$B$ODd;\_$7!"e(B $ ./ruby -e ‘h = {0 =\> nil, 1 =\> nil}; i = 2; h.each…

---

## [Adding conditions (if-else) to RJS template](https://www.ruby-forum.com/t/adding-conditions-if-else-to-rjs-template/158089)

<div class="topic-metadata">

**Author:** [@gte351s](https://www.ruby-forum.com/u/gte351s)\
**Replies:** 6\
**Last updated:** [January 19, 2009, 1:32pm UTC](https://www.ruby-forum.com/t/adding-conditions-if-else-to-rjs-template/158089 "2009-01-19T13:32:26Z")

</div>

I tried following Ryan B.’ railscast on rjs tips (#45 RJS Tips - RailsCasts) and apply his method of using if-else inside the rjs template, but can’t seem to get it to work. Basically, I’m trying to toggle the text on…

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

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