# Top

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

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

---

## [Strange document loss](https://www.ruby-forum.com/t/strange-document-loss/108906)

<div class="topic-metadata">

**Author:** [@ahfeel](https://www.ruby-forum.com/u/ahfeel)\
**Replies:** 3\
**Last updated:** [July 9, 2007, 12:11pm UTC](https://www.ruby-forum.com/t/strange-document-loss/108906 "2007-07-09T12:11:45Z")

</div>

Hi all :slight\_smile: I’m experiencing strange document loss with Ferret 0.11.4 / Ruby 1.8.4. The index handles around 3000 documents, and sometimes during a query\_update operation, the delete is done but not the add.…

---

## [Send a 30 Second Clip of an mp3](https://www.ruby-forum.com/t/send-a-30-second-clip-of-an-mp3/97535)

<div class="topic-metadata">

**Author:** [@kortina](https://www.ruby-forum.com/u/kortina)\
**Replies:** 3\
**Last updated:** [February 4, 2007, 6:38am UTC](https://www.ruby-forum.com/t/send-a-30-second-clip-of-an-mp3/97535 "2007-02-04T06:38:52Z")

</div>

On my site I’m allowing users to upload songs in mp3 format. Members can download the full song, but on public pages I would like to use a flash player to play a 30 second clip of the song and/or allow downloading of…

---

## [DRb and ActiveRecord](https://www.ruby-forum.com/t/drb-and-activerecord/97300)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 3\
**Last updated:** [January 25, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/drb-and-activerecord/97300 "2006-01-25T18:33:54Z")

</div>

Friends- I am trying to make a drb server publish an ActiveRecord model so it can be used by remote clients. It looks like I am getting close but no cigar. Can some kind soul enlighten me as to how to make this work?…

---

## [String scan on html](https://www.ruby-forum.com/t/string-scan-on-html/49276)

<div class="topic-metadata">

**Author:** [@bruno.bazzani](https://www.ruby-forum.com/u/bruno.bazzani)\
**Replies:** 3\
**Last updated:** [December 2, 2005, 2:18am UTC](https://www.ruby-forum.com/t/string-scan-on-html/49276 "2005-12-02T02:18:12Z")

</div>

Please consider the following code: require ‘net/http’ Net::HTTP.start(‘weather.gmdss.org’) do |http| response = http.get(‘/III.html’) response.body.scan(/\<a.\*a\>/) {|link| puts “#{link}\\n\\n”} end I expect to have e…

---

## [Nginx-1.10.1](https://www.ruby-forum.com/t/nginx-1-10-1/244712)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 1:13pm UTC](https://www.ruby-forum.com/t/nginx-1-10-1/244712 "2016-06-01T13:13:01Z")

</div>

Changes with nginx 1.10.1 31 May 2016 \*) Security: a segmentation fault might occur in a worker process while writing a specially crafted request body to a temporary file (CVE…

---

## [D3.js, Rails-5 Machine Learning Stock Market App For Your Laptop](https://www.ruby-forum.com/t/d3-js-rails-5-machine-learning-stock-market-app-for-your-laptop/244656)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [May 22, 2016, 2:15am UTC](https://www.ruby-forum.com/t/d3-js-rails-5-machine-learning-stock-market-app-for-your-laptop/244656 "2016-05-22T02:15:30Z")

</div>

D3-Rails-people,I just finished writing spy611.com which is a D3.js-Rails-5-web-app with a Python scikit-learn machine learning back-end.I use D3.js in this page:http://www.spy611.com/aggbtThe above page shows an agg…

---

## [4 random numbers take highest 3 and add them together](https://www.ruby-forum.com/t/4-random-numbers-take-highest-3-and-add-them-together/216423)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [February 5, 2012, 3:37am UTC](https://www.ruby-forum.com/t/4-random-numbers-take-highest-3-and-add-them-together/216423 "2012-02-05T03:37:33Z")

</div>

I want to get 4 random numbers. The numbers will be between 1-6. I want to disregard the smallest number and add the three biggest numbers together. So far I wrote some ruby that I thought would do this but I keep get…

---

## [wxRuby global hotkeys](https://www.ruby-forum.com/t/wxruby-global-hotkeys/204060)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 27, 2011, 1:00am UTC](https://www.ruby-forum.com/t/wxruby-global-hotkeys/204060 "2011-04-27T01:00:02Z")

</div>

Is it possible to assign global hotkeys in wxRuby, I want to show window when user presses key combination? I’ve found that there is a Window#register\_hot\_key method - is this method cross-platform?

---

## [How to call a class from another script?](https://www.ruby-forum.com/t/how-to-call-a-class-from-another-script/203744)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [February 27, 2011, 4:35pm UTC](https://www.ruby-forum.com/t/how-to-call-a-class-from-another-script/203744 "2011-02-27T16:35:50Z")

</div>

How to call a class from another script?

---

## [A few "best practices" questions](https://www.ruby-forum.com/t/a-few-best-practices-questions/201218)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [January 20, 2011, 5:45pm UTC](https://www.ruby-forum.com/t/a-few-best-practices-questions/201218 "2011-01-20T17:45:35Z")

</div>

My app currently is working but I’m a little OCD about conforming to best practices so I’d like to get a few things cleared up. I have quite a lot of before\_filters to restrict certain parts of the site to some users…

---

## [Script working on boot drive, but not external drive with space in the name. Please help!](https://www.ruby-forum.com/t/script-working-on-boot-drive-but-not-external-drive-with-space-in-the-name-please-help/199204)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 7\
**Last updated:** [November 17, 2010, 4:02pm UTC](https://www.ruby-forum.com/t/script-working-on-boot-drive-but-not-external-drive-with-space-in-the-name-please-help/199204 "2010-11-17T16:02:54Z")

</div>

I have three volumes on my computer all with the same identical copy of this script /Volumes/Data Drive /Volumes/Boot Drive /Volumes/Drobo on my boot drive, the script works great on my Drobo, the script also work…

---

## [Unable to upload larger files](https://www.ruby-forum.com/t/unable-to-upload-larger-files/194331)

<div class="topic-metadata">

**Author:** [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Replies:** 7\
**Last updated:** [September 8, 2010, 8:18am UTC](https://www.ruby-forum.com/t/unable-to-upload-larger-files/194331 "2010-09-08T08:18:36Z")

</div>

hii, i am trying to upload some files to filesystem using rails application when i use small size file everything is perfect but i when goes for larger files i got error this is my code #this model file class DataF…

---

## [Php-fpm and chroot on linux](https://www.ruby-forum.com/t/php-fpm-and-chroot-on-linux/192422)

<div class="topic-metadata">

**Author:** [@hibernaculus](https://www.ruby-forum.com/u/hibernaculus)\
**Replies:** 1\
**Last updated:** [July 29, 2010, 11:41pm UTC](https://www.ruby-forum.com/t/php-fpm-and-chroot-on-linux/192422 "2010-07-29T23:41:06Z")

</div>

Hi nginx-en ml. This is not exactly nginx issue, but lets say this is nginx related thing. php-fpm and chroot - It is working for me good, I haven’t tested performance yet but there is two things what I need fix befo…

---

## [Amazon ec2](https://www.ruby-forum.com/t/amazon-ec2/192094)

<div class="topic-metadata">

**Author:** [@Carl\_D](https://www.ruby-forum.com/u/Carl_D)\
**Replies:** 1\
**Last updated:** [July 24, 2010, 11:00am UTC](https://www.ruby-forum.com/t/amazon-ec2/192094 "2010-07-24T11:00:33Z")

</div>

Hi All, How can I resolve http using a Amazon EC2 instance? The instance used the mongrel web server for rails. Do I need to modify a mongrel configuration to use the externally assigned ip? Currently resolves to 0…

---

## [Any idea what can make a usrp stop working?](https://www.ruby-forum.com/t/any-idea-what-can-make-a-usrp-stop-working/172857)

<div class="topic-metadata">

**Author:** [@makki](https://www.ruby-forum.com/u/makki)\
**Replies:** 7\
**Last updated:** [July 29, 2009, 10:10pm UTC](https://www.ruby-forum.com/t/any-idea-what-can-make-a-usrp-stop-working/172857 "2009-07-29T22:10:43Z")

</div>

OSX. I got my USRP up and running, and now it isn’t. In system profile it even detects USRP 4, and when I run a program, the light slows down flashing, but it doesn’t seem to be reading anything. Here is my error mes…

---

## [Rails and Firefox on crack with redirections](https://www.ruby-forum.com/t/rails-and-firefox-on-crack-with-redirections/164711)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 7\
**Last updated:** [April 6, 2009, 2:39pm UTC](https://www.ruby-forum.com/t/rails-and-firefox-on-crack-with-redirections/164711 "2009-04-06T14:39:35Z")

</div>

Hi, Rails and/or Firefox are driving me nuts. I have a products\_controllers with 2 actions: index and show. On the index action a session is set to create an order if user has no order yet. On that index page, user …

---

## [Sub is odd with #](https://www.ruby-forum.com/t/sub-is-odd-with/124566)

<div class="topic-metadata">

**Author:** [@pavel989](https://www.ruby-forum.com/u/pavel989)\
**Replies:** 7\
**Last updated:** [December 30, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/sub-is-odd-with/124566 "2007-12-30T18:18:15Z")

</div>

seems to me as though I’m redundant on this forum… well anyway, doing ‘@@@@’.sub(’@’,’#’) returns ‘/#@@@’ how can I make it so that it doesn’t through in the / ? using 1.9 btw gsub doesn’t do that, but I specifica…

---

## [ActiveRecord: why does 'self.name' and 'name' both work?](https://www.ruby-forum.com/t/activerecord-why-does-self-name-and-name-both-work/108283)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 1\
**Last updated:** [July 1, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/activerecord-why-does-self-name-and-name-both-work/108283 "2007-07-01T18:24:45Z")

</div>

I’m trying to figure out why both ‘self.name’ and ‘name’ work in a model class. For example: class Category \< ActiveRecord::Base before\_save :set\_permalink private def set\_permalink # both work self.permalink = na…

---

## [Substituting variables in a method](https://www.ruby-forum.com/t/substituting-variables-in-a-method/104829)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 7\
**Last updated:** [May 23, 2007, 7:16am UTC](https://www.ruby-forum.com/t/substituting-variables-in-a-method/104829 "2007-05-23T07:16:08Z")

</div>

I am trying to figure out how to pass variables for the parameters to a method. I want to do something like b = a.tr({c}, {d}) where ‘c’ is the text to be matched and ‘d’ is the replacement text. Obviously the above …

---

## [Has\_many - edit the association](https://www.ruby-forum.com/t/has-many-edit-the-association/103979)

<div class="topic-metadata">

**Author:** [@stephanwehner](https://www.ruby-forum.com/u/stephanwehner)\
**Replies:** 7\
**Last updated:** [May 16, 2007, 2:23am UTC](https://www.ruby-forum.com/t/has-many-edit-the-association/103979 "2007-05-16T02:23:09Z")

</div>

I have a has\_and\_belongs\_to\_many relationship, let’s say class Student \< ActiveRecord::Base has\_and\_belongs\_to\_many :courses end class Course \< ActiveRecord::Base has\_and\_belongs\_to\_many :students end Now I have a…

---

## [Extensions registry somewhere?](https://www.ruby-forum.com/t/extensions-registry-somewhere/90325)

<div class="topic-metadata">

**Author:** [@walterdavis](https://www.ruby-forum.com/u/walterdavis)\
**Replies:** 7\
**Last updated:** [March 28, 2007, 7:13pm UTC](https://www.ruby-forum.com/t/extensions-registry-somewhere/90325 "2007-03-28T19:13:00Z")

</div>

Is there a list somewhere of various Mental extensions? I found a few referenced in the blog, but I am hoping there is a Wiki page somewhere that is added to by the contributors as they are made. Thanks in advance, W…

---

## [Handling validation failures on hasmany through records](https://www.ruby-forum.com/t/handling-validation-failures-on-hasmany-through-records/89050)

<div class="topic-metadata">

**Author:** [@Will\_Merrell](https://www.ruby-forum.com/u/Will_Merrell)\
**Replies:** 7\
**Last updated:** [March 19, 2007, 12:12pm UTC](https://www.ruby-forum.com/t/handling-validation-failures-on-hasmany-through-records/89050 "2007-03-19T12:12:11Z")

</div>

Hi all, I am fairly new to Ruby and RoR but am making pretty good progress. But this has me stumped and I wonder if anyone can point me in the right direction. I haven’t been able to find any examples on the web that …

---

## [Ruby-fcgi on Windows](https://www.ruby-forum.com/t/ruby-fcgi-on-windows/81461)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 9, 2007, 6:48am UTC](https://www.ruby-forum.com/t/ruby-fcgi-on-windows/81461 "2007-01-09T06:48:32Z")

</div>

I’m getting ready to deploy a Ruby on Rails application on a Windows server using Apache 2.0 and FastCGI. However, I’m having trouble compiling the ruby-fcgi bindings for Windows. Does anyone know where I can find som…

---

## [App Model "Image" conflicts with RMagick "Image"](https://www.ruby-forum.com/t/app-model-image-conflicts-with-rmagick-image/73841)

<div class="topic-metadata">

**Author:** [@carl](https://www.ruby-forum.com/u/carl)\
**Replies:** 7\
**Last updated:** [October 28, 2006, 2:59am UTC](https://www.ruby-forum.com/t/app-model-image-conflicts-with-rmagick-image/73841 "2006-10-28T02:59:11Z")

</div>

Hello, In the following code from my RoR app: \*\*\*\* Code \*\*\* require ‘RMagick’ include Magick class ThumbnailController \< ApplicationController def thumbnail image = Image.find(params\[:id\]) thumbnail = Magick::Ima…

---

## [Uploading 2+ files simultaneously](https://www.ruby-forum.com/t/uploading-2-files-simultaneously/100364)

<div class="topic-metadata">

**Author:** [@michaelb](https://www.ruby-forum.com/u/michaelb)\
**Replies:** 7\
**Last updated:** [August 17, 2006, 4:49am UTC](https://www.ruby-forum.com/t/uploading-2-files-simultaneously/100364 "2006-08-17T04:49:31Z")

</div>

I’m having trouble uploading 2+ files simultaneously (from different client machines)… the upload page just hangs… I’m running… ruby 1.8.4 (2005-12-24) \[i686-linux\] rails 1.1.4 red hat el 4 apache fcgi (0.8.7, 0.8.6…

---

## [Expiring items](https://www.ruby-forum.com/t/expiring-items/94148)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 7\
**Last updated:** [April 24, 2006, 2:50am UTC](https://www.ruby-forum.com/t/expiring-items/94148 "2006-04-24T02:50:28Z")

</div>

In my database I have a products table that has a bunch of attributes (title, description, etc) including one for date\_expires. Is there a best practices method to get the database to erase the expired items? Is that…

---

## [Proper Database Design For A Newbie](https://www.ruby-forum.com/t/proper-database-design-for-a-newbie/58550)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 7\
**Last updated:** [April 23, 2006, 3:11am UTC](https://www.ruby-forum.com/t/proper-database-design-for-a-newbie/58550 "2006-04-23T03:11:36Z")

</div>

Hi all, I am starting out learning Ruby on Rails (coming from a PHP background) and I have a question about proper database design. Let me give you a quick example of what I want to do: Database: CREATE TABLE users …

---

## [Separation of gui from "real work"](https://www.ruby-forum.com/t/separation-of-gui-from-real-work/57139)

<div class="topic-metadata">

**Author:** [@tashirosgt](https://www.ruby-forum.com/u/tashirosgt)\
**Replies:** 7\
**Last updated:** [April 8, 2006, 1:33am UTC](https://www.ruby-forum.com/t/separation-of-gui-from-real-work/57139 "2006-04-08T01:33:41Z")

</div>

This is not a ruby specific topic but since there were some definite opinions expressed about systems of writing GUIs in a recent thread, let me ask it here. Is there a practical program architecture for separating th…

---

## [Help me (php dev) choose Ruby on Rails. Few questions](https://www.ruby-forum.com/t/help-me-php-dev-choose-ruby-on-rails-few-questions/54521)

<div class="topic-metadata">

**Author:** [@littlebiker](https://www.ruby-forum.com/u/littlebiker)\
**Replies:** 7\
**Last updated:** [March 8, 2006, 7:41am UTC](https://www.ruby-forum.com/t/help-me-php-dev-choose-ruby-on-rails-few-questions/54521 "2006-03-08T07:41:03Z")

</div>

Hi, This is my first post and I have been waiting to try Ruby on Rails since a long time now. I have a few questions that I am looking an answer for: I am intermediate level PHP developer, I have a small project in…

---

## [Editing N instances of a model on one page](https://www.ruby-forum.com/t/editing-n-instances-of-a-model-on-one-page/52567)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 7\
**Last updated:** [January 26, 2006, 5:05pm UTC](https://www.ruby-forum.com/t/editing-n-instances-of-a-model-on-one-page/52567 "2006-01-26T17:05:30Z")

</div>

I have a situation where I want to edit an arbitrary number of instances of one model on one page. I can and have accomplished this by manually managing the object \<-\> text field relationship, but in a way I consider …

---

## [Application Design](https://www.ruby-forum.com/t/application-design/52452)

<div class="topic-metadata">

**Author:** [@jules](https://www.ruby-forum.com/u/jules)\
**Replies:** 7\
**Last updated:** [January 21, 2006, 3:40pm UTC](https://www.ruby-forum.com/t/application-design/52452 "2006-01-21T15:40:36Z")

</div>

Hi Railsers, How do you design your applications? Do you start coding HTML? Start with the controllers/models? Start in a program like photoshop/gimp/illustrator/inkscape? I start in inkscape, it’s a SVG editor. I sk…

---

## [Ruby beginner problem](https://www.ruby-forum.com/t/ruby-beginner-problem/244205)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [March 7, 2016, 10:01am UTC](https://www.ruby-forum.com/t/ruby-beginner-problem/244205 "2016-03-07T10:01:03Z")

</div>

Hello guys I’m new to learning programming and actually just started with Ruby. So far i can say it is very easy and understandable but i do have a small problem and i hope you can help me out here. I will try and exp…

---

## [1.7.9 does not compile anymore with libressl](https://www.ruby-forum.com/t/1-7-9-does-not-compile-anymore-with-libressl/233607)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [December 29, 2014, 11:43am UTC](https://www.ruby-forum.com/t/1-7-9-does-not-compile-anymore-with-libressl/233607 "2014-12-29T11:43:55Z")

</div>

I am trying to compile nginx 1.7.9 with libressl 2.1.2 the same way I did with 1.7.7 but get the following error: src/http/ngx\_http\_request.c: In function ‘ngx\_http\_ssl\_handshake\_handler’: src/http/ngx\_http\_request.…

---

## [Cannot access image\_path in library class](https://www.ruby-forum.com/t/cannot-access-image-path-in-library-class/232361)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 5, 2014, 7:07pm UTC](https://www.ruby-forum.com/t/cannot-access-image-path-in-library-class/232361 "2014-10-05T19:07:50Z")

</div>

Hi @ all, In a rails application I have a nested module in my library: module Foo module Bar def foo\_bar image\_path("my\_asset.png") end end end Within foo\_bar i can use image\_path, a rails helper, wi…

---

## [Dynamic creation of models and/or tables in Rails](https://www.ruby-forum.com/t/dynamic-creation-of-models-and-or-tables-in-rails/228242)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 16, 2013, 4:28am UTC](https://www.ruby-forum.com/t/dynamic-creation-of-models-and-or-tables-in-rails/228242 "2013-04-16T04:28:32Z")

</div>

I’m working on a project at the moment that has a rather unusual requirement and I’m hoping to get some advice on the best way to handle it or even some pointers to info that can help me build a solution. Ok, so this…

---

## [Embedding Jruby + Rails + Foreman + GUI on OSX (hard?)](https://www.ruby-forum.com/t/embedding-jruby-rails-foreman-gui-on-osx-hard/219061)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [June 20, 2012, 8:54pm UTC](https://www.ruby-forum.com/t/embedding-jruby-rails-foreman-gui-on-osx-hard/219061 "2012-06-20T20:54:34Z")

</div>

Hello all, first time posting to this list. Thanks or all the amazing work on JRuby! I’m trying to solve a problem for a client, and trying to see if jRuby could be a good alternative. Basicly, I need to run a self-h…

---

## [Before(:all) leaves records in database](https://www.ruby-forum.com/t/before-all-leaves-records-in-database/214244)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 25, 2011, 6:15pm UTC](https://www.ruby-forum.com/t/before-all-leaves-records-in-database/214244 "2011-11-25T18:15:21Z")

</div>

Hi, When I test my Rails controller, I find that records created in before(:all) remain in database while records created in before(:each) and let are wiped out after testing. This made me run “rake test:prepare” for…

---

## [Helper methods can't be called within before hooks. Help, please](https://www.ruby-forum.com/t/helper-methods-cant-be-called-within-before-hooks-help-please/212797)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [October 14, 2011, 10:46am UTC](https://www.ruby-forum.com/t/helper-methods-cant-be-called-within-before-hooks-help-please/212797 "2011-10-14T10:46:03Z")

</div>

Hi, there, I believe I have some problem with scoping. I have a controller spec file which tests a brands resource. At the start of the file, I test the resource’s access for different users in a context block a) no…

---

## [Best practices when using jruby threads](https://www.ruby-forum.com/t/best-practices-when-using-jruby-threads/208309)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 14, 2011, 9:38pm UTC](https://www.ruby-forum.com/t/best-practices-when-using-jruby-threads/208309 "2011-06-14T21:38:09Z")

</div>

We have a rails app that makes http calls to a data cloud. The rails app runs under tomcat. We need to make between 1-3 outgoing http calls per incoming request to rails. The first requirement is http keep-alive s…

---

## [Warble aborted please help](https://www.ruby-forum.com/t/warble-aborted-please-help/207625)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 30, 2011, 10:42pm UTC](https://www.ruby-forum.com/t/warble-aborted-please-help/207625 "2011-05-30T22:42:17Z")

</div>

I have three applications. I’m using jruby-1.6.2, rails-3.0.7 and warbler-1.3.0. The OS is linux debian and java is openjdk. I run bundle exec warble on two of these applications and the war file is created with no p…

---

## [Database performance for polymorphic associations under high load](https://www.ruby-forum.com/t/database-performance-for-polymorphic-associations-under-high-load/206494)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [May 3, 2011, 5:26am UTC](https://www.ruby-forum.com/t/database-performance-for-polymorphic-associations-under-high-load/206494 "2011-05-03T05:26:31Z")

</div>

Hey guys, I’ve been thinking lately about polymorphic associations, and I wonder: is there a noticeable or tangible performance “hit” from doing polymorphic associations when you’ve got your database under really hig…

---

## ["No route matches" error?](https://www.ruby-forum.com/t/no-route-matches-error/201457)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 7, 2011, 7:19pm UTC](https://www.ruby-forum.com/t/no-route-matches-error/201457 "2011-01-07T19:19:52Z")

</div>

I am new Rspec and just started by generating a new controller on Rails 3. It generates some Rspec tests by default. I have a question about how to make them pass though. As it stands, I see this test in my terminal" …

---

## [3 problemes en ROR](https://www.ruby-forum.com/t/3-problemes-en-ror/226078)

<div class="topic-metadata">

**Author:** [@speed34](https://www.ruby-forum.com/u/speed34)\
**Replies:** 2\
**Last updated:** [October 7, 2010, 1:12am UTC](https://www.ruby-forum.com/t/3-problemes-en-ror/226078 "2010-10-07T01:12:54Z")

</div>

Bonjour a tous, Je suis nouvelle en ROR. J’apprends tout juste, mais voila je suis butee sur 3 problemes et je ne sais pas du tout comment les resoudre… Peut etre que quelqu’un d’entre vous aura une solution …

---

## [US-ASCII to UTF-8](https://www.ruby-forum.com/t/us-ascii-to-utf-8/184846)

<div class="topic-metadata">

**Author:** [@burrowsm](https://www.ruby-forum.com/u/burrowsm)\
**Replies:** 2\
**Last updated:** [March 9, 2010, 2:19pm UTC](https://www.ruby-forum.com/t/us-ascii-to-utf-8/184846 "2010-03-09T14:19:57Z")

</div>

I’m having trouble in with us-ascii strings. I have written a script which receives emails straight from postfix. The emails are generally encoded in “iso-8859-1”, and I can’t get all of the characters to display pro…

---

## [Rspec-rails img src and timestamps](https://www.ruby-forum.com/t/rspec-rails-img-src-and-timestamps/169549)

<div class="topic-metadata">

**Author:** [@amkirwan](https://www.ruby-forum.com/u/amkirwan)\
**Replies:** 2\
**Last updated:** [June 5, 2009, 8:58am UTC](https://www.ruby-forum.com/t/rspec-rails-img-src-and-timestamps/169549 "2009-06-05T08:58:42Z")

</div>

when I run the following matcher bellow it fails because rails adds the timestamp after the file name. I’ve looked around but have not found anyone else having this problem. I am new to rails and rspec so maybe I am c…

---

## [Looping through java hashmap from ruby through rjb](https://www.ruby-forum.com/t/looping-through-java-hashmap-from-ruby-through-rjb/168785)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 2\
**Last updated:** [May 26, 2009, 1:29am UTC](https://www.ruby-forum.com/t/looping-through-java-hashmap-from-ruby-through-rjb/168785 "2009-05-26T01:29:26Z")

</div>

Greetings. I am trying to list all keys in a java.util.HashMap field. The Java code to do this looks like: Collection c = hMap.values(); //obtain an Iterator for Collection Iterator itr = c.iterator(); //iter…

---

## [Upload image to MySQL](https://www.ruby-forum.com/t/upload-image-to-mysql/163162)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [March 17, 2009, 10:32pm UTC](https://www.ruby-forum.com/t/upload-image-to-mysql/163162 "2009-03-17T22:32:09Z")

</div>

Need simple sample, how to upload image in to MySQL database (in BLOB) Rails 2.2.2

---

## [Traducir errores al espaÃ±ol](https://www.ruby-forum.com/t/traducir-errores-al-espaa-ol/160455)

<div class="topic-metadata">

**Author:** [@kinunt](https://www.ruby-forum.com/u/kinunt)\
**Replies:** 2\
**Last updated:** [February 17, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/traducir-errores-al-espaa-ol/160455 "2009-02-17T17:42:39Z")

</div>

Buenas, En Rails 2.2, Â¿cuÃ¡l es la mejor manera de que aparezcan los mensajes de error en espaÃ±ol? Â¿Y los meses en espaÃ±ol? He oido que ahora hay un mÃ³dulo de localizaciÃ³n incluido en Rails muy bueno pero no s…

---

## [Auto detect URL](https://www.ruby-forum.com/t/auto-detect-url/155506)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 2\
**Last updated:** [December 12, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/auto-detect-url/155506 "2008-12-12T20:27:37Z")

</div>

Is it possible to read the URL that someone uses to access your site. For example: I own, www.english.com and www.chinese.com and only have one rails site. Is it possible, when a user accessing my rails site from eng…

---

## [\`exit?': undefined method \`run?' for Test::Unit:Module (NoMethodError)?](https://www.ruby-forum.com/t/exit-undefined-method-run-for-test-module-nomethoderror/139709)

<div class="topic-metadata">

**Author:** [@kasutaja](https://www.ruby-forum.com/u/kasutaja)\
**Replies:** 2\
**Last updated:** [September 8, 2008, 8:41am UTC](https://www.ruby-forum.com/t/exit-undefined-method-run-for-test-module-nomethoderror/139709 "2008-09-08T08:41:02Z")

</div>

Why am I getting this error if running from Netbeans or just from command line with executing blah\_spec.rb? If I run with spec bla blah blah\_spec.rb then it’s fine. . Finished in 0.264 seconds 1 example, 0 failure…

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

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