# Top

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

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

---

## [Win32ole outlook run macro](https://www.ruby-forum.com/t/win32ole-outlook-run-macro/205046)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 29, 2011, 8:28pm UTC](https://www.ruby-forum.com/t/win32ole-outlook-run-macro/205046 "2011-03-29T20:28:15Z")

</div>

Hi, with ruby and win32ole it is possible to call a user-defined macro in excel: excel = WIN32OLE.new(‘Excel.Application’) excel.run(‘macroname’) how about outlook? outlook = WIN32OLE.new(‘Outlook.Application’) ou…

---

## [Filemaker](https://www.ruby-forum.com/t/filemaker/71241)

<div class="topic-metadata">

**Author:** [@anne001](https://www.ruby-forum.com/u/anne001)\
**Replies:** 4\
**Last updated:** [February 26, 2011, 4:37am UTC](https://www.ruby-forum.com/t/filemaker/71241 "2011-02-26T04:37:03Z")

</div>

Hi I am told that filemaker follows an SQL standard. We have filemaker pro 8.0 Can I access the database using activerecords or Rails? All I see mentioned is postgres, mysql, etc I found http://rubyforge.org/projects…

---

## [New to programming](https://www.ruby-forum.com/t/new-to-programming/234890)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 5\
**Last updated:** [January 14, 2015, 3:59am UTC](https://www.ruby-forum.com/t/new-to-programming/234890 "2015-01-14T03:59:48Z")

</div>

I am a real newbie, and @58 an old one. Its been 3 weeks, I’ve read chris pines Learn to Program, have just finished my first two harder problems which were the bottles of beer and the leap year program. I didn’t un…

---

## [How to define virtual attribute for date\_select drop menu using active model](https://www.ruby-forum.com/t/how-to-define-virtual-attribute-for-date-select-drop-menu-using-active-model/222136)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [August 14, 2012, 10:42am UTC](https://www.ruby-forum.com/t/how-to-define-virtual-attribute-for-date-select-drop-menu-using-active-model/222136 "2012-08-14T10:42:52Z")

</div>

Hi All, I am using active model for payment process in my application , i am not able to add field for date field, since it throws error as below undefined method \`card\_expiration\_date(3i)='. \*In model: include Ac…

---

## [Generating redirects to internal named locations](https://www.ruby-forum.com/t/generating-redirects-to-internal-named-locations/210415)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [August 10, 2011, 1:14pm UTC](https://www.ruby-forum.com/t/generating-redirects-to-internal-named-locations/210415 "2011-08-10T13:14:33Z")

</div>

Greetings nginx gurus. :slight\_smile: Is there a better way to generate a redirect to a named location than this? location @perl { fastcgi… } … location ~ .pl$ { try\_files /this\_should\_never\_exist @perl; } Thank…

---

## [How to use xslt on Windows Ruby](https://www.ruby-forum.com/t/how-to-use-xslt-on-windows-ruby/192610)

<div class="topic-metadata">

**Author:** [@Author](https://www.ruby-forum.com/u/Author)\
**Replies:** 5\
**Last updated:** [August 5, 2010, 3:51am UTC](https://www.ruby-forum.com/t/how-to-use-xslt-on-windows-ruby/192610 "2010-08-05T03:51:52Z")

</div>

Hi, I am new to Ruby, i just want to automate my daily work by using some ruby script. here is a question, how to use xslt in Ruby under Windows, since Windows is my working system. Here are my job to be done: I need…

---

## [How to participate in Ruby hiki](https://www.ruby-forum.com/t/how-to-participate-in-ruby-hiki/157744)

<div class="topic-metadata">

**Author:** [@rooby](https://www.ruby-forum.com/u/rooby)\
**Replies:** 5\
**Last updated:** [January 16, 2009, 4:50pm UTC](https://www.ruby-forum.com/t/how-to-participate-in-ruby-hiki/157744 "2009-01-16T16:50:54Z")

</div>

Hi everyone. I have a two questions about participation in Ruby “hiki” (http://ruby-gnome2.sourceforge.jp/hiki.cgi). I decided to help with manuals and tutorials. So far I managed to get most of my work done, however…

---

## [Cannot expire cache from background process?](https://www.ruby-forum.com/t/cannot-expire-cache-from-background-process/149692)

<div class="topic-metadata">

**Author:** [@justus](https://www.ruby-forum.com/u/justus)\
**Replies:** 5\
**Last updated:** [September 30, 2008, 10:37am UTC](https://www.ruby-forum.com/t/cannot-expire-cache-from-background-process/149692 "2008-09-30T10:37:29Z")

</div>

Hello, I am trying to expire fragments (or at least trigger their expiration) from a daemon that’s running in the background. The daemon is updating all kinds of important lists every few minutes from the background. …

---

## [Line breaks in multiline regexp](https://www.ruby-forum.com/t/line-breaks-in-multiline-regexp/135152)

<div class="topic-metadata">

**Author:** [@chaschev](https://www.ruby-forum.com/u/chaschev)\
**Replies:** 5\
**Last updated:** [April 21, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/line-breaks-in-multiline-regexp/135152 "2008-04-21T17:19:11Z")

</div>

Hi! I really want to know how to denote line breaks in multiline regexp. The problem is that \\s is not only a line break. I.e. how to parse this in a general way? s=\<\<HERE a loooong-loooong text with MANY spaces…

---

## [Ruby Tk: how to make something happen periodically?](https://www.ruby-forum.com/t/ruby-tk-how-to-make-something-happen-periodically/85129)

<div class="topic-metadata">

**Author:** [@S\_P\_Arif\_Sahari\_Wib](https://www.ruby-forum.com/u/S_P_Arif_Sahari_Wib)\
**Replies:** 5\
**Last updated:** [February 18, 2007, 2:30am UTC](https://www.ruby-forum.com/t/ruby-tk-how-to-make-something-happen-periodically/85129 "2007-02-18T02:30:46Z")

</div>

Hi! In Ruby Tk, how to make something happen periodically, while the user does not touch the button, menu, etc.? Thanks!

---

## [Problem with forgotten password](https://www.ruby-forum.com/t/problem-with-forgotten-password/55554)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 5\
**Last updated:** [March 23, 2006, 8:38pm UTC](https://www.ruby-forum.com/t/problem-with-forgotten-password/55554 "2006-03-23T20:38:12Z")

</div>

I’m getting the following problem after entering my email in the "forgotten password’ form. But, oddly it only happens in production mode, not development mode. Any ideas? —cut---- undefined method \`errors’ for ni…

---

## [Making a game using ruby and gosu. Please help (newbie)](https://www.ruby-forum.com/t/making-a-game-using-ruby-and-gosu-please-help-newbie/268065)

<div class="topic-metadata">

**Author:** [@CaseyN98](https://www.ruby-forum.com/u/CaseyN98)\
**Replies:** 2\
**Last updated:** [December 11, 2025, 1:13am UTC](https://www.ruby-forum.com/t/making-a-game-using-ruby-and-gosu-please-help-newbie/268065 "2025-12-11T01:13:05Z")

</div>

Ive only been coding for a year or so and its been a jumbled mess jumping between languages. Ruby has stuck pretty well so I decided my first project would be a card battling game (My love of card games bleeds through) a…

---

## [Phase demodulation](https://www.ruby-forum.com/t/phase-demodulation/230650)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [July 3, 2014, 6:19pm UTC](https://www.ruby-forum.com/t/phase-demodulation/230650 "2014-07-03T18:19:22Z")

</div>

Hello, This question is not strictly GNURadio related, but I hope to find people more knowledgeable than me here… I have a signal x(t) at a carrier frequency fc which is phase modulated. The phase modulation itself i…

---

## [Frustration: rails server not responding](https://www.ruby-forum.com/t/frustration-rails-server-not-responding/205580)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 9, 2011, 8:43pm UTC](https://www.ruby-forum.com/t/frustration-rails-server-not-responding/205580 "2011-04-09T20:43:25Z")

</div>

I deleted to app folders, Hello and Blog, which I had created per instructions of Beginning Rails 3. Thought I would start over again. Now when I start the command line window on my Ruby192 folder and type in “rails …

---

## [How to disable database setup / teardown in unit tests?](https://www.ruby-forum.com/t/how-to-disable-database-setup-teardown-in-unit-tests/162898)

<div class="topic-metadata">

**Author:** [@robb](https://www.ruby-forum.com/u/robb)\
**Replies:** 2\
**Last updated:** [March 15, 2009, 2:44pm UTC](https://www.ruby-forum.com/t/how-to-disable-database-setup-teardown-in-unit-tests/162898 "2009-03-15T14:44:35Z")

</div>

Hi, My app uses a read-only database — what I need to test is the parsing code. I’d like to be able to copy the development database to test, and run a series of unit tests based on it. But I can’t see how to stop t…

---

## [Newbie question - Problem understanding W(p)GTR](https://www.ruby-forum.com/t/newbie-question-problem-understanding-w-p-gtr/153383)

<div class="topic-metadata">

**Author:** [@ziga](https://www.ruby-forum.com/u/ziga)\
**Replies:** 2\
**Last updated:** [November 16, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/newbie-question-problem-understanding-w-p-gtr/153383 "2008-11-16T15:47:22Z")

</div>

In w§gtr I have found myself facing a code which, for the life of me, I just could not understand a few thing in! Seeing as this is the closest board realting to the subject, I shall post my question here - The code I…

---

## [How to change class of an STI object?](https://www.ruby-forum.com/t/how-to-change-class-of-an-sti-object/90277)

<div class="topic-metadata">

**Author:** [@bbebop](https://www.ruby-forum.com/u/bbebop)\
**Replies:** 2\
**Last updated:** [March 27, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/how-to-change-class-of-an-sti-object/90277 "2007-03-27T19:24:23Z")

</div>

I have some models which use the same table via single table inheritance. I (think I) need to change objects from one class to another and not sure how to go about that. Consider these models: class Project \< ActiveR…

---

## [Nginx with PHP on Windows](https://www.ruby-forum.com/t/nginx-with-php-on-windows/232992)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [November 10, 2014, 9:33am UTC](https://www.ruby-forum.com/t/nginx-with-php-on-windows/232992 "2014-11-10T09:33:13Z")

</div>

So i am curious on the security impacts on a windows server running nginx and php And if you have the following php.ini settings disabled. “cgi.force\_redirect = 0” I saw itpp2012 posted the following \[PATH=s:/webro…

---

## [Rake aborted! nosuch file to load -- java](https://www.ruby-forum.com/t/rake-aborted-nosuch-file-to-load-java/200273)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 6\
**Last updated:** [December 8, 2010, 12:02pm UTC](https://www.ruby-forum.com/t/rake-aborted-nosuch-file-to-load-java/200273 "2010-12-08T12:02:15Z")

</div>

Hi, When i was migrating the db i got the following error. rake db:migrate rake aborted! no such file to load – java Can you please let me know what to do to solve this.

---

## [When does nginx return a Bad gateway (502)?](https://www.ruby-forum.com/t/when-does-nginx-return-a-bad-gateway-502/227572)

<div class="topic-metadata">

**Author:** [@fastcatch](https://www.ruby-forum.com/u/fastcatch)\
**Replies:** 3\
**Last updated:** [March 21, 2013, 11:03am UTC](https://www.ruby-forum.com/t/when-does-nginx-return-a-bad-gateway-502/227572 "2013-03-21T11:03:51Z")

</div>

I have an application behind nginx (Rails on Unicorn if it matters) which listens on a UNIX socket. It all works nice, especially when load is low. When there is some load on the server though (say 70%), I randoml…

---

## [How to take advantage of server-side caching (Rack cache) without using browser caching](https://www.ruby-forum.com/t/how-to-take-advantage-of-server-side-caching-rack-cache-without-using-browser-caching/204149)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [March 6, 2011, 8:34pm UTC](https://www.ruby-forum.com/t/how-to-take-advantage-of-server-side-caching-rack-cache-without-using-browser-caching/204149 "2011-03-06T20:34:37Z")

</div>

I need to gain a deeper understanding of how the Radiant (Rack) cache works in order to solve a performance problem. PROBLEM: I’ve created a sidebar in my app. which traverses the entire tree of pages using Radius tag…

---

## [Sending SMS messages without knowing the user's carrier](https://www.ruby-forum.com/t/sending-sms-messages-without-knowing-the-users-carrier/168433)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 3\
**Last updated:** [May 20, 2009, 8:34pm UTC](https://www.ruby-forum.com/t/sending-sms-messages-without-knowing-the-users-carrier/168433 "2009-05-20T20:34:04Z")

</div>

I have an idea for a new web-based application that involves the use of SMS notifications, however I can’t assume a particular carrier. Most of the plugins I’ve seen like sms\_fu require you to know the carrier in orde…

---

## [Formato moneda](https://www.ruby-forum.com/t/formato-moneda/90273)

<div class="topic-metadata">

**Author:** [@Franrc](https://www.ruby-forum.com/u/Franrc)\
**Replies:** 3\
**Last updated:** [March 27, 2007, 11:46am UTC](https://www.ruby-forum.com/t/formato-moneda/90273 "2007-03-27T11:46:55Z")

</div>

Hola a todos, me gustarÃ­a darle un formato de moneda a un float que saco de la base de datos, de esta forma : 10.000,34 â‚¬ Alguien sabe como darle ese formato?? Gracias a todos por vuestra ayuda.

---

## [Rails method to get the current url that called the action?](https://www.ruby-forum.com/t/rails-method-to-get-the-current-url-that-called-the-action/89541)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 3\
**Last updated:** [March 21, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/rails-method-to-get-the-current-url-that-called-the-action/89541 "2007-03-21T19:36:12Z")

</div>

hi, i implemented a captcha and basically need to redisplay the page with the fetched information. im trying redirect\_to :back after the captcha is valid, but i think its going back in history. so basically i need to …

---

## [Why is my USRP N210 front panel LED E light blinking rapidly all the time?](https://www.ruby-forum.com/t/why-is-my-usrp-n210-front-panel-led-e-light-blinking-rapidly-all-the-time/223070)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [September 21, 2012, 1:56am UTC](https://www.ruby-forum.com/t/why-is-my-usrp-n210-front-panel-led-e-light-blinking-rapidly-all-the-time/223070 "2012-09-21T01:56:09Z")

</div>

Hello, As a new user I have just made the uhd\_fft.py to display something. I use the LFRX daughter board for initial testing. I have a concern with the front panel LED E light. While the uhd\_fft.py is working, both t…

---

## [\`require': no such file to load -- rubygems (LoadError)](https://www.ruby-forum.com/t/require-no-such-file-to-load-rubygems-loaderror/202320)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 27, 2011, 6:22am UTC](https://www.ruby-forum.com/t/require-no-such-file-to-load-rubygems-loaderror/202320 "2011-01-27T06:22:22Z")

</div>

Hi There, I have installed ruby 1.9.2p136 (2010-12-25 revision 30365) \[i686-linux\]. and created symlink as “ln -s /ruby 1.9.2p136/ruby /usr/bin/local/ruby. Running command ruby -v returns correct version specificatio…

---

## [Flog 2.1.2 Released](https://www.ruby-forum.com/t/flog-2-1-2-released/170942)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 2\
**Last updated:** [October 30, 2009, 5:06pm UTC](https://www.ruby-forum.com/t/flog-2-1-2-released/170942 "2009-10-30T17:06:29Z")

</div>

flog version 2.1.2 has been released! http://ruby.sadi.st/ http://rubyforge.org/projects/seattlerb Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is i…

---

## [Can I specify the rake version?](https://www.ruby-forum.com/t/can-i-specify-the-rake-version/172847)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 2\
**Last updated:** [July 29, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/can-i-specify-the-rake-version/172847 "2009-07-29T18:29:37Z")

</div>

Hi, Is there a clean way to ensure that a particular rails project uses a particular version of rake? I had a problem when a gem (calendar\_date\_select) upgraded my rake gem. The newer version (0.8.4) wasn’t backward …

---

## [Using includes twice](https://www.ruby-forum.com/t/using-includes-twice/186760)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 8:54am UTC](https://www.ruby-forum.com/t/using-includes-twice/186760 "2008-02-26T08:54:56Z")

</div>

Hello, Is there a way to handle includes twice? Basic models, Group and User. Group has many users, users belong to group. Users have a ‘role’, which can be manager/developer and stuff like that. Say I want to find…

---

## [Weird issues with nginx](https://www.ruby-forum.com/t/weird-issues-with-nginx/235350)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [June 16, 2013, 9:56pm UTC](https://www.ruby-forum.com/t/weird-issues-with-nginx/235350 "2013-06-16T21:56:47Z")

</div>

Hello, I was trying to add rate limiting to our setup (mp4 file serving) and got into some very strange issues. First, with version 1.2.0, I was seeing the following: 2013/06/14 13:25:02 \[emerg\] 12470#0: \*147816 mal…

---

## [Is watir web driver thread safe?](https://www.ruby-forum.com/t/is-watir-web-driver-thread-safe/223538)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 10, 2012, 3:24pm UTC](https://www.ruby-forum.com/t/is-watir-web-driver-thread-safe/223538 "2012-10-10T15:24:39Z")

</div>

My subject is the question.

---

## [Will\_paginate and checkboxes](https://www.ruby-forum.com/t/will-paginate-and-checkboxes/212930)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [October 21, 2011, 3:25pm UTC](https://www.ruby-forum.com/t/will-paginate-and-checkboxes/212930 "2011-10-21T15:25:10Z")

</div>

Hi all, I am working on a project and I got excited to get pagination and ajax working. I am using rails 3.1. What I have is a form for creating a client, and inside that form i have a table that I have implemented…

---

## [Relationship between Customer, Person, Employee, User entity](https://www.ruby-forum.com/t/relationship-between-customer-person-employee-user-entity/185927)

<div class="topic-metadata">

**Author:** [@paritian](https://www.ruby-forum.com/u/paritian)\
**Replies:** 4\
**Last updated:** [March 29, 2010, 12:47pm UTC](https://www.ruby-forum.com/t/relationship-between-customer-person-employee-user-entity/185927 "2010-03-29T12:47:55Z")

</div>

Hello Friends, I am trying to define relationship between real-world entities in my application… But I am feel, I am over-representing it a little and hence would like your opinion. class User \< ActiveRecord::Base h…

---

## [Support for IMAP IDLE in net/imap](https://www.ruby-forum.com/t/support-for-imap-idle-in-net-imap/171480)

<div class="topic-metadata">

**Author:** [@abhishiv](https://www.ruby-forum.com/u/abhishiv)\
**Replies:** 4\
**Last updated:** [July 3, 2009, 11:19pm UTC](https://www.ruby-forum.com/t/support-for-imap-idle-in-net-imap/171480 "2009-07-03T23:19:45Z")

</div>

Ok, I have been suck on it for hours. I thought net/imap.rb with ruby 1.9 supported the idle command, but not yet. Can anyone help me in implementing that? From herehttp://www.ruby-forum.com/topic/50828, I though th…

---

## [Best practice for showing ajax loader gif?](https://www.ruby-forum.com/t/best-practice-for-showing-ajax-loader-gif/134839)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 4\
**Last updated:** [April 16, 2008, 12:19am UTC](https://www.ruby-forum.com/t/best-practice-for-showing-ajax-loader-gif/134839 "2008-04-16T00:19:21Z")

</div>

what is the best practice for showing animated ajax spinner? The usual Element.show(‘spinner’) has to stick with every form’s :loading. Is there some easier or light-weight method? Because I have this page that can co…

---

## [Trouble testing a method with loop](https://www.ruby-forum.com/t/trouble-testing-a-method-with-loop/128030)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 4\
**Last updated:** [February 4, 2008, 4:21pm UTC](https://www.ruby-forum.com/t/trouble-testing-a-method-with-loop/128030 "2008-02-04T16:21:45Z")

</div>

I’m having trouble working out how to test a method that contains a loop. I’m new to rspec so not sure what the best way is to tackle this. class Company \< ActiveRecord::Base def self.sync\_with\_basecamp companies = …

---

## [\[Win7 32bit\] JRuby 1.6.1 and RubyGems 1.8.2 failure](https://www.ruby-forum.com/t/win7-32bit-jruby-1-6-1-and-rubygems-1-8-2-failure/207130)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [May 26, 2011, 5:05pm UTC](https://www.ruby-forum.com/t/win7-32bit-jruby-1-6-1-and-rubygems-1-8-2-failure/207130 "2011-05-26T17:05:13Z")

</div>

I didn’t see any relevant bugs while scanning JRuby 1.6, 1.6.1, 1.6.2, and 1.7. Does this appear to be a failure in a JRuby core class, not RG 1.8.2? http://pastie.org/1923902 Jon blog: http://jonforums.github.com…

---

## [Traffic Splitting](https://www.ruby-forum.com/t/traffic-splitting/203678)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [February 25, 2011, 5:25pm UTC](https://www.ruby-forum.com/t/traffic-splitting/203678 "2011-02-25T17:25:57Z")

</div>

Hello, I am developing a rails application and have encountered the problem of splitting up traffic coming to the domain. As an example, I would like to mention that let’s say we have 5 visitors per day to the domain…

---

## [How to wrtie this test?(test true but change when refactor)](https://www.ruby-forum.com/t/how-to-wrtie-this-test-test-true-but-change-when-refactor/194410)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 7\
**Last updated:** [September 7, 2010, 3:21pm UTC](https://www.ruby-forum.com/t/how-to-wrtie-this-test-test-true-but-change-when-refactor/194410 "2010-09-07T15:21:06Z")

</div>

def process! #transaction block bankbook = self.bankbooks.build bankbook = user.bank.bankbooks.build bankbook.withdraw #end end it “should process the withdrawal request” do #something here omit withdrawal.proce…

---

## [ActionMailer cancel send from one of deliver\_\* methods](https://www.ruby-forum.com/t/actionmailer-cancel-send-from-one-of-deliver-methods/107202)

<div class="topic-metadata">

**Author:** [@surge](https://www.ruby-forum.com/u/surge)\
**Replies:** 1\
**Last updated:** [November 5, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/actionmailer-cancel-send-from-one-of-deliver-methods/107202 "2008-11-05T20:23:07Z")

</div>

Seems like executing a return in one of the deliver\_\* methods of ActionMailer doesn’t cancel the delivery. The template is still read right after the return method has been executed and because all variables in the te…

---

## [Onsubmit continues after return false](https://www.ruby-forum.com/t/onsubmit-continues-after-return-false/119807)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 1\
**Last updated:** [November 10, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/onsubmit-continues-after-return-false/119807 "2007-11-10T19:55:58Z")

</div>

Hi, I have something really weird going on. In this form header: \<% form\_for(:task,:url =\> tasks\_path, :html =\> { :onsubmit =\> ‘validate\_task();’, :id =\> “new\_task” }) do |f| %\> I call “validate\_task” to validate som…

---

## [Syntax error on line 17, col 2](https://www.ruby-forum.com/t/syntax-error-on-line-17-col-2/92752)

<div class="topic-metadata">

**Author:** [@anavso](https://www.ruby-forum.com/u/anavso)\
**Replies:** 7\
**Last updated:** [April 23, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/syntax-error-on-line-17-col-2/92752 "2007-04-23T23:49:06Z")

</div>

Tengo un problema a la hora de levantar el servidor de cualquier aplicacion. Por ejemplo la aplicacion “Recetario”, cuando quiero ejecutarlo con el siguiente comando D:\\rails\\recetario\>ruby script\\server, me da el sig…

---

## [Radiant Configuration using Apache/Mongrel/MySql](https://www.ruby-forum.com/t/radiant-configuration-using-apache-mongrel-mysql/90596)

<div class="topic-metadata">

**Author:** [@benni](https://www.ruby-forum.com/u/benni)\
**Replies:** 7\
**Last updated:** [March 30, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/radiant-configuration-using-apache-mongrel-mysql/90596 "2007-03-30T15:29:33Z")

</div>

Hi All, I’m reconfiguring my Ubuntu-based Slice for a new Radiant server featuring Apache2, Mongrel, MySql. After some extensive searching there is little if any information on deploying a server with that particula…

---

## [Japanese support for Rails](https://www.ruby-forum.com/t/japanese-support-for-rails/74196)

<div class="topic-metadata">

**Author:** [@shinkaku](https://www.ruby-forum.com/u/shinkaku)\
**Replies:** 7\
**Last updated:** [November 7, 2006, 10:53am UTC](https://www.ruby-forum.com/t/japanese-support-for-rails/74196 "2006-11-07T10:53:26Z")

</div>

I’ve got a database table (mysql 5.0) that contains Japanese text. The table is set to sjis. I’ve ran the few scripts to get the basic app to interact with the database for rails. However, all Japanese text comes out …

---

## [Ruby and games](https://www.ruby-forum.com/t/ruby-and-games/64734)

<div class="topic-metadata">

**Author:** [@FSSenault](https://www.ruby-forum.com/u/FSSenault)\
**Replies:** 7\
**Last updated:** [August 15, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/ruby-and-games/64734 "2006-08-15T14:18:58Z")

</div>

Hello all. Python seems to be used as a scripting language by quite a few big games (I’m playing Civilization IV currently, and I remember at least one of the Vampire CRPG uses it too). I was wonderering if a game ma…

---

## [Polymorphic associations?](https://www.ruby-forum.com/t/polymorphic-associations/55840)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 7\
**Last updated:** [March 24, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/polymorphic-associations/55840 "2006-03-24T14:43:39Z")

</div>

I’ve read the stuff about polymorphic associations here: http://wiki.rubyonrails.org/rails/pages/UnderstandingPolymorphicAssociations But I’m not sure what exactly they are and what their advantage is. Are they the sa…

---

## [Scope when reopening method](https://www.ruby-forum.com/t/scope-when-reopening-method/197851)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 8\
**Last updated:** [October 21, 2010, 10:58am UTC](https://www.ruby-forum.com/t/scope-when-reopening-method/197851 "2010-10-21T10:58:39Z")

</div>

Here is a dummy class with a method “meth”. class My # str contains some value generated by My def meth str end def call\_meth meth "abc" end end ------ my application starts here arr = \[\] m = My.new …

---

## [Need help installing ruby and libraries](https://www.ruby-forum.com/t/need-help-installing-ruby-and-libraries/186052)

<div class="topic-metadata">

**Author:** [@jasv](https://www.ruby-forum.com/u/jasv)\
**Replies:** 8\
**Last updated:** [March 31, 2010, 10:27pm UTC](https://www.ruby-forum.com/t/need-help-installing-ruby-and-libraries/186052 "2010-03-31T22:27:27Z")

</div>

Hello everybody… I want to install Redmine Project Management in my PC (Windows XP), whose requirement is Ruby On Rails. So I need to install Ruby on my machine and it is at that point where I’ve got my first problems…

---

## [Stub vs stub!](https://www.ruby-forum.com/t/stub-vs-stub/185425)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 8\
**Last updated:** [March 20, 2010, 11:46am UTC](https://www.ruby-forum.com/t/stub-vs-stub/185425 "2010-03-20T11:46:42Z")

</div>

RSpec’s changelog says that in version 1.2.5: “also alias\_method :stub, :stub!, so you can stub with less bang” which I’ve been taking advantage of a lot. However, I just ran into a situation where using #stub caused …

---

## [Local variables can't be accessed from outside, right?](https://www.ruby-forum.com/t/local-variables-cant-be-accessed-from-outside-right/179555)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 8\
**Last updated:** [November 28, 2009, 10:00pm UTC](https://www.ruby-forum.com/t/local-variables-cant-be-accessed-from-outside-right/179555 "2009-11-28T22:00:32Z")

</div>

Hi, I’ve been trying to figure out metaprogramming and I’ve mostly got it figured out, but in doing so I ran across this example: class A def initialize @a = 11 @@a = 22 a = 33 end @a = 1 @@a = 2 a = 3 end Th…

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

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