# Top

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

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

---

## [Include java applet in ruby on rails web pages](https://www.ruby-forum.com/t/include-java-applet-in-ruby-on-rails-web-pages/69530)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [September 22, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/include-java-applet-in-ruby-on-rails-web-pages/69530 "2006-09-22T16:35:31Z")

</div>

Hi, I am new to Ruby on Rails world, and would like to combine the ease of RoR web programming with rich graphics and applications from java applets. Wonder if anyone have tried that before? I am having difficulty t…

---

## [Dynamic tag cloud](https://www.ruby-forum.com/t/dynamic-tag-cloud/68236)

<div class="topic-metadata">

**Author:** [@Aeneas](https://www.ruby-forum.com/u/Aeneas)\
**Replies:** 8\
**Last updated:** [September 13, 2006, 11:02pm UTC](https://www.ruby-forum.com/t/dynamic-tag-cloud/68236 "2006-09-13T23:02:30Z")

</div>

Hello everyone :slight\_smile: This is my first post to this list so let me briefly introduce myself. I am a student at Imperial College London and am currently learning to ride the rails. Together with two other stude…

---

## [Which Directory was my ruby script run from?](https://www.ruby-forum.com/t/which-directory-was-my-ruby-script-run-from/52929)

<div class="topic-metadata">

**Author:** [@mjacobs](https://www.ruby-forum.com/u/mjacobs)\
**Replies:** 8\
**Last updated:** [January 24, 2006, 5:36pm UTC](https://www.ruby-forum.com/t/which-directory-was-my-ruby-script-run-from/52929 "2006-01-24T17:36:00Z")

</div>

Hi All, How do I find out which directory my ruby script was run from? Thanks Matthew J. p.s Today I’m using Windows

---

## [Help: NoMethodError: undefined method \`set' for main:Object during cap deploy](https://www.ruby-forum.com/t/help-nomethoderror-undefined-method-set-for-main-object-during-cap-deploy/243700)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [December 22, 2015, 9:05pm UTC](https://www.ruby-forum.com/t/help-nomethoderror-undefined-method-set-for-main-object-during-cap-deploy/243700 "2015-12-22T21:05:32Z")

</div>

NoMethodError: undefined method \`set’ for main:Object /apps/app\_a/production/releases/20151222191024/config/environments/production.rb:2:in production.rb set :sidekiq\_role, :app set :sidekiq\_config, “#{current\_pa…

---

## [Need for explanation of blocks in gnuradio](https://www.ruby-forum.com/t/need-for-explanation-of-blocks-in-gnuradio/246417)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [October 10, 2013, 11:52am UTC](https://www.ruby-forum.com/t/need-for-explanation-of-blocks-in-gnuradio/246417 "2013-10-10T11:52:46Z")

</div>

Hi everyone, Can anybody explain me what are the functions of frequency xlating block and wbfm receive pll block.I searched lot of web pages but couldn’t find any proper documentation on it. Thanks in advance …

---

## [Returning value from ternary operator](https://www.ruby-forum.com/t/returning-value-from-ternary-operator/165679)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [April 16, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/returning-value-from-ternary-operator/165679 "2009-04-16T13:22:24Z")

</div>

Hi I have def get\_company\_details\_array c = nil arr = \[\] if c.nil? c.nil? ? 2.times {arr.push("")} :\['a','b'\] end arr = \[‘abc’\] + get\_company\_details\_array puts arr.inspect What I expected here is \[“abc”,"",""\] …

---

## [Rubyで静的型](https://www.ruby-forum.com/t/ruby/233538)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [December 23, 2014, 8:26am UTC](https://www.ruby-forum.com/t/ruby/233538 "2014-12-23T08:26:20Z")

</div>

$B$9$$$^$;$s!&!&!&!#@h$\[$I$N%a!\<%k$O(BHTML$B7A\<0$GAw$C$F$7$^$$$^$7$?!#(B $B%F%-%9%H7A\<0$G:FEYAw$jD\>$5$;$F$$$?$@$-$^$9!#(B $B=i$a$^$7$F!#(B $B:4!9LZ=SG7$H$$$&$b$N$G$9!#(B $B$5$C$=$/K\\Bj$G$9$,!"(B $B7GBj$NDL$j!"(BRuby…

---

## [FXTable: how to prevent a particular column from being resized?](https://www.ruby-forum.com/t/fxtable-how-to-prevent-a-particular-column-from-being-resized/116649)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 3\
**Last updated:** [October 9, 2007, 9:13am UTC](https://www.ruby-forum.com/t/fxtable-how-to-prevent-a-particular-column-from-being-resized/116649 "2007-10-09T09:13:47Z")

</div>

Hi again, I’m using FXTables with a few hidden columns, which have 0 width. Is there a way to prevent the user from resizing these columns, which only have an internal meaning? Philippe

---

## [Question about :include\_blank =\> true](https://www.ruby-forum.com/t/question-about-include-blank-true/111964)

<div class="topic-metadata">

**Author:** [@dparkmit](https://www.ruby-forum.com/u/dparkmit)\
**Replies:** 3\
**Last updated:** [August 13, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/question-about-include-blank-true/111964 "2007-08-13T22:58:09Z")

</div>

Hi All, When you include the option “:include\_blank =\> true”, then the select function includes a blank option. How do you specify text for that option? Many thanks from this newbie for your help! For instance, rat…

---

## [Edge rails: \`scan': undefined method \`empty?' for nil:NilCla](https://www.ruby-forum.com/t/edge-rails-scan-undefined-method-empty-for-nil-nilcla/149960)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [January 19, 2009, 9:51pm UTC](https://www.ruby-forum.com/t/edge-rails-scan-undefined-method-empty-for-nil-nilcla/149960 "2009-01-19T21:51:19Z")

</div>

Anybody possibly know what’s going on? upgrading my existing rails app to edge results in this error thoughts? /Users/rogerpack/dev/ruby\_186\_installed/lib/ruby/1.8/erb.rb:469:in scan': undefined methodempty?’ for nil…

---

## ["syntax error, unexpected tIDENTIFIER , expecting kEND" in RJS response](https://www.ruby-forum.com/t/syntax-error-unexpected-tidentifier-expecting-kend-in-rjs-response/153913)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 4\
**Last updated:** [November 22, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/syntax-error-unexpected-tidentifier-expecting-kend-in-rjs-response/153913 "2008-11-22T23:02:05Z")

</div>

I get a “syntax error, unexpected tIDENTIFIER, expecting kEND” when the following RJS template is rendered: page.insert\_html :bottom, :requisite\_table, :partial =\> “insert\_jobrequisite\_select”, :locals =\> {:job =\> @jo…

---

## [Generic and non generic type with the same name](https://www.ruby-forum.com/t/generic-and-non-generic-type-with-the-same-name/137048)

<div class="topic-metadata">

**Author:** [@stenzer](https://www.ruby-forum.com/u/stenzer)\
**Replies:** 4\
**Last updated:** [May 8, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/generic-and-non-generic-type-with-the-same-name/137048 "2008-05-08T17:24:53Z")

</div>

IronRuby seems to be having a problem resolving a generic type when a non generic type with the same name exists. The specific example that I discovered the bug with is when trying to using Moq \[1\]. describe “some c…

---

## [Erb with -%\> from command line?](https://www.ruby-forum.com/t/erb-with-from-command-line/110752)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 4\
**Last updated:** [July 30, 2007, 6:39pm UTC](https://www.ruby-forum.com/t/erb-with-from-command-line/110752 "2007-07-30T18:39:14Z")

</div>

I can’t seem to google this one effectively: Can someone tell me how to invoke erb in such a way that the -%\> sequence kills newlines as it does in rails? I’ve tried everything I can think of, effectively for i in 0…

---

## [Checkboxes with a has\_many :through relation](https://www.ruby-forum.com/t/checkboxes-with-a-has-many-through-relation/97969)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 4\
**Last updated:** [July 17, 2006, 5:43pm UTC](https://www.ruby-forum.com/t/checkboxes-with-a-has-many-through-relation/97969 "2006-07-17T17:43:13Z")

</div>

All, I’m populating a view with checkboxes in a list. I want to be able to assign to my has\_many relationship using the post values of these checkboxes. Essentially, I want to populate the relationship table which …

---

## [Division not working!?!?](https://www.ruby-forum.com/t/division-not-working/98638)

<div class="topic-metadata">

**Author:** [@isaacrtree](https://www.ruby-forum.com/u/isaacrtree)\
**Replies:** 4\
**Last updated:** [July 17, 2006, 5:38am UTC](https://www.ruby-forum.com/t/division-not-working/98638 "2006-07-17T05:38:03Z")

</div>

I guess you could call this a noobie problem as well. I’m trying to divide two numbers by each other… For example: \<% for element in project.elements %\> Element: \<%= horizontal\_bar\_graph \[element.name, ((element.co…

---

## [26th December 2005 - 1st January 2006](https://www.ruby-forum.com/t/26th-december-2005-1st-january-2006/56101)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [January 3, 2006, 8:50pm UTC](https://www.ruby-forum.com/t/26th-december-2005-1st-january-2006/56101 "2006-01-03T20:50:48Z")

</div>

http://www.rubyweeklynews.org/20060101.html Ruby Weekly News 26th December 2005 - 1st January 2006 Ruby Weekly News is a summary of the week’s activity on the ruby-talk mailing list / the comp.lang.ruby newsgroup / Ru…

---

## [Ideas to write this nicer (maybe using duck typing)](https://www.ruby-forum.com/t/ideas-to-write-this-nicer-maybe-using-duck-typing/244898)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [July 8, 2016, 9:40am UTC](https://www.ruby-forum.com/t/ideas-to-write-this-nicer-maybe-using-duck-typing/244898 "2016-07-08T09:40:10Z")

</div>

I have a class FreezingArray, which behaves like an Array, but provides 3 additional methods. Let’s say that farr is an instance of FreezingArray. We then can do one of: farr.set\_const\_from(a) This appends all the re…

---

## [Exception: can't convert nil into String](https://www.ruby-forum.com/t/exception-cant-convert-nil-into-string/224197)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [November 5, 2012, 2:41pm UTC](https://www.ruby-forum.com/t/exception-cant-convert-nil-into-string/224197 "2012-11-05T14:41:22Z")

</div>

Hello, I’m going nuts trying to figure out what’s wrong with this script. Here’s the top part of my code, where it’s failing: require ‘rubygems’ require ‘fileutils’ require ‘net/ftp’ Dir.chdir(“F:/workflows/graphic…

---

## [Require\_relative? why didn't we "relative do"](https://www.ruby-forum.com/t/require-relative-why-didnt-we-relative-do/220550)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [June 13, 2012, 8:06pm UTC](https://www.ruby-forum.com/t/require-relative-why-didnt-we-relative-do/220550 "2012-06-13T20:06:00Z")

</div>

I wonder if it would been better if we had gone another route with the whole #require\_relative thing. Instead of a special require method, we could have a method that adds the current file’s directory to the top of th…

---

## [XML builder](https://www.ruby-forum.com/t/xml-builder/192001)

<div class="topic-metadata">

**Author:** [@brandon](https://www.ruby-forum.com/u/brandon)\
**Replies:** 6\
**Last updated:** [July 23, 2010, 9:19am UTC](https://www.ruby-forum.com/t/xml-builder/192001 "2010-07-23T09:19:49Z")

</div>

I am using the XML builder and I am frustrated by the lack of being able to use variables to define the names of XML elements I want to be able to do this (in actionname.xml.builder) … element\_name = “Tag” xml.eleme…

---

## [One-Click Ruby Installer for Windows: 185-22 RC1](https://www.ruby-forum.com/t/one-click-ruby-installer-for-windows-185-22-rc1/83255)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 6\
**Last updated:** [January 24, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/one-click-ruby-installer-for-windows-185-22-rc1/83255 "2007-01-24T22:54:51Z")

</div>

185-22 Release Candidate 1 http://rubyforge.org/frs/?group\_id=167 This release updates Ruby to 1.8.5 patch level 12 (lots of bugs fixed), and most of the included extensions to their latest versions (see the change l…

---

## [How to insert class name with link\_to](https://www.ruby-forum.com/t/how-to-insert-class-name-with-link-to/83225)

<div class="topic-metadata">

**Author:** [@abon](https://www.ruby-forum.com/u/abon)\
**Replies:** 6\
**Last updated:** [January 24, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/how-to-insert-class-name-with-link-to/83225 "2007-01-24T22:00:43Z")

</div>

For example: www.example.com Thanks

---

## [Reg: JRUBY to LDAP](https://www.ruby-forum.com/t/reg-jruby-to-ldap/238894)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [February 6, 2014, 10:43am UTC](https://www.ruby-forum.com/t/reg-jruby-to-ldap/238894 "2014-02-06T10:43:58Z")

</div>

Hi , I am new to JRUBY. I would like to connect with LDAP to check user status. Can Someone help with code and steps to execute. I have installed JRUBY and ran a sample program. Try to understanding the flow. As i …

---

## [Undefined method \`xss\_terminate'](https://www.ruby-forum.com/t/undefined-method-xss-terminate/201744)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [January 14, 2011, 12:19am UTC](https://www.ruby-forum.com/t/undefined-method-xss-terminate/201744 "2011-01-14T00:19:33Z")

</div>

I’m trying to run a rails app developed by my firm on my Ubuntu machine. I’m using RVM with what I think are all the appropriate gems installed. The application works fine on co-workers OSX machines. When running db:m…

---

## [Interested in writing a commandline option parser for ruby?](https://www.ruby-forum.com/t/interested-in-writing-a-commandline-option-parser-for-ruby/188417)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 5\
**Last updated:** [May 12, 2010, 7:08pm UTC](https://www.ruby-forum.com/t/interested-in-writing-a-commandline-option-parser-for-ruby/188417 "2010-05-12T19:08:03Z")

</div>

Don’t. Just use Trollop. Seriously. Don’t even think. Just obey. OBEY. Don’t write a “framework” to do it. Don’t write an overly-pedantic DSL. Don’t write a complicated OO system where for some INSANE reason you de…

---

## [ActiveRecord Observers - can it only take one parameter?](https://www.ruby-forum.com/t/activerecord-observers-can-it-only-take-one-parameter/181866)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 5\
**Last updated:** [January 22, 2010, 12:17am UTC](https://www.ruby-forum.com/t/activerecord-observers-can-it-only-take-one-parameter/181866 "2010-01-22T00:17:15Z")

</div>

hi, guys, I refered to Action Mailer Basics — Ruby on Rails Guides and Ruby on Rails API I am a bit unclear about observers. Consider the set up below: model/part\_mailer.rb class PartMailer \< ActionMailer::Base @a…

---

## [Modal boxes para rails](https://www.ruby-forum.com/t/modal-boxes-para-rails/164331)

<div class="topic-metadata">

**Author:** [@Pablo\_Formoso\_E](https://www.ruby-forum.com/u/Pablo_Formoso_E)\
**Replies:** 5\
**Last updated:** [March 31, 2009, 2:12pm UTC](https://www.ruby-forum.com/t/modal-boxes-para-rails/164331 "2009-03-31T14:12:35Z")

</div>

Hola a todos He probado unas cuantas librerías para generar ventanas modales con el efecto Lightbox, procurando siempre que se basen en prototype y no he encontrado ninguna que me entusiasmara demasiado. Muchas no …

---

## [Binary Tree](https://www.ruby-forum.com/t/binary-tree/92590)

<div class="topic-metadata">

**Author:** [@martin](https://www.ruby-forum.com/u/martin)\
**Replies:** 5\
**Last updated:** [April 21, 2007, 8:55am UTC](https://www.ruby-forum.com/t/binary-tree/92590 "2007-04-21T08:55:39Z")

</div>

Hi all! I’m a newbie in Ruby and I am trying to implement a Binary Tree. However, it doesn’t work. Could someone please help me? Thank you ! class Node attr\_accessor :left, :right, :key, :data def initialize(key, d…

---

## [Nginx catching all domains without wildcard](https://www.ruby-forum.com/t/nginx-catching-all-domains-without-wildcard/243730)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [December 28, 2015, 1:42pm UTC](https://www.ruby-forum.com/t/nginx-catching-all-domains-without-wildcard/243730 "2015-12-28T13:42:19Z")

</div>

My Nginx config is catching all subdomains without specifying a wildcard. I have created an special config for each subdomain, but seems that all subdomains pass trough the main domain configuration. I have discovered …

---

## [Keepalive\_timeout not working?](https://www.ruby-forum.com/t/keepalive-timeout-not-working/236294)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [August 22, 2013, 8:35pm UTC](https://www.ruby-forum.com/t/keepalive-timeout-not-working/236294 "2013-08-22T20:35:05Z")

</div>

keepalives seem to be working, but the timeout limit I’m setting isn’t honored it seems… Someone let me know if I’ve done something wrong or am missing something. I have nginx installed on Ubuntu from the stable repo…

---

## [Possible mruby bug in mrb\_load\_string](https://www.ruby-forum.com/t/possible-mruby-bug-in-mrb-load-string/226900)

<div class="topic-metadata">

**Author:** [@Garthy\_D](https://www.ruby-forum.com/u/Garthy_D)\
**Replies:** 7\
**Last updated:** [February 26, 2013, 9:47am UTC](https://www.ruby-forum.com/t/possible-mruby-bug-in-mrb-load-string/226900 "2013-02-26T09:47:27Z")

</div>

Hi all, I have been having a bit of a play around with mruby (note: mruby, not MRI Ruby), and I believe I may have found a bug in a recent (20120222) version. Basically, if you call mrb\_load\_string with something tha…

---

## [How to specify condition for eagerly joined model using :inc](https://www.ruby-forum.com/t/how-to-specify-condition-for-eagerly-joined-model-using-inc/69814)

<div class="topic-metadata">

**Author:** [@Hammed\_M](https://www.ruby-forum.com/u/Hammed_M)\
**Replies:** 7\
**Last updated:** [June 20, 2007, 12:04am UTC](https://www.ruby-forum.com/t/how-to-specify-condition-for-eagerly-joined-model-using-inc/69814 "2007-06-20T00:04:08Z")

</div>

I’d like to specify conditions for a model that I’m left outer joining using :include. A simplification of the problem: User.find :all, :include =\> :addresses, :conditions =\> \[“addresses.is\_active = 1”\] Results in th…

---

## [64 BIT Ruby Error WIN32OLE](https://www.ruby-forum.com/t/64-bit-ruby-error-win32ole/245131)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [November 15, 2016, 3:12pm UTC](https://www.ruby-forum.com/t/64-bit-ruby-error-win32ole/245131 "2016-11-15T15:12:36Z")

</div>

0x800700c1 Error calling: connection = WIN32OLE.new(‘ADODB.Connection’) 64 Bit machine… Any workarounds? dblucas AT charter.net Dave failed to create WIN32OLE object from \`ADODB.Connection’ HRESULT error code:0x8…

---

## [Get alert : sem\_init() failed (78: Function not implemented](https://www.ruby-forum.com/t/get-alert-sem-init-failed-78-function-not-implemented/227103)

<div class="topic-metadata">

**Author:** [@Meteor](https://www.ruby-forum.com/u/Meteor)\
**Replies:** 2\
**Last updated:** [March 5, 2013, 8:49am UTC](https://www.ruby-forum.com/t/get-alert-sem-init-failed-78-function-not-implemented/227103 "2013-03-05T08:49:52Z")

</div>

Hi All, I just upgrade freebsd from 8.1 to 9.1. And after that, every time I start Nginx, I’l get below error message: 2013/03/04 09:21:27 \[alert\] 43757#0: sem\_init() failed (78: Function not implemented) 2013/03/04…

---

## [How to get terminal dimensions without using curses or ncurses?](https://www.ruby-forum.com/t/how-to-get-terminal-dimensions-without-using-curses-or-ncurses/149540)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 8\
**Last updated:** [September 26, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/how-to-get-terminal-dimensions-without-using-curses-or-ncurses/149540 "2008-09-26T17:51:23Z")

</div>

I’d like to be able to print to terminal and do some reasonable formatting, without going to the trouble of learning curses. I simply need to know the dimensions of the terminal, but that info doesn’t appear to be ava…

---

## [How to show the radius tag in the content](https://www.ruby-forum.com/t/how-to-show-the-radius-tag-in-the-content/149448)

<div class="topic-metadata">

**Author:** [@jjkooij](https://www.ruby-forum.com/u/jjkooij)\
**Replies:** 8\
**Last updated:** [September 25, 2008, 12:59am UTC](https://www.ruby-forum.com/t/how-to-show-the-radius-tag-in-the-content/149448 "2008-09-25T00:59:55Z")

</div>

How do I show the radius tag in the copy of the page? I’ve entered this: in my body copy in the admin but it always renders no matter which filter I use, even none. With textile I get the following html M…

---

## [DRY principle - how to implement?](https://www.ruby-forum.com/t/dry-principle-how-to-implement/55745)

<div class="topic-metadata">

**Author:** [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Replies:** 8\
**Last updated:** [April 7, 2006, 1:41am UTC](https://www.ruby-forum.com/t/dry-principle-how-to-implement/55745 "2006-04-07T01:41:19Z")

</div>

Hi all! I have ‘send\_status’ table which looks something like these: id code title 1 sent Sent 2 error Sending error 3 success Success Next I would like to associate some processed records with their …

---

## [How can I improve the performance of this small Ruby function?](https://www.ruby-forum.com/t/how-can-i-improve-the-performance-of-this-small-ruby-function/259969)

<div class="topic-metadata">

**Author:** [@DMiller](https://www.ruby-forum.com/u/DMiller)\
**Replies:** 3\
**Last updated:** [July 15, 2020, 11:28am UTC](https://www.ruby-forum.com/t/how-can-i-improve-the-performance-of-this-small-ruby-function/259969 "2020-07-15T11:28:39Z")

</div>

I am currently doing a Ruby challenge and get the error Terminated due to timeout for some testcases where the string input is very long (10.000+ characters). How can I improve my code? def alternatingCharacters(s) c…

---

## [Gracefully shutting down JRuby app on Tomcat](https://www.ruby-forum.com/t/gracefully-shutting-down-jruby-app-on-tomcat/241374)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [April 7, 2015, 8:53am UTC](https://www.ruby-forum.com/t/gracefully-shutting-down-jruby-app-on-tomcat/241374 "2015-04-07T08:53:57Z")

</div>

Currently I have a large JRuby application running on Tomcat. I have generic scripts for managing my tomcat applications. However, my JRuby app shuts down before all the currently running requests are done. So I’m try…

---

## [External modules include path / namespace](https://www.ruby-forum.com/t/external-modules-include-path-namespace/235135)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [June 2, 2013, 4:31pm UTC](https://www.ruby-forum.com/t/external-modules-include-path-namespace/235135 "2013-06-02T16:31:45Z")

</div>

Hi, From looking at what gr\_modtool generate, you get include: $prefix/include/module\_name/ namespace: gr::module\_name:: python: $prefix/lib/site-package/module\_name/ Since the module are placed in the gr:: namespac…

---

## [Activerecord has\_many vs. has\_one scope](https://www.ruby-forum.com/t/activerecord-has-many-vs-has-one-scope/178004)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 3\
**Last updated:** [October 28, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/activerecord-has-many-vs-has-one-scope/178004 "2009-10-28T15:28:59Z")

</div>

Hi All, in the api for has\_many, under the :conditions option we see : Specify the conditions that the associated objects must meet in order to be included as a WHERE SQL fragment, such as price \> 5 AND name LIKE â…

---

## [Problems 4.2 installing on Windows?](https://www.ruby-forum.com/t/problems-4-2-installing-on-windows/169980)

<div class="topic-metadata">

**Author:** [@jasongarber](https://www.ruby-forum.com/u/jasongarber)\
**Replies:** 3\
**Last updated:** [June 11, 2009, 9:30pm UTC](https://www.ruby-forum.com/t/problems-4-2-installing-on-windows/169980 "2009-06-11T21:30:49Z")

</div>

I keep an old Windows machine around for making sure that RedCloth Win32 binary gems install. When I try gem update RedCloth, it just installs 4.1.9. Did I do something wrong in the gemspec? Would someone else with…

---

## [Using a different cairo context of Gtk::DrawingArea](https://www.ruby-forum.com/t/using-a-different-cairo-context-of-gtk-drawingarea/78737)

<div class="topic-metadata">

**Author:** [@asubedi](https://www.ruby-forum.com/u/asubedi)\
**Replies:** 3\
**Last updated:** [December 8, 2006, 7:53am UTC](https://www.ruby-forum.com/t/using-a-different-cairo-context-of-gtk-drawingarea/78737 "2006-12-08T07:53:58Z")

</div>

Hi all, I am trying to write a graph widget by subclassing Gtk::DrawingArea and using cairo (ruby-gnome2 version 0.15 in ubuntu edgy). The examples about using cairo with DrawingArea create a cairo context in the ex…

---

## [ActiveSupport::MessageVerifier::InvalidSignature](https://www.ruby-forum.com/t/activesupport-invalidsignature/261077)

<div class="topic-metadata">

**Author:** [@joan\_njuguna](https://www.ruby-forum.com/u/joan_njuguna)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 9:44am UTC](https://www.ruby-forum.com/t/activesupport-invalidsignature/261077 "2021-03-08T09:44:24Z")

</div>

I came across this error while trying to edit an avatar in Devise::RegistrationsController#update I cannot seem to have a work around. How can I solve this? \*\* My input field is custom \*\* \<input type="file" accept="i…

---

## [Undefined Method](https://www.ruby-forum.com/t/undefined-method/245293)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [March 20, 2017, 4:35pm UTC](https://www.ruby-forum.com/t/undefined-method/245293 "2017-03-20T16:35:18Z")

</div>

I’m going crazy trying to determine the cause of this “undefined method” error. Any advice would be amazing C:/Users/Glenn/workspace/FirstProject/Blackjack.rb:51:in play\_game': undefined methoddetermine\_winner’ for #G…

---

## [Redirect to custom landing pages based on http referer](https://www.ruby-forum.com/t/redirect-to-custom-landing-pages-based-on-http-referer/230222)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 5, 2014, 9:36am UTC](https://www.ruby-forum.com/t/redirect-to-custom-landing-pages-based-on-http-referer/230222 "2014-06-05T09:36:27Z")

</div>

Is it possible using nginx to essentially look at the http referer header, and if its set to a specific value, and the page is index.html or /, redirect to a custom landing page. For example: Psuedo code if($page =…

---

## [How do I uninstall Ruby on Rails and do a clean install on windows?](https://www.ruby-forum.com/t/how-do-i-uninstall-ruby-on-rails-and-do-a-clean-install-on-windows/208218)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [June 12, 2011, 5:22pm UTC](https://www.ruby-forum.com/t/how-do-i-uninstall-ruby-on-rails-and-do-a-clean-install-on-windows/208218 "2011-06-12T17:22:19Z")

</div>

Hi, I am using ruby 1.8,How do I uninstall Ruby on Rails and do a clean installon windows. Cheers, Sai

---

## [Ssb - question](https://www.ruby-forum.com/t/ssb-question/243288)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [September 8, 2015, 7:13pm UTC](https://www.ruby-forum.com/t/ssb-question/243288 "2015-09-08T19:13:18Z")

</div>

Hi everybody Im trying to make SSB modulation with Hilbert transform. And Im using IQ modulator here is schema: http://postimg.org/image/gms5srret/ And I have a question. In Frequency domain there should be one peak…

---

## [Coding Ruby on iPad](https://www.ruby-forum.com/t/coding-ruby-on-ipad/229254)

<div class="topic-metadata">

**Author:** [@rogerioju](https://www.ruby-forum.com/u/rogerioju)\
**Replies:** 4\
**Last updated:** [January 11, 2013, 9:32pm UTC](https://www.ruby-forum.com/t/coding-ruby-on-ipad/229254 "2013-01-11T21:32:56Z")

</div>

Does anybody know any free application to code and run Ruby on an iPad?

---

## [Ruby on Rails - send\_file](https://www.ruby-forum.com/t/ruby-on-rails-send-file/207538)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [May 30, 2011, 3:58pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-send-file/207538 "2011-05-30T15:58:57Z")

</div>

I am using the send\_file method to download a file. It works fine on my local machine. But it’s not working on the server - it returns a blank file. code: send\_file Rails.root.join(‘public’, ‘uploads’) + (uploaded\_f…

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

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