# Top

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

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

---

## [Multi Model Forms and Validations](https://www.ruby-forum.com/t/multi-model-forms-and-validations/164913)

<div class="topic-metadata">

**Author:** [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Replies:** 4\
**Last updated:** [April 9, 2009, 12:36am UTC](https://www.ruby-forum.com/t/multi-model-forms-and-validations/164913 "2009-04-09T00:36:44Z")

</div>

Jim N.'s walkthru (http://jimneath.org/2008/09/06/multi-model-forms- validations-in-ruby-on-rails/) talks about validating multiple objects before saving. His example is below: if @person.valid? & @cat.valid? & @dog.…

---

## [Restful design is a headache?](https://www.ruby-forum.com/t/restful-design-is-a-headache/165023)

<div class="topic-metadata">

**Author:** [@stevedogers](https://www.ruby-forum.com/u/stevedogers)\
**Replies:** 4\
**Last updated:** [April 8, 2009, 9:08pm UTC](https://www.ruby-forum.com/t/restful-design-is-a-headache/165023 "2009-04-08T21:08:05Z")

</div>

Hi, So i really, really want to do restful rails. I’ve got the Peepcode screencast, read the tutorials, etc. BUT - I still don’t get it. The problem is, tutorials only cover the basic stuff, and none of the applicat…

---

## [Need help with rewrite rule](https://www.ruby-forum.com/t/need-help-with-rewrite-rule/161291)

<div class="topic-metadata">

**Author:** [@Chris\_Cortese](https://www.ruby-forum.com/u/Chris_Cortese)\
**Replies:** 4\
**Last updated:** [February 25, 2009, 3:37pm UTC](https://www.ruby-forum.com/t/need-help-with-rewrite-rule/161291 "2009-02-25T15:37:17Z")

</div>

In Apache, I use the following rule. It runs the combinator script, which serializes, minimizes, and gzips a list of javascript files: RewriteRule ^/javascript/(.\*.js) /combine.php?type=javascript&files=$1 In nginx, …

---

## [Rawr / compliance level](https://www.ruby-forum.com/t/rawr-compliance-level/161170)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 4\
**Last updated:** [February 25, 2009, 3:11am UTC](https://www.ruby-forum.com/t/rawr-compliance-level/161170 "2009-02-25T03:11:04Z")

</div>

i am trying to compile my jruby script (and hopefully hpricot gem) with RAWR, however getting the following error. Any ideas here ? Compliance level ‘1.4’ is incompatible with target level ‘1.5’. A compliance level ‘…

---

## [\[Feature #1159\] StringScanner $B$KJ8;z%Y!\<%9$G$N%$%s%G%C%/%9$rJV$9%a%=%C%I$,$\[$7$$(B](https://www.ruby-forum.com/t/feature-1159-stringscanner-b-kj8-z-y-9-g-n-s-g-c-9-rjv-9-a-c-i-7-b/160314)

<div class="topic-metadata">

**Author:** [@Akira\_M](https://www.ruby-forum.com/u/Akira_M)\
**Replies:** 4\
**Last updated:** [February 14, 2009, 6:54pm UTC](https://www.ruby-forum.com/t/feature-1159-stringscanner-b-kj8-z-y-9-g-n-s-g-c-9-rjv-9-a-c-i-7-b/160314 "2009-02-14T18:54:15Z")

</div>

Feature #1159: StringScanner e$B$KJ8;z%Y!\<%9$G$N%$%s%G%C%/%9$rJV$9%a%=%C%I$,$\[$7$$e(B http://redmine.ruby-lang.org/issues/show/1159 e$B5/I\<\<Te(B: Akira M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B:…

---

## [Error handling in Ruby scripts](https://www.ruby-forum.com/t/error-handling-in-ruby-scripts/160197)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 4\
**Last updated:** [February 13, 2009, 1:32pm UTC](https://www.ruby-forum.com/t/error-handling-in-ruby-scripts/160197 "2009-02-13T13:32:08Z")

</div>

Hi, Can someone please help me with exception handling? I’ve written some classes and scripts that I’ve used for a year or two. But now, I’m having to use them with many thousands of files at once, and, even though t…

---

## [Beginners question regarding scaffold setup](https://www.ruby-forum.com/t/beginners-question-regarding-scaffold-setup/130741)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 4\
**Last updated:** [October 31, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/beginners-question-regarding-scaffold-setup/130741 "2008-10-31T17:48:01Z")

</div>

Hi, I’m trying to build my first rails app but I’m a little confused. From reading various bits of documentation, I was led to believe that the url the user types would mirror the controller/action setup. For example…

---

## [Attachement\_fu : resize\_to's not working](https://www.ruby-forum.com/t/attachement-fu-resize-tos-not-working/147338)

<div class="topic-metadata">

**Author:** [@bbnnt](https://www.ruby-forum.com/u/bbnnt)\
**Replies:** 4\
**Last updated:** [September 1, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/attachement-fu-resize-tos-not-working/147338 "2008-09-01T18:22:26Z")

</div>

with the following asset.rb model : has\_attachment :content\_type =\> :image, :storage =\> :file\_system, :processor =\> ‘Rmagick’, :path\_prefix =\> ‘/public/assets/’, :size =\> 0.kilobytes…100000.kilobytes, :max\_size =\> …

---

## [Act as Taggable with Rails 2.0](https://www.ruby-forum.com/t/act-as-taggable-with-rails-2-0/142869)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 4\
**Last updated:** [July 12, 2008, 10:03pm UTC](https://www.ruby-forum.com/t/act-as-taggable-with-rails-2-0/142869 "2008-07-12T22:03:07Z")

</div>

I’ve posted a different question just before – but before I can try and get a better idea of my error message, I was trying to start my application and ran into other problems. My application was developed last year i…

---

## [Patch to gcell fft](https://www.ruby-forum.com/t/patch-to-gcell-fft/142630)

<div class="topic-metadata">

**Author:** [@valdar](https://www.ruby-forum.com/u/valdar)\
**Replies:** 4\
**Last updated:** [July 10, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/patch-to-gcell-fft/142630 "2008-07-10T22:05:57Z")

</div>

Here is a patch to add windowing to gcell/src/lib/wrapper/spu/gcs\_fft\_1d\_r2.c , seems quick and snappy: 24a25 #include \<spu\_intrinsics.h\> 50a52 52,53c54,69 \< // FIXME pointwise multiply in \*= window \< a…

---

## [Something straange with cgi](https://www.ruby-forum.com/t/something-straange-with-cgi/136492)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 4\
**Last updated:** [May 3, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/something-straange-with-cgi/136492 "2008-05-03T18:20:59Z")

</div>

i have a cgi reading a post cgi\[‘search’\] the value is the name of file which might exists under “/path/to” because i’m a newbie with cgi, i want to print only if the file exist or not : file="/Users/yt/man/#{cgi\[‘se…

---

## [Accessing database in another rails app](https://www.ruby-forum.com/t/accessing-database-in-another-rails-app/134921)

<div class="topic-metadata">

**Author:** [@Mongdar](https://www.ruby-forum.com/u/Mongdar)\
**Replies:** 4\
**Last updated:** [April 18, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/accessing-database-in-another-rails-app/134921 "2008-04-18T16:47:43Z")

</div>

Hi Rails Guru, I am using mephisto blogging system and I need it to access “users” table of another rails app. Any idea how I can have one rails app access another rails app’s database?? Note that both rails app have …

---

## [Change usage of pp in Test::Unit assertions](https://www.ruby-forum.com/t/change-usage-of-pp-in-test-unit-assertions/134630)

<div class="topic-metadata">

**Author:** [@mman](https://www.ruby-forum.com/u/mman)\
**Replies:** 4\
**Last updated:** [April 15, 2008, 11:17am UTC](https://www.ruby-forum.com/t/change-usage-of-pp-in-test-unit-assertions/134630 "2008-04-15T11:17:10Z")

</div>

Hi all. I have some Test::Unit testcases that deal with Date and DateTime. If, for whatever reason, I have a failing assert\_equal on either Date or DateTime, the resulting message is quite difficult to read: the reaso…

---

## [\[Stories\]Troubles with GivenScenario](https://www.ruby-forum.com/t/stories-troubles-with-givenscenario/132855)

<div class="topic-metadata">

**Author:** [@bastien-vaucher](https://www.ruby-forum.com/u/bastien-vaucher)\
**Replies:** 4\
**Last updated:** [March 25, 2008, 1:02pm UTC](https://www.ruby-forum.com/t/stories-troubles-with-givenscenario/132855 "2008-03-25T13:02:20Z")

</div>

I have some problems with GivenScenario, my scenario keeps on failing when I use GivenScenario, like if the database or the session was not in the same state at the beginning of the new scenario as it was at the end o…

---

## [Blank ireports from jasper](https://www.ruby-forum.com/t/blank-ireports-from-jasper/131038)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 4\
**Last updated:** [March 6, 2008, 7:08am UTC](https://www.ruby-forum.com/t/blank-ireports-from-jasper/131038 "2008-03-06T07:08:07Z")

</div>

hi all i have successfully integrated jasper with my application but the problem is that when i m generating reports thru it…its giving me a blank rtf file… if i write a xml file its giving me the xml data but the co…

---

## [Auto\_complete\_field and ENTER](https://www.ruby-forum.com/t/auto-complete-field-and-enter/127285)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 4\
**Last updated:** [January 27, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/auto-complete-field-and-enter/127285 "2008-01-27T21:35:10Z")

</div>

I use auto-complete to help with tag entry and a few other areas. Some example code is: Tags (ex: “sales compliance”, marketing, fast)\</ label\> \<%= form.text\_field :tag\_list, :maxlength =\> 255, :id =\> ‘f\_r\_tags’, :…

---

## [About rb2js converter](https://www.ruby-forum.com/t/about-rb2js-converter/125139)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 4\
**Last updated:** [January 6, 2008, 12:43pm UTC](https://www.ruby-forum.com/t/about-rb2js-converter/125139 "2008-01-06T12:43:34Z")

</div>

Hi all, I would like to use rb2js converter but when I enter the command: $ ruby /Users/cyril/Downloads/Ruby2JS/test.rb I’ve got this error: /Library/Ruby/Site/1.8/rubygems/custom\_require.rb:27:in gem\_original\_requi…

---

## [New Radiant sites](https://www.ruby-forum.com/t/new-radiant-sites/115688)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [September 30, 2007, 7:49pm UTC](https://www.ruby-forum.com/t/new-radiant-sites/115688 "2007-09-30T19:49:30Z")

</div>

Hi all, Just thought I’d announce two new Radiant sites to the list: www.grooveonline.co.uk www.timber-build.com I’d love to hear some comments from anyone? Thanks to the wonders of Radiant they were both pretty pai…

---

## [Looking for solid code base to learn from](https://www.ruby-forum.com/t/looking-for-solid-code-base-to-learn-from/105249)

<div class="topic-metadata">

**Author:** [@longint](https://www.ruby-forum.com/u/longint)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/looking-for-solid-code-base-to-learn-from/105249 "2007-09-25T23:03:08Z")

</div>

I’ve worked through most of the Agile book and while the depot application is nice, I could use more of a code base. Does anyone have suggestions for a nice open source project with solid code? Right now I’m looking …

---

## [Any programmer can answer this in 2 sec, but I'm stumped](https://www.ruby-forum.com/t/any-programmer-can-answer-this-in-2-sec-but-im-stumped/110397)

<div class="topic-metadata">

**Author:** [@gavin](https://www.ruby-forum.com/u/gavin)\
**Replies:** 4\
**Last updated:** [July 26, 2007, 2:49am UTC](https://www.ruby-forum.com/t/any-programmer-can-answer-this-in-2-sec-but-im-stumped/110397 "2007-07-26T02:49:38Z")

</div>

I’ve just started working with Rails. And I can’t figure out what seems to be the easiest thing imaginable. I need to send @ferry.id from a view in ferry\_controller… \<%= link\_to ‘Add new schedule’, {:controller =\> ‘s…

---

## [Math Time!](https://www.ruby-forum.com/t/math-time/103123)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 4\
**Last updated:** [May 2, 2007, 4:29am UTC](https://www.ruby-forum.com/t/math-time/103123 "2007-05-02T04:29:24Z")

</div>

Alright everybody! Math time! So today I tried to write a program which would print out, say, 1000 digits of pi. I figured I’d do this by assigning a… variable… to be a bignum… crap, Ruby is duck typing! I mean, yay? …

---

## [Editing on the command line](https://www.ruby-forum.com/t/editing-on-the-command-line/92067)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [April 15, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/editing-on-the-command-line/92067 "2007-04-15T20:39:47Z")

</div>

I want to output some text to the the terminal and allow the user to edit it. Like the ability you get when using irb and go back in the history. Basically a readline but the outputted text would be editable instead…

---

## [Ruby hash equlity](https://www.ruby-forum.com/t/ruby-hash-equlity/84970)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [February 9, 2007, 2:25pm UTC](https://www.ruby-forum.com/t/ruby-hash-equlity/84970 "2007-02-09T14:25:36Z")

</div>

Based on the description of Hash#== " Equality—Two hashes are equal if they each contain the same number of keys and if each key-value pair is equal to (according to +Object#==+) the corresponding elements in the othe…

---

## [Form\_remote\_tag - redirect\_to working very weirdly](https://www.ruby-forum.com/t/form-remote-tag-redirect-to-working-very-weirdly/83593)

<div class="topic-metadata">

**Author:** [@darrenevans](https://www.ruby-forum.com/u/darrenevans)\
**Replies:** 4\
**Last updated:** [January 28, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/form-remote-tag-redirect-to-working-very-weirdly/83593 "2007-01-28T16:26:52Z")

</div>

Hi I am probably doing something stupid, but I have something really weird going on. I am using form\_remote\_tag (in a page called form), my code essentially goes: form\_remote\_tag My code end\_form\_tag Then in the c…

---

## [Problem moving from RedCloth 3.0.3 to 3.0.4](https://www.ruby-forum.com/t/problem-moving-from-redcloth-3-0-3-to-3-0-4/80398)

<div class="topic-metadata">

**Author:** [@mickey](https://www.ruby-forum.com/u/mickey)\
**Replies:** 4\
**Last updated:** [December 26, 2006, 1:20am UTC](https://www.ruby-forum.com/t/problem-moving-from-redcloth-3-0-3-to-3-0-4/80398 "2006-12-26T01:20:52Z")

</div>

Hey all: I’ve moved my application from my own computer to a Textdrive server, and in the process, switched from using RedCloth 3.0.3 to 3.0.4. Unfortunately, either the Redcloth version switch or the server switch h…

---

## [Weird error while reading binary files](https://www.ruby-forum.com/t/weird-error-while-reading-binary-files/80203)

<div class="topic-metadata">

**Author:** [@kishi](https://www.ruby-forum.com/u/kishi)\
**Replies:** 4\
**Last updated:** [December 22, 2006, 4:28am UTC](https://www.ruby-forum.com/t/weird-error-while-reading-binary-files/80203 "2006-12-22T04:28:10Z")

</div>

Hello everyone! I just started messing around with Ruby and so far it’s been great. Somehow I’ve stepped into some weird error I can’t understand nor solve it… I’ve been trying to google about it but with no results… …

---

## [Test::Unit need help with assert](https://www.ruby-forum.com/t/test-unit-need-help-with-assert/73772)

<div class="topic-metadata">

**Author:** [@quicksort](https://www.ruby-forum.com/u/quicksort)\
**Replies:** 4\
**Last updated:** [October 27, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/test-unit-need-help-with-assert/73772 "2006-10-27T18:17:43Z")

</div>

Hi, I’m new to Ruby but have has some success bending it to my will. I am using the Test::Unit framework but it doesn’t quite fit my needs. I need to report the number of asserts() that pass and the number that fail. …

---

## [How to hide non permited actions?](https://www.ruby-forum.com/t/how-to-hide-non-permited-actions/73621)

<div class="topic-metadata">

**Author:** [@ana](https://www.ruby-forum.com/u/ana)\
**Replies:** 4\
**Last updated:** [October 25, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/how-to-hide-non-permited-actions/73621 "2006-10-25T19:58:23Z")

</div>

Im showing in the view a menu with just the options to certain user, ie: \<% if user = “admin” %\> \<a href"/action/addcontent"\>Add content \<% end %\> and that works but if the user goes and directly writes in the addres…

---

## [Non-directory, non-file "files"](https://www.ruby-forum.com/t/non-directory-non-file-files/72895)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 4\
**Last updated:** [October 20, 2006, 12:01am UTC](https://www.ruby-forum.com/t/non-directory-non-file-files/72895 "2006-10-20T00:01:53Z")

</div>

If they’re not directories, and they’re not files, then what the heck are they? C:\\Documents and Settings\\gavin.kistner\>ruby -rfind -e “Find.find(’.’){|x| p(x) unless File.directory?(x) or File.file?(x) }” “./Local S…

---

## [Rails isn't DRY?](https://www.ruby-forum.com/t/rails-isnt-dry/70582)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [September 30, 2006, 3:54pm UTC](https://www.ruby-forum.com/t/rails-isnt-dry/70582 "2006-09-30T15:54:27Z")

</div>

Hi all I’m just exploring a bit the source code of Rails, and I looked at the methods validates\_exclusion\_of validates\_inclusion\_of The source code of both them is up to 99% exactly the same: # File vendor/rails/a…

---

## [Buongiorno!](https://www.ruby-forum.com/t/buongiorno/65138)

<div class="topic-metadata">

**Author:** [@Gioacchino\_P](https://www.ruby-forum.com/u/Gioacchino_P)\
**Replies:** 4\
**Last updated:** [August 16, 2006, 2:50pm UTC](https://www.ruby-forum.com/t/buongiorno/65138 "2006-08-16T14:50:09Z")

</div>

Buongiorno a tutti , sono nuovo di qui … ed essendo in ‘pausa’ ho avuto desiderio di conoscere questo benedetto Ruby di cui molti mi hanno parlato … sono ai primi passi, ma non sono nuovo in programmazione, da C a ASP…

---

## [Newby question: Is += atomic for integers?](https://www.ruby-forum.com/t/newby-question-is-atomic-for-integers/54344)

<div class="topic-metadata">

**Author:** [@rj-cole](https://www.ruby-forum.com/u/rj-cole)\
**Replies:** 4\
**Last updated:** [March 2, 2006, 11:43am UTC](https://www.ruby-forum.com/t/newby-question-is-atomic-for-integers/54344 "2006-03-02T11:43:54Z")

</div>

Hi, Can the following program produce counts that are wrong? class Test attr\_accessor :count def initialize @count = 0 end end $test = Test.new def my\_function\_called\_by\_many\_threads … $test.count += 1 … end …

---

## [Scaffold seems broken on show,edit,delete](https://www.ruby-forum.com/t/scaffold-seems-broken-on-show-edit-delete/51954)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 4\
**Last updated:** [January 9, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/scaffold-seems-broken-on-show-edit-delete/51954 "2006-01-09T22:15:42Z")

</div>

After running generate scaffold and pointing the browser, the data list appears correctly, the create new button works okay, but show, edit, delete give the following error: “Could not find Organization without an ID” …

---

## [Can Apache serve jsp without an app server?](https://www.ruby-forum.com/t/can-apache-serve-jsp-without-an-app-server/54376)

<div class="topic-metadata">

**Author:** [@peter.fitzgibbons](https://www.ruby-forum.com/u/peter.fitzgibbons)\
**Replies:** 4\
**Last updated:** [November 30, 2005, 1:27pm UTC](https://www.ruby-forum.com/t/can-apache-serve-jsp-without-an-app-server/54376 "2005-11-30T13:27:25Z")

</div>

Hello all, I have a legacy web app that I’m replacing in rails. This app is public, so I need to over-ride the exising login.jsp that has other external links and probably many bookmark entries in customer browsers…

---

## [Ruby to shoes](https://www.ruby-forum.com/t/ruby-to-shoes/245173)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [December 12, 2016, 12:40am UTC](https://www.ruby-forum.com/t/ruby-to-shoes/245173 "2016-12-12T00:40:05Z")

</div>

Hello! I am having problems with Shoes (shoesrb.com). I wish to create a frontend for the program attached. I have included a text version here: puts “Diary Generator” puts “Name:” name = gets.chomp puts “Yesterday…

---

## [How to use location before rewrite](https://www.ruby-forum.com/t/how-to-use-location-before-rewrite/237304)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [November 5, 2013, 8:35am UTC](https://www.ruby-forum.com/t/how-to-use-location-before-rewrite/237304 "2013-11-05T08:35:35Z")

</div>

I have a set of rewrite rules as rewrite ^/(.\*) /script.php?file=$1 last; location ~ .php$ { php proxy } but I want to make a few exceptions as location = file1|file2|file3 { static delivery } but rewrite will c…

---

## [Gem install ruby-debug-ide failure](https://www.ruby-forum.com/t/gem-install-ruby-debug-ide-failure/222169)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [August 16, 2012, 1:55am UTC](https://www.ruby-forum.com/t/gem-install-ruby-debug-ide-failure/222169 "2012-08-16T01:55:34Z")

</div>

I’m trying to install the ruby-debug-ide but it is failing. I’ve attached my gem directory. This is an AMD64 machine running Windows 7 Thanks in advance Here’s the debug output: Exception NameError' at C:/Ruby193/li…

---

## [Dynamically changing input index of selector block](https://www.ruby-forum.com/t/dynamically-changing-input-index-of-selector-block/213727)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [November 10, 2011, 4:40am UTC](https://www.ruby-forum.com/t/dynamically-changing-input-index-of-selector-block/213727 "2011-11-10T04:40:43Z")

</div>

I’m trying to dynamically/automatically change the input index of the selector block based on the output of a square wave. Normally one would use a variable block, but I need it to automatically change without a user…

---

## [getResourceAsStream returning null](https://www.ruby-forum.com/t/getresourceasstream-returning-null/212044)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [September 20, 2011, 8:01pm UTC](https://www.ruby-forum.com/t/getresourceasstream-returning-null/212044 "2011-09-20T20:01:34Z")

</div>

Hi, I have a pure Java class that is used by both Java webapps and a JRuby on Rails webapp. Within the class, we call: this.getClass().getClassLoader().getResourceAsStream(propFilePath); This returns a valid input s…

---

## [Model Validation fails (correctly) in rails console but not in rspec](https://www.ruby-forum.com/t/model-validation-fails-correctly-in-rails-console-but-not-in-rspec/208724)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [June 25, 2011, 1:18pm UTC](https://www.ruby-forum.com/t/model-validation-fails-correctly-in-rails-console-but-not-in-rspec/208724 "2011-06-25T13:18:18Z")

</div>

Hi, I have been really stuck on this problem. My validation for my model fails (like it should) when I’m testing it out in rails console, but my rspec example fails because it validates anyway (which it shouldn’t). W…

---

## [Controller testing - it doesn't print if given some print value](https://www.ruby-forum.com/t/controller-testing-it-doesnt-print-if-given-some-print-value/207249)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [May 21, 2011, 1:17pm UTC](https://www.ruby-forum.com/t/controller-testing-it-doesnt-print-if-given-some-print-value/207249 "2011-05-21T13:17:34Z")

</div>

I am working on Rspec2.5.0 with rails 3.0.6 . And I was successfully able to complete model testing. But when I come to controller part I wanted to see whether some variable getting generated & I have given My Control…

---

## [Rake spec fails where rake spec:(models|controllers|views) pass](https://www.ruby-forum.com/t/rake-spec-fails-where-rake-spec-models-controllers-views-pass/206146)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [May 19, 2011, 8:08pm UTC](https://www.ruby-forum.com/t/rake-spec-fails-where-rake-spec-models-controllers-views-pass/206146 "2011-05-19T20:08:22Z")

</div>

I’m still trying to work into Ruby 1.9.2 and am now experiencing something that makes no sense to me. Using rspec 1.3.2 and rspec-rails 1.3.4 with rails 2.3.11 on ruby 1.9.2-p180, when I $ rake spec:models they all p…

---

## [Test Design Question #2](https://www.ruby-forum.com/t/test-design-question-2/205148)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 31, 2011, 10:03am UTC](https://www.ruby-forum.com/t/test-design-question-2/205148 "2011-03-31T10:03:32Z")

</div>

I am designing a test around a class that interacts with TCPSocket - I have used a mock and have asserted as minimal an interface as I can - centered around the IO methods. Should i be using a stub instead and stub on…

---

## [Observe\_filed Rails 3](https://www.ruby-forum.com/t/observe-filed-rails-3/198994)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 7\
**Last updated:** [November 17, 2010, 1:40am UTC](https://www.ruby-forum.com/t/observe-filed-rails-3/198994 "2010-11-17T01:40:43Z")

</div>

I am trying to accomplish an observe\_field in rails 3. In rails 2.3.5 I have :- \<%= observe\_field ‘query’, :frequency =\> 2, :update =\> “search\_results”, :url =\> {:controller =\> params\[:area\], :action =\> “search”,:a…

---

## [Request advice on best/usable field default](https://www.ruby-forum.com/t/request-advice-on-best-usable-field-default/188353)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 7\
**Last updated:** [May 10, 2010, 10:03pm UTC](https://www.ruby-forum.com/t/request-advice-on-best-usable-field-default/188353 "2010-05-10T22:03:58Z")

</div>

Hi all, I am creating a bash.org-like. Basically: just store and retrieve quotes that people enter. I would like the user to have the option of entering a few fields, among which are a date a and location field. What…

---

## [Dynamic Method Calls](https://www.ruby-forum.com/t/dynamic-method-calls/186187)

<div class="topic-metadata">

**Author:** [@mattmcswain](https://www.ruby-forum.com/u/mattmcswain)\
**Replies:** 7\
**Last updated:** [April 2, 2010, 3:58pm UTC](https://www.ruby-forum.com/t/dynamic-method-calls/186187 "2010-04-02T15:58:26Z")

</div>

Right now I have some inefficient code that looks like this… LdapAccount is my model… and record.attributes is a hash of attribute name,value pairs. records.each do |record| LdapAccount.create(:uid =\> record.attribut…

---

## [GNU Radio companion (grc) - converting code into grc files, import new blocks](https://www.ruby-forum.com/t/gnu-radio-companion-grc-converting-code-into-grc-files-import-new-blocks/181100)

<div class="topic-metadata">

**Author:** [@alce](https://www.ruby-forum.com/u/alce)\
**Replies:** 1\
**Last updated:** [January 5, 2010, 6:35pm UTC](https://www.ruby-forum.com/t/gnu-radio-companion-grc-converting-code-into-grc-files-import-new-blocks/181100 "2010-01-05T18:35:45Z")

</div>

Hi all, I’m testing the grc tool and I have some questions about it: Is it possible to get a grc project from the code? I mean, if I create a graphical flow-graph with grc, the program generates a ‘top\_block file’. I…

---

## [Assign actual days to columns in the database](https://www.ruby-forum.com/t/assign-actual-days-to-columns-in-the-database/179662)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 7\
**Last updated:** [December 1, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/assign-actual-days-to-columns-in-the-database/179662 "2009-12-01T17:02:45Z")

</div>

Hi all, I am a newbie and need assistance from someone helpful. I have a database which has 8 columns one of them being id the rest being: bus\_times table: monday tuesday wednesday thursday friday saturday sunda…

---

## [Outils pour faire des tests de charge](https://www.ruby-forum.com/t/outils-pour-faire-des-tests-de-charge/179489)

<div class="topic-metadata">

**Author:** [@tranquiliste](https://www.ruby-forum.com/u/tranquiliste)\
**Replies:** 1\
**Last updated:** [November 26, 2009, 10:01am UTC](https://www.ruby-forum.com/t/outils-pour-faire-des-tests-de-charge/179489 "2009-11-26T10:01:15Z")

</div>

Bonjour, Je voulais savoie quels outils existent pour faire des tests de charge et évaluer le nombre d’utilisateurs possibles dans un configuration donnée? Merci Nicolas

---

## [HttpMock Post Parameters](https://www.ruby-forum.com/t/httpmock-post-parameters/171693)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 21, 2009, 10:36pm UTC](https://www.ruby-forum.com/t/httpmock-post-parameters/171693 "2009-07-21T22:36:12Z")

</div>

Does anyone know how you can specify the body of an HttpMock post as well as the body of the response? I’m trying to test a restful API where the parameters are posted in in the body of the post as XML and the respons…

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

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