# Top

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

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

---

## [Does Ruby have support for serial connections - RS232?](https://www.ruby-forum.com/t/does-ruby-have-support-for-serial-connections-rs232/66928)

<div class="topic-metadata">

**Author:** [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Replies:** 3\
**Last updated:** [September 1, 2006, 3:15am UTC](https://www.ruby-forum.com/t/does-ruby-have-support-for-serial-connections-rs232/66928 "2006-09-01T03:15:34Z")

</div>

Hi everyone, I would love to stick to Ruby with this problem - but is it possible in Ruby to interface with a device through a RS232 serial connection? I want to connect my Windows XP computer with a medical device th…

---

## ["Unrequire" a file?](https://www.ruby-forum.com/t/unrequire-a-file/58968)

<div class="topic-metadata">

**Author:** [@tuka](https://www.ruby-forum.com/u/tuka)\
**Replies:** 3\
**Last updated:** [April 27, 2006, 6:15pm UTC](https://www.ruby-forum.com/t/unrequire-a-file/58968 "2006-04-27T18:15:26Z")

</div>

Hi, after making changes to a particular file, I would either like to overwrite the already included one or ‘unrequire’ the existing one. Is this possible ? My tests below indicate it is not… TIA, Tuka C:\\Ruby\\hot…

---

## [Active Development?](https://www.ruby-forum.com/t/active-development/47492)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 3\
**Last updated:** [August 21, 2005, 3:22am UTC](https://www.ruby-forum.com/t/active-development/47492 "2005-08-21T03:22:27Z")

</div>

Is this still under active development? I see a ton of patches sitting there untouched for several weeks. I also see that milestone 0.2 is released, but is not downloadable. Why are the patches not committed or rej…

---

## [Render :collection calling partial with phantom object?](https://www.ruby-forum.com/t/render-collection-calling-partial-with-phantom-object/203871)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [March 2, 2011, 9:45am UTC](https://www.ruby-forum.com/t/render-collection-calling-partial-with-phantom-object/203871 "2011-03-02T09:45:50Z")

</div>

I have two models with a straightforward has\_many / belongs\_to relationship: class Premise \< ActiveRecord::Base has\_many :metered\_services, :dependent =\> :destroy … end class MeteredService \< ActiveRecord::Base be…

---

## [Determining who is calling a helper method](https://www.ruby-forum.com/t/determining-who-is-calling-a-helper-method/194351)

<div class="topic-metadata">

**Author:** [@proximal](https://www.ruby-forum.com/u/proximal)\
**Replies:** 6\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/determining-who-is-calling-a-helper-method/194351 "2010-09-06T16:39:49Z")

</div>

I have a view calling a helper method is\_disabled like this : \<%= form.input :company, :label =\> “Company name”, :input\_html =\> { :disabled =\> is\_disabled } %\> How can I determine in my helper which element (here :com…

---

## [\[Bug #1954\] line number 0?](https://www.ruby-forum.com/t/bug-1954-line-number-0/173961)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 6\
**Last updated:** [March 3, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/bug-1954-line-number-0/173961 "2010-03-03T18:58:57Z")

</div>

Bug #1954: line number 0? http://redmine.ruby-lang.org/issues/show/1954 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core ruby -v: ruby 1.9.2dev (2009-08-18 trunk 245…

---

## [Seed fu and restful\_authentication](https://www.ruby-forum.com/t/seed-fu-and-restful-authentication/171896)

<div class="topic-metadata">

**Author:** [@rantamplan](https://www.ruby-forum.com/u/rantamplan)\
**Replies:** 6\
**Last updated:** [July 19, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/seed-fu-and-restful-authentication/171896 "2009-07-19T17:31:46Z")

</div>

Hi, I am trying to use both plugins in my application but I couldn’t get it to work. I have included the following in my users.rb(fixtures directory): user = User.seed(:login) do |s| s.login = “admin” s.email = “re…

---

## [\[Bug:1.9\] \`initialize\_copy': wrong argument type #\<Class:0x825d23c\> (expected Data) (TypeError)](https://www.ruby-forum.com/t/bug-1-9-initialize-copy-wrong-argument-type-class-0x825d23c-expected-data-typeerror/156264)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 6\
**Last updated:** [December 26, 2008, 6:23am UTC](https://www.ruby-forum.com/t/bug-1-9-initialize-copy-wrong-argument-type-class-0x825d23c-expected-data-typeerror/156264 "2008-12-26T06:23:30Z")

</div>

e$B0J2\<$N%W%m%0%i%\`$G!"e(B wrong argument type #Class:0x825d23c (expected Data) (TypeError) e$B$H$$$&4qL/$J%(%i!\<$,=P$^$9!#e(B % ./ruby -ve ‘f = open("/tmp/x", “w”) 1000.times { f.dup.print “a” } GC.start ’ ruby 1…

---

## [Running usrp2\_wfm\_rcv.py](https://www.ruby-forum.com/t/running-usrp2-wfm-rcv-py/153214)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [November 14, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/running-usrp2-wfm-rcv-py/153214 "2008-11-14T17:04:23Z")

</div>

Hello, -I tried to run usrp2\_wfm\_rcv.py to test my USRP2 with a BasicRX board and I got the following error. Â¨AttributeError: ‘usrp2\_source\_32fc\_sptr’ object has no attribute 'adc\_rate’Â¨ -After I set the adc\_rate=…

---

## [Libxml on Jruby](https://www.ruby-forum.com/t/libxml-on-jruby/148490)

<div class="topic-metadata">

**Author:** [@mikael1991](https://www.ruby-forum.com/u/mikael1991)\
**Replies:** 6\
**Last updated:** [September 15, 2008, 8:33am UTC](https://www.ruby-forum.com/t/libxml-on-jruby/148490 "2008-09-15T08:33:51Z")

</div>

Hi I’m currently doing mostly my ruby work on jruby and really enjoying it, it makes deploying to app servers so easy :). However being that there is so few good xml libraries on ruby i’ve to use MRI to be able to ac…

---

## [Trouble with popup window](https://www.ruby-forum.com/t/trouble-with-popup-window/80615)

<div class="topic-metadata">

**Author:** [@shauna](https://www.ruby-forum.com/u/shauna)\
**Replies:** 6\
**Last updated:** [December 30, 2006, 11:27pm UTC](https://www.ruby-forum.com/t/trouble-with-popup-window/80615 "2006-12-30T23:27:37Z")

</div>

I would like to have a “Print” link which when clicked, calls my print\_list method to populate the print\_list view, then opens the print\_list view in a NEW browser window. I’m using Firefox 1.5.0.9. So far I have: \<%…

---

## [Rails install question](https://www.ruby-forum.com/t/rails-install-question/80655)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 6\
**Last updated:** [December 30, 2006, 7:47am UTC](https://www.ruby-forum.com/t/rails-install-question/80655 "2006-12-30T07:47:17Z")

</div>

I get this and I am wondering if it “hurts” anything: While generating documentation for activesupport-1.3.1 … MESSAGE: Unhandled special: Special: type=17, text="" … RDOC args: --ri --op /opt/local/lib/ruby/gems/1…

---

## [Page.update\_html not executed](https://www.ruby-forum.com/t/page-update-html-not-executed/63064)

<div class="topic-metadata">

**Author:** [@Jean-Etienne](https://www.ruby-forum.com/u/Jean-Etienne)\
**Replies:** 6\
**Last updated:** [June 12, 2006, 5:14pm UTC](https://www.ruby-forum.com/t/page-update-html-not-executed/63064 "2006-06-12T17:14:38Z")

</div>

Hi, when doing: render :update do |page| page.replace\_html ‘suggested\_contractors’, :partial =\> ‘contractors’ page.visual\_effect :highlight, ‘suggested\_contractors’ end I got js as output, it is not executed, retu…

---

## [Net::FTP broken on OS X (Tiger) / Ruby 1.8.2](https://www.ruby-forum.com/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/57971)

<div class="topic-metadata">

**Author:** [@subimage](https://www.ruby-forum.com/u/subimage)\
**Replies:** 6\
**Last updated:** [April 18, 2006, 5:32am UTC](https://www.ruby-forum.com/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/57971 "2006-04-18T05:32:06Z")

</div>

I’m running Ruby 1.8.2 on my Tiger machine. I’m trying to use Net::FTP on the machine. I can login to the server fine, but when I try a ftp.list IRB just hangs, then gives me something like this: Net::FTPTempError: 4…

---

## [Ferret 0.2.1 (port of Apache Lucene to pure ruby)](https://www.ruby-forum.com/t/ferret-0-2-1-port-of-apache-lucene-to-pure-ruby/47828)

<div class="topic-metadata">

**Author:** [@dbalmain.ml](https://www.ruby-forum.com/u/dbalmain.ml)\
**Replies:** 6\
**Last updated:** [November 15, 2005, 6:24pm UTC](https://www.ruby-forum.com/t/ferret-0-2-1-port-of-apache-lucene-to-pure-ruby/47828 "2005-11-15T18:24:32Z")

</div>

Hi Folks, I’ve just released version 0.2.1. Since my last announcement there have been quit a few changes, mostly to the Index::Index interface. We also have a great new logo thanks to Jan P… You can check it all out…

---

## [Problem With Active Record. Associations Showing Error ..ple](https://www.ruby-forum.com/t/problem-with-active-record-associations-showing-error-ple/195120)

<div class="topic-metadata">

**Author:** [@sudhirsb2003](https://www.ruby-forum.com/u/sudhirsb2003)\
**Replies:** 7\
**Last updated:** [September 17, 2010, 12:22pm UTC](https://www.ruby-forum.com/t/problem-with-active-record-associations-showing-error-ple/195120 "2010-09-17T12:22:15Z")

</div>

i am stuck somewhere with The Acrive record association . whenever i try to get the value from another table it gives me the foolowing error “undefined method \`journal\_name’ for nil:NilClass” MY Controller def index …

---

## [Scaffolding question](https://www.ruby-forum.com/t/scaffolding-question/169642)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 7\
**Last updated:** [June 6, 2009, 6:20am UTC](https://www.ruby-forum.com/t/scaffolding-question/169642 "2009-06-06T06:20:41Z")

</div>

I’m starting to get involved with models in rails and so I need to make sure I understand exactly what I’m trying to do. Let’s look at a quick example: One table that I will be creating is a rushing\_offense table for …

---

## [Issue with the object cache](https://www.ruby-forum.com/t/issue-with-the-object-cache/162054)

<div class="topic-metadata">

**Author:** [@luis](https://www.ruby-forum.com/u/luis)\
**Replies:** 7\
**Last updated:** [March 5, 2009, 7:50pm UTC](https://www.ruby-forum.com/t/issue-with-the-object-cache/162054 "2009-03-05T19:50:52Z")

</div>

Hi, I am getting a method\_missing error when I run my application in the production environment unless I set config.cache\_classes = false in config/environments/production.rb. This happens in Rails 2.2.2 but not in R…

---

## [Complex Forms Misbehavior (possibly a Rails bug)](https://www.ruby-forum.com/t/complex-forms-misbehavior-possibly-a-rails-bug/124168)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 7\
**Last updated:** [December 26, 2007, 8:24am UTC](https://www.ruby-forum.com/t/complex-forms-misbehavior-possibly-a-rails-bug/124168 "2007-12-26T08:24:19Z")

</div>

Hi Leuddens This is a tricky and lengthy one that’s about to blow my current project to little glittering pieces :wink: I’m using select multiple in a subform (as described in Ryan’s excellent Complex Forms screencas…

---

## [Efficiency of string parsing](https://www.ruby-forum.com/t/efficiency-of-string-parsing/88550)

<div class="topic-metadata">

**Author:** [@Kev](https://www.ruby-forum.com/u/Kev)\
**Replies:** 7\
**Last updated:** [March 13, 2007, 9:40am UTC](https://www.ruby-forum.com/t/efficiency-of-string-parsing/88550 "2007-03-13T09:40:33Z")

</div>

I have written a loop to basically parse a string, and at every 50th character check to see if is a space, if not, work back until it finds one, then insert a newline. I am turning masses of text (copy) from a DB int…

---

## [Mes RJS ne fonctionnent plus](https://www.ruby-forum.com/t/mes-rjs-ne-fonctionnent-plus/77794)

<div class="topic-metadata">

**Author:** [@teddio](https://www.ruby-forum.com/u/teddio)\
**Replies:** 7\
**Last updated:** [December 1, 2006, 12:25pm UTC](https://www.ruby-forum.com/t/mes-rjs-ne-fonctionnent-plus/77794 "2006-12-01T12:25:36Z")

</div>

Salut tout le monde, J’ai plusieurs petites parties de code en RJS dans mon application. RÃ©cemment, l’application a changÃ© de serveur (sur lequel il y a Ruby 1.8.5 et Rails 1.1.6). Depuis le changement, les RJS ne f…

---

## [GEM Problem](https://www.ruby-forum.com/t/gem-problem/74588)

<div class="topic-metadata">

**Author:** [@rafa](https://www.ruby-forum.com/u/rafa)\
**Replies:** 7\
**Last updated:** [November 7, 2006, 11:02am UTC](https://www.ruby-forum.com/t/gem-problem/74588 "2006-11-07T11:02:11Z")

</div>

Hi guys im getting this error using gems on windows im behind a proxy but i set it to work from the command line. So i really don’t know what the problem is. Thanks in advance Error message ERROR: While executing ge…

---

## [Layouts](https://www.ruby-forum.com/t/layouts/99348)

<div class="topic-metadata">

**Author:** [@ben-v](https://www.ruby-forum.com/u/ben-v)\
**Replies:** 7\
**Last updated:** [July 22, 2006, 4:27am UTC](https://www.ruby-forum.com/t/layouts/99348 "2006-07-22T04:27:18Z")

</div>

I am trying to set the layout for certain actions within a controller, but not others, but doing class JoinController \< ApplicationController layout ‘form’ def index end def add end end sets layouts for all acti…

---

## [Server out to excel](https://www.ruby-forum.com/t/server-out-to-excel/60896)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 7\
**Last updated:** [May 19, 2006, 6:45am UTC](https://www.ruby-forum.com/t/server-out-to-excel/60896 "2006-05-19T06:45:28Z")

</div>

How would one server out to excel a html table with the mime/content type application/vnd.ms-excel ? In PHP it would be something like ?php header(“Content-Type: application/vnd.ms-excel”); But how do I do this i…

---

## [Are there any disadvantages to using locomotive](https://www.ruby-forum.com/t/are-there-any-disadvantages-to-using-locomotive/74264)

<div class="topic-metadata">

**Author:** [@brucebalmer](https://www.ruby-forum.com/u/brucebalmer)\
**Replies:** 7\
**Last updated:** [December 22, 2005, 10:21pm UTC](https://www.ruby-forum.com/t/are-there-any-disadvantages-to-using-locomotive/74264 "2005-12-22T22:21:13Z")

</div>

Hi: I had some issues and so switched to locomotive. I find it awesome. 1 click and its done. My question - what disadvantages are there, if any? What do I lose by using such a convenient solution. speculation as we…

---

## [Library for Chi square test for independence on contingency table?](https://www.ruby-forum.com/t/library-for-chi-square-test-for-independence-on-contingency-table/264390)

<div class="topic-metadata">

**Author:** [@oliver.czulo](https://www.ruby-forum.com/u/oliver.czulo)\
**Replies:** 1\
**Last updated:** [October 29, 2023, 7:34am UTC](https://www.ruby-forum.com/t/library-for-chi-square-test-for-independence-on-contingency-table/264390 "2023-10-29T07:34:27Z")

</div>

I have a 2\*2 contingency table of the kind \[\[13,20\],\[9,15\]\] I would like to calculate a Chi square test of independence and have looked into various libraries (ruby-statistics, statsample, distribution) for a test th…

---

## [Filter\_proc does not work as expected](https://www.ruby-forum.com/t/filter-proc-does-not-work-as-expected/182180)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 1\
**Last updated:** [January 24, 2010, 12:04pm UTC](https://www.ruby-forum.com/t/filter-proc-does-not-work-as-expected/182180 "2010-01-24T12:04:00Z")

</div>

Hi there Since some days I’m developing a fulltext-search for our Bugzilla system. Initial development time was very short but now I’m working on some details and it does not work as expected. Basically it’s two diff…

---

## [Fyi: RubyGems patched to support module-based VERSION strings](https://www.ruby-forum.com/t/fyi-rubygems-patched-to-support-module-based-version-strings/163912)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 1\
**Last updated:** [March 26, 2009, 1:28pm UTC](https://www.ruby-forum.com/t/fyi-rubygems-patched-to-support-module-based-version-strings/163912 "2009-03-26T13:28:44Z")

</div>

Jason, fyi: Eric H. just applied my patch to RubyGems to better support module-based VERSION strings. \[#24392\] support module-based VERSION strings http://rubyforge.org/tracker/?func=detail&atid=577&aid=24392&group\_i…

---

## [Habtm and counter\_cache](https://www.ruby-forum.com/t/habtm-and-counter-cache/130528)

<div class="topic-metadata">

**Author:** [@foxbunny](https://www.ruby-forum.com/u/foxbunny)\
**Replies:** 1\
**Last updated:** [March 1, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/habtm-and-counter-cache/130528 "2008-03-01T23:08:56Z")

</div>

Hi, I’ve a set of two models in habtm relationship. However, since :counter\_cache can only be used on belongs\_to method, how can I implement the counter cache on habtm models? I have tried with after\_add and after\_re…

---

## [Order\_query finds next / previous Active Record(s) in one query](https://www.ruby-forum.com/t/order-query-finds-next-previous-active-record-s-in-one-query/240003)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [March 24, 2014, 12:32pm UTC](https://www.ruby-forum.com/t/order-query-finds-next-previous-active-record-s-in-one-query/240003 "2014-03-24T12:32:25Z")

</div>

order\_query gives you next or previous records relative to the current one efficiently. For example, you have a list of items, sorted by priority. You have 10,000 items! If you are showing the user a single item, how …

---

## ["gzip on" duplicates Content-Encoding header if an empty one already exists](https://www.ruby-forum.com/t/gzip-on-duplicates-content-encoding-header-if-an-empty-one-already-exists/234736)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [March 31, 2015, 12:20pm UTC](https://www.ruby-forum.com/t/gzip-on-duplicates-content-encoding-header-if-an-empty-one-already-exists/234736 "2015-03-31T12:20:25Z")

</div>

Hi, I have a (probably dodgy) application that is sending out uncompressed XML with the following header. That is, an empty Content-Encoding header. Content-Encoding: This works fine, until I enable gzip on Nginx 1.…

---

## [Eliminate Startup Delay?](https://www.ruby-forum.com/t/eliminate-startup-delay/232137)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [September 20, 2014, 10:11am UTC](https://www.ruby-forum.com/t/eliminate-startup-delay/232137 "2014-09-20T10:11:05Z")

</div>

I have been very tempted recently to give up JRuby in favour of Python. Part of the reason is that I have been dabbling with Arduinos and the Arduino community is more likely to be familiar with Python. And the other …

---

## [Java\_send with Java Array Parameter Type?](https://www.ruby-forum.com/t/java-send-with-java-array-parameter-type/228822)

<div class="topic-metadata">

**Author:** [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Replies:** 2\
**Last updated:** [May 9, 2013, 2:12am UTC](https://www.ruby-forum.com/t/java-send-with-java-array-parameter-type/228822 "2013-05-09T02:12:50Z")

</div>

All - I’m trying to use java\_send to call a Java class constructor that takes a byte array as its sole parameter. How do I specify the byte array? My best guess is: Message.java\_send(:new, \[Java::Lbyte\], byte\_data) …

---

## [Not getting timestamps from UHD received stream tags](https://www.ruby-forum.com/t/not-getting-timestamps-from-uhd-received-stream-tags/216524)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 7, 2012, 3:36am UTC](https://www.ruby-forum.com/t/not-getting-timestamps-from-uhd-received-stream-tags/216524 "2012-02-07T03:36:21Z")

</div>

I am trying to read incoming RX timestamps from the UHD sample stream. I’d like to calculate the approximate time a preamble is received in the OFDM code. The issue is that, despite getting incoming frames and pream…

---

## [DES3 encryption with jruby-openssl: output not matching command-line openssl output?](https://www.ruby-forum.com/t/des3-encryption-with-jruby-openssl-output-not-matching-command-line-openssl-output/185028)

<div class="topic-metadata">

**Author:** [@FineganS\_Richard\_SH](https://www.ruby-forum.com/u/FineganS_Richard_SH)\
**Replies:** 2\
**Last updated:** [March 12, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/des3-encryption-with-jruby-openssl-output-not-matching-command-line-openssl-output/185028 "2010-03-12T20:26:12Z")

</div>

Hello, I’m trying to encrypt some credit card numbers for later consumption by a .NET app, and I’m having trouble getting the output to match up…I’m following the guide from Ola B. here: http://olabini.com/blog/2008/…

---

## [Running code after a modal dialog is shown](https://www.ruby-forum.com/t/running-code-after-a-modal-dialog-is-shown/176054)

<div class="topic-metadata">

**Author:** [@Ben\_Van\_Hof](https://www.ruby-forum.com/u/Ben_Van_Hof)\
**Replies:** 2\
**Last updated:** [September 24, 2009, 6:27pm UTC](https://www.ruby-forum.com/t/running-code-after-a-modal-dialog-is-shown/176054 "2009-09-24T18:27:32Z")

</div>

Hi all, I’m looking for a way to get a block of code to execute once a modal dialog has been displayed (via a call to show\_modal.) I was hoping to find some event that would fire when the window was shown, but the on…

---

## [Pass a global variable from a partial from javascript](https://www.ruby-forum.com/t/pass-a-global-variable-from-a-partial-from-javascript/160606)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [February 18, 2009, 9:39am UTC](https://www.ruby-forum.com/t/pass-a-global-variable-from-a-partial-from-javascript/160606 "2009-02-18T09:39:16Z")

</div>

I have a situation that I am not sure how to approach. I have a global variable @date which gets loaded in an ajax action: def calendar\_ajax @date = Time.parse("#{params\[:date\]} || Time.now.utc") This @date is used …

---

## [How to pass referer using mod\_proxy?](https://www.ruby-forum.com/t/how-to-pass-referer-using-mod-proxy/154230)

<div class="topic-metadata">

**Author:** [@Walter\_Cruz](https://www.ruby-forum.com/u/Walter_Cruz)\
**Replies:** 2\
**Last updated:** [November 27, 2008, 10:03pm UTC](https://www.ruby-forum.com/t/how-to-pass-referer-using-mod-proxy/154230 "2008-11-27T22:03:02Z")

</div>

Hi all! I use nginx as a proxy to apache, but I got a problem: the referer header is not passed to apache. How can I configure nginx to do that?

---

## [RGB-Farben in RMagick](https://www.ruby-forum.com/t/rgb-farben-in-rmagick/152471)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 2\
**Last updated:** [November 4, 2008, 11:39am UTC](https://www.ruby-forum.com/t/rgb-farben-in-rmagick/152471 "2008-11-04T11:39:25Z")

</div>

Hallo, weiÃŸ zufÃ¤llig jemand, wie man eine Farbe mit RGB-Werten in RMagick definiert. Wenn ich es richtig sehe, dann gibt es da kein Color-Objekt, oder? test\_image = Image.new(2400,1620) meine\_farbe = Color.ne…

---

## [Rake db:schema:load from capistrano](https://www.ruby-forum.com/t/rake-dbload-from-capistrano/138250)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 2\
**Last updated:** [June 8, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/rake-dbload-from-capistrano/138250 "2008-06-08T19:14:01Z")

</div>

Hi, I’m not sure why this isn’t working form me. In my deploy script I have the following task: desc “cold deploy” task :cold do update mongrel.cluster.configure run “cd #{release\_path}” sudo “rake db:schema:load…

---

## [Redirecto\_to within helpers](https://www.ruby-forum.com/t/redirecto-to-within-helpers/126217)

<div class="topic-metadata">

**Author:** [@kabish](https://www.ruby-forum.com/u/kabish)\
**Replies:** 2\
**Last updated:** [January 16, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/redirecto-to-within-helpers/126217 "2008-01-16T14:52:18Z")

</div>

Hi all, In one of my helpers I would like to call a redirect\_to(url) action. I know the helpers are supposed almost only for formatting the view purposes but it’s the best way I have found to do what I want. If I call …

---

## [Has\_many\_polymorphs\_plugin breaks routes](https://www.ruby-forum.com/t/has-many-polymorphs-plugin-breaks-routes/115797)

<div class="topic-metadata">

**Author:** [@Sean\_Schofield](https://www.ruby-forum.com/u/Sean_Schofield)\
**Replies:** 2\
**Last updated:** [October 8, 2007, 1:12am UTC](https://www.ruby-forum.com/t/has-many-polymorphs-plugin-breaks-routes/115797 "2007-10-08T01:12:17Z")

</div>

Just started playing with Engines (excellent work btw.) Anyways everything was working fine in my plugin until I added has\_many\_with\_polymorphs plugin into the mix. Then all of a sudden my routes are broken. Everyt…

---

## [Build nginx on Mac OS X mavericks](https://www.ruby-forum.com/t/build-nginx-on-mac-os-x-mavericks/240092)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [March 27, 2014, 7:26pm UTC](https://www.ruby-forum.com/t/build-nginx-on-mac-os-x-mavericks/240092 "2014-03-27T19:26:23Z")

</div>

Hello, Has anyone tried building nginx code on Mac ? I get the following error while building. Have installed pcre and other needed libraries \*src/mail/ngx\_mail\_handler.c:1152:30: \*\*error: \*use of undeclared identifi…

---

## [Domain.com/phpmyadmin/index.php how-to?](https://www.ruby-forum.com/t/domain-com-phpmyadmin-index-php-how-to/205387)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [April 5, 2011, 10:17pm UTC](https://www.ruby-forum.com/t/domain-com-phpmyadmin-index-php-how-to/205387 "2011-04-05T22:17:45Z")

</div>

Hallo Everybody, I have a working default config, catching /index.html and /index.php fine (incl. passing php request to an upstream backend runing php-fpm) now i want the server to serve requests to ‘anydomain.com/…

---

## [How to start the ferret server in the production environment?](https://www.ruby-forum.com/t/how-to-start-the-ferret-server-in-the-production-environment/174654)

<div class="topic-metadata">

**Author:** [@SSSSSSSSSS\_SSSSSSSS](https://www.ruby-forum.com/u/SSSSSSSSSS_SSSSSSSS)\
**Replies:** 4\
**Last updated:** [September 10, 2009, 7:44am UTC](https://www.ruby-forum.com/t/how-to-start-the-ferret-server-in-the-production-environment/174654 "2009-09-10T07:44:55Z")

</div>

I have developed a rails app which used the ferret and acts\_as\_ferret plugin,but I never deployed a rails application,I wonder in the production environment,is it as easy as it is in the development environment?just …

---

## [Broken pipe when I write the payload to a pipe](https://www.ruby-forum.com/t/broken-pipe-when-i-write-the-payload-to-a-pipe/158483)

<div class="topic-metadata">

**Author:** [@Brook\_L](https://www.ruby-forum.com/u/Brook_L)\
**Replies:** 4\
**Last updated:** [June 29, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/broken-pipe-when-i-write-the-payload-to-a-pipe/158483 "2009-06-29T18:17:41Z")

</div>

Hi All, I am trying to write the payload to a pipe rather than to a file in benchmark\_ofdm\_rx.py. The script is attached below. However, I got the error ‘Broeken pipe’ when I run the script. Can anyone tell me why is…

---

## [Failing rspec story not causing a CruiseC ontrol.rb build to fail?](https://www.ruby-forum.com/t/failing-rspec-story-not-causing-a-cruisec-ontrol-rb-build-to-fail/138783)

<div class="topic-metadata">

**Author:** [@seanmctex](https://www.ruby-forum.com/u/seanmctex)\
**Replies:** 4\
**Last updated:** [May 27, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/failing-rspec-story-not-causing-a-cruisec-ontrol-rb-build-to-fail/138783 "2008-05-27T23:02:37Z")

</div>

We’ve just added rspec stories to our CruiseControl.rb build. When there’s a failing scenario we see the failure in the log output, but it doesn’t cause the CruiseControl build to fail. We’ve also just upgraded to t…

---

## [Respond\_to - same content, different mime type](https://www.ruby-forum.com/t/respond-to-same-content-different-mime-type/123883)

<div class="topic-metadata">

**Author:** [@nootch](https://www.ruby-forum.com/u/nootch)\
**Replies:** 4\
**Last updated:** [December 21, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/respond-to-same-content-different-mime-type/123883 "2007-12-21T19:46:04Z")

</div>

I have some basic respond\_to blocks that essentially look like this: respond\_to do |format| format.iphone { render } format.mobile { render } end This is working great right now and I have it all over the place in …

---

## [@courts et @clubs sont dans un bateau](https://www.ruby-forum.com/t/courts-et-clubs-sont-dans-un-bateau/104889)

<div class="topic-metadata">

**Author:** [@nibbler61](https://www.ruby-forum.com/u/nibbler61)\
**Replies:** 4\
**Last updated:** [May 23, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/courts-et-clubs-sont-dans-un-bateau/104889 "2007-05-23T17:31:58Z")

</div>

Bonjour Ã tous, j’ai 2 models court et club club has\_many courts court belongs\_to club @clubs = Club.find\_by\_user\_id(current\_user) je voudrais que @courts me retourne tous les courts de tous les clubs qui correspo…

---

## [RJS, Prototype and finding out if object exists in the DOM](https://www.ruby-forum.com/t/rjs-prototype-and-finding-out-if-object-exists-in-the-dom/88668)

<div class="topic-metadata">

**Author:** [@zecko](https://www.ruby-forum.com/u/zecko)\
**Replies:** 4\
**Last updated:** [March 13, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/rjs-prototype-and-finding-out-if-object-exists-in-the-dom/88668 "2007-03-13T16:37:43Z")

</div>

i asked this allready in german on rubyforum.com and also on #rubyonrails (thanks again for your time, njero) http://forum.ruby-portal.de/viewtopic.php?t=4067 how is it possible to find out, if an object (div) exists …

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

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