# Top

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

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

---

## [Create Permalink Dynamically](https://www.ruby-forum.com/t/create-permalink-dynamically/217778)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [March 12, 2012, 9:03pm UTC](https://www.ruby-forum.com/t/create-permalink-dynamically/217778 "2012-03-12T21:03:16Z")

</div>

I’m trying to add facebook comments to my site and when I get teh code I"m presented with the following: \<div id="fb-root"\>\</div\> \<script\>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)\[0\]; if (d.getEleme…

---

## [\[ANN\] Ruby-GNOME2 1.1.6](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-1-6/224919)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [December 12, 2012, 9:49pm UTC](https://www.ruby-forum.com/t/ann-ruby-gnome2-1-1-6/224919 "2012-12-12T21:49:51Z")

</div>

Hi, The Ruby-GNOME2 project released Ruby-GNOME2 1.1.6: http://ruby-gnome2.sourceforge.jp/hiki.cgi?News\_20121202\_1 This is Ruby 2.0.0 support release! === Changes ==== All Fixes Fixed install error on Ruby 2.0.0. …

---

## [Question sur les routes](https://www.ruby-forum.com/t/question-sur-les-routes/193586)

<div class="topic-metadata">

**Author:** [@lilyweb](https://www.ruby-forum.com/u/lilyweb)\
**Replies:** 5\
**Last updated:** [August 20, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/question-sur-les-routes/193586 "2010-08-20T18:43:19Z")

</div>

Bon, une question parce que j’en ai assez de lutter avec les routes dÃ¨s que j’ajoute une action dans un controller existant. Ca m’est arrivÃ© plusieurs fois dÃ©jÃ . Dans un controller gÃ©nÃ©rÃ© par un scaffold, j’ajo…

---

## [Templat rails : option -m sous Linux?](https://www.ruby-forum.com/t/templat-rails-option-m-sous-linux/172579)

<div class="topic-metadata">

**Author:** [@babiben](https://www.ruby-forum.com/u/babiben)\
**Replies:** 5\
**Last updated:** [July 24, 2009, 2:42pm UTC](https://www.ruby-forum.com/t/templat-rails-option-m-sous-linux/172579 "2009-07-24T14:42:13Z")

</div>

bonjour, je me demandais comment faire pour crÃ©er une application rails avec un template sous ubuntu dans la mesure ou l’option ‘-m template.rb’ ne fonctionne pas. Sous Windows, aucun problÃ¨me! Elle est prise en co…

---

## [Functional test case and the setup method](https://www.ruby-forum.com/t/functional-test-case-and-the-setup-method/125606)

<div class="topic-metadata">

**Author:** [@reacher](https://www.ruby-forum.com/u/reacher)\
**Replies:** 5\
**Last updated:** [September 17, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/functional-test-case-and-the-setup-method/125606 "2008-09-17T16:11:56Z")

</div>

I noticed that in my unit test case, i can define a setup method which gets called before all my unit tests. This does not work however for functional test cases. Is this intended, or do I have something screwed up?…

---

## [\[ANN\] Simpler reorder extension](https://www.ruby-forum.com/t/ann-simpler-reorder-extension/120664)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 5\
**Last updated:** [November 21, 2007, 9:13pm UTC](https://www.ruby-forum.com/t/ann-simpler-reorder-extension/120664 "2007-11-21T21:13:07Z")

</div>

With Adam’s permission, I have replaced the reorder extension in the Radiant repository with the simpler one I developed recently. Instead of adding a separate view with drag-and-drop, it adds up/down/top/bottom butt…

---

## [Problem with win32ole, sapi5](https://www.ruby-forum.com/t/problem-with-win32ole-sapi5/54545)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 5\
**Last updated:** [June 13, 2006, 3:25pm UTC](https://www.ruby-forum.com/t/problem-with-win32ole-sapi5/54545 "2006-06-13T15:25:26Z")

</div>

Hi all, Ruby 1.8.4 (both installer and hand built) win32-sapi 0.1.3 Why does my attempt to set the voice fail? C:\\eclipse\\workspace\\win32-sapi\>c:\\ruby184\\bin\\irb irb(main):001:0\> require ‘win32/sapi5’ =\> true irb(…

---

## [Creating table and importing data with Ruby](https://www.ruby-forum.com/t/creating-table-and-importing-data-with-ruby/48761)

<div class="topic-metadata">

**Author:** [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Replies:** 5\
**Last updated:** [November 30, 2005, 3:37pm UTC](https://www.ruby-forum.com/t/creating-table-and-importing-data-with-ruby/48761 "2005-11-30T15:37:09Z")

</div>

Hello, I want to make a new Rails application, but I hate SQL. So I wanted to know if it was possible to do that with Ruby itself. To create the data structure, I have the following script: require “rubygems” requ…

---

## [RMagick 1.9.3: examples/histogram.rb - erro](https://www.ruby-forum.com/t/rmagick-1-9-3-examples-histogram-rb-erro/47831)

<div class="topic-metadata">

**Author:** [@ces.fci.junk](https://www.ruby-forum.com/u/ces.fci.junk)\
**Replies:** 5\
**Last updated:** [November 14, 2005, 11:44pm UTC](https://www.ruby-forum.com/t/rmagick-1-9-3-examples-histogram-rb-erro/47831 "2005-11-14T23:44:37Z")

</div>

Trying to run the histogram.rb ~/$myimage produces the following error: Creating b194000514\_7064\_Histogram.miffhistogram.rb:180:in histogram': undefined method+’ for nil:NilClass (NoMethodError) from histogram.rb:179:i…

---

## [Parsing HTML tables](https://www.ruby-forum.com/t/parsing-html-tables/164391)

<div class="topic-metadata">

**Author:** [@ertai](https://www.ruby-forum.com/u/ertai)\
**Replies:** 2\
**Last updated:** [March 31, 2009, 10:35pm UTC](https://www.ruby-forum.com/t/parsing-html-tables/164391 "2009-03-31T22:35:57Z")

</div>

Hi everybody, I’m searching for a way to write a beautidull code which parse an HTML table. In fact, the table is dynamic. It always have three columns but have randoms lines. In each “line” ( ) I want to extract th…

---

## [Moving average and history](https://www.ruby-forum.com/t/moving-average-and-history/159854)

<div class="topic-metadata">

**Author:** [@pytlik](https://www.ruby-forum.com/u/pytlik)\
**Replies:** 2\
**Last updated:** [February 10, 2009, 6:21pm UTC](https://www.ruby-forum.com/t/moving-average-and-history/159854 "2009-02-10T18:21:07Z")

</div>

Hi, I was about to write a block which calculates the moving average over a whole vector, when I stumbled upon the way the current moving average blocks handle the history. Here’s the code for the float version: int …

---

## [SSI with MEMCACHED down](https://www.ruby-forum.com/t/ssi-with-memcached-down/142839)

<div class="topic-metadata">

**Author:** [@vchav](https://www.ruby-forum.com/u/vchav)\
**Replies:** 2\
**Last updated:** [July 14, 2008, 2:02am UTC](https://www.ruby-forum.com/t/ssi-with-memcached-down/142839 "2008-07-14T02:02:04Z")

</div>

Hi, I made several test on my servers to use memcached with ssi and so make my web application faster. It’s really a great improvement and I’m glad to use it but… I think I have a problem when the memcached server is…

---

## [Trouble setting up debugger (ruby-debug in Rails 2.0)](https://www.ruby-forum.com/t/trouble-setting-up-debugger-ruby-debug-in-rails-2-0/124541)

<div class="topic-metadata">

**Author:** [@donkeytastic](https://www.ruby-forum.com/u/donkeytastic)\
**Replies:** 2\
**Last updated:** [February 6, 2008, 3:58am UTC](https://www.ruby-forum.com/t/trouble-setting-up-debugger-ruby-debug-in-rails-2-0/124541 "2008-02-06T03:58:44Z")

</div>

So I’m a newbie, trying to get better with the testing and debugging. Upgraded to Rails 2.0 and decided to use the ruby-debug gem. Installed gem successfully… gem install ruby-debug Successfully installed ruby-debu…

---

## [Offerta di Lavoro - Zona Novara e Province limitrofe](https://www.ruby-forum.com/t/offerta-di-lavoro-zona-novara-e-province-limitrofe/241589)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [April 17, 2015, 2:23pm UTC](https://www.ruby-forum.com/t/offerta-di-lavoro-zona-novara-e-province-limitrofe/241589 "2015-04-17T14:23:20Z")

</div>

Andersen SpA, azienda specializzata in Pubblicità e Marketing, con sede in provincia di Novara, ricerca: Sviluppatore WEB Frontend/Backend con le seguenti caratteristiche: Utilizzo GNU/Linux (Ubuntu) Database relazio…

---

## [Rails for just querying the tables](https://www.ruby-forum.com/t/rails-for-just-querying-the-tables/224745)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 24, 2012, 1:57pm UTC](https://www.ruby-forum.com/t/rails-for-just-querying-the-tables/224745 "2012-11-24T13:57:06Z")

</div>

Hi friends, I have an application build on java and I was considering writing a small application on Jruby on rails to manage the java application. I am interested in just writing the rails application to query the ta…

---

## [Problem with regexp split](https://www.ruby-forum.com/t/problem-with-regexp-split/184376)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [March 2, 2010, 2:13am UTC](https://www.ruby-forum.com/t/problem-with-regexp-split/184376 "2010-03-02T02:13:45Z")

</div>

I am trying to split some text into an array seperated by one or more Here is some test code: s = “one two three four” p s.split(/( )+/); it should split into \[“one”,“two”,“three”,“four”\] because the / ( )+…

---

## [Stupid OpenStruct question](https://www.ruby-forum.com/t/stupid-openstruct-question/174267)

<div class="topic-metadata">

**Author:** [@itsterry](https://www.ruby-forum.com/u/itsterry)\
**Replies:** 8\
**Last updated:** [August 24, 2009, 12:59pm UTC](https://www.ruby-forum.com/t/stupid-openstruct-question/174267 "2009-08-24T12:59:06Z")

</div>

Ok - I know how to get the fields of an Openstruct object like so class OpenStruct def fields @table.keys.map{|k| k.to\_s} end end a = OpenStruc.new() a.foo = 1 a.bar = 2 a.fields -\> \[“foo”, “bar”\] Great - ok ho…

---

## [Type mismatch when calling Java method with a class (using .java\_class)](https://www.ruby-forum.com/t/type-mismatch-when-calling-java-method-with-a-class-using-java-class/166153)

<div class="topic-metadata">

**Author:** [@Menno\_Jonkers](https://www.ruby-forum.com/u/Menno_Jonkers)\
**Replies:** 8\
**Last updated:** [April 28, 2009, 4:25am UTC](https://www.ruby-forum.com/t/type-mismatch-when-calling-java-method-with-a-class-using-java-class/166153 "2009-04-28T04:25:56Z")

</div>

Hi, While porting some existing Java code to JRuby I’m running into an issue probably caused by my lack of knowlegde here. If someone could shed some light on this, that would be most helpful. I’ve reduced the proble…

---

## [The RSpec way of doing this? Need help on validating block](https://www.ruby-forum.com/t/the-rspec-way-of-doing-this-need-help-on-validating-block/154829)

<div class="topic-metadata">

**Author:** [@hoshbad](https://www.ruby-forum.com/u/hoshbad)\
**Replies:** 3\
**Last updated:** [December 4, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/the-rspec-way-of-doing-this-need-help-on-validating-block/154829 "2008-12-04T18:53:19Z")

</div>

Hello, I’m back again with more questions about mocks and how to do good testing in general. Let’s say I’m writing this EmailSender class and I want to make it totally awesomely tested with RSpec. Here’s how far I’ve …

---

## [Jquery con rails](https://www.ruby-forum.com/t/jquery-con-rails/140873)

<div class="topic-metadata">

**Author:** [@leonard2](https://www.ruby-forum.com/u/leonard2)\
**Replies:** 8\
**Last updated:** [August 27, 2008, 9:37pm UTC](https://www.ruby-forum.com/t/jquery-con-rails/140873 "2008-08-27T21:37:03Z")

</div>

hola lista, estoy probando hacer los paneles que colapsan con jquery en rails, ya lei el topic que habla de jquery + rails en el foro pero sigo con le mismo problema. segun lo que lei hay que bajarse el fichero jquery…

---

## [Pareri su hosting RoR](https://www.ruby-forum.com/t/pareri-su-hosting-ror/105522)

<div class="topic-metadata">

**Author:** [@fire-dragon-dol](https://www.ruby-forum.com/u/fire-dragon-dol)\
**Replies:** 8\
**Last updated:** [June 1, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/pareri-su-hosting-ror/105522 "2007-06-01T17:06:26Z")

</div>

Ciao a tutti, al momento ho un dominio con dreamhost che utilizzo per fare varie prove con RoR. Ho notato questo : deploy difficoltoso o meglio macchinoso velocitÃ di esecuzione un pÃ² random, generalmente lenta per …

---

## [Gestione dati login: principiante in alto mare](https://www.ruby-forum.com/t/gestione-dati-login-principiante-in-alto-mare/85667)

<div class="topic-metadata">

**Author:** [@daneel\_olivaw](https://www.ruby-forum.com/u/daneel_olivaw)\
**Replies:** 8\
**Last updated:** [February 22, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/gestione-dati-login-principiante-in-alto-mare/85667 "2007-02-22T17:17:11Z")

</div>

Buongiorno lista. Sono un nuovo utente che dovendo realizzare un applicativo via web e dovendosi imparare un linguaggio dopo vari esperimenti ha deciso che Ruby Ã¨ quello piÃ¹ facile da usare :slight\_smile: Dovrei fa…

---

## [OT: Problem rotating logs with lighttpd](https://www.ruby-forum.com/t/ot-problem-rotating-logs-with-lighttpd/64472)

<div class="topic-metadata">

**Author:** [@ferblape](https://www.ruby-forum.com/u/ferblape)\
**Replies:** 8\
**Last updated:** [January 29, 2006, 3:21pm UTC](https://www.ruby-forum.com/t/ot-problem-rotating-logs-with-lighttpd/64472 "2006-01-29T15:21:03Z")

</div>

Hi everybody, this is a little OT. We are using Lighttpd as a webserver for Rails. Our problem is that when we rotate the logs everyday at the end of the process, lighttpd stops writing the logs. To solve this we have…

---

## [Correct way to exclude attributes from json serialization](https://www.ruby-forum.com/t/correct-way-to-exclude-attributes-from-json-serialization/202701)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 3, 2011, 10:18pm UTC](https://www.ruby-forum.com/t/correct-way-to-exclude-attributes-from-json-serialization/202701 "2011-02-03T22:18:42Z")

</div>

Hi I’m using Mongoid and Rails 3, and I want to serialize one of my mongoid documents to json for publishing via a controller, e.g. class ReportController \< ApplicationController respond\_to :json def show report…

---

## [Set locale](https://www.ruby-forum.com/t/set-locale/163245)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 4:48pm UTC](https://www.ruby-forum.com/t/set-locale/163245 "2009-03-18T16:48:37Z")

</div>

Is there any beter way to write this? before\_filter :set\_locale def set\_locale if(params\[:locale\] and params\[:locale\].match /^(da|en|de)$/) I18n.locale = params\[:locale\] elsif session\[:locale\] == nil xxx = request.…

---

## [Is there a length limitation on file extensions?](https://www.ruby-forum.com/t/is-there-a-length-limitation-on-file-extensions/244220)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 6\
**Last updated:** [March 9, 2016, 9:26pm UTC](https://www.ruby-forum.com/t/is-there-a-length-limitation-on-file-extensions/244220 "2016-03-09T21:26:17Z")

</div>

I am using Nginx to serve a website that hosts a .Net application. The file a user needs to download and that triggers installation is a \*.application file, and an MS Internet Information Server associates that with …

---

## [Empty string and nil values help needed](https://www.ruby-forum.com/t/empty-string-and-nil-values-help-needed/172435)

<div class="topic-metadata">

**Author:** [@cswebgrl](https://www.ruby-forum.com/u/cswebgrl)\
**Replies:** 6\
**Last updated:** [July 21, 2009, 7:12pm UTC](https://www.ruby-forum.com/t/empty-string-and-nil-values-help-needed/172435 "2009-07-21T19:12:11Z")

</div>

I have done many variations of this code. Essentially I want this to be true. assert\_equal ‘’, Org.field\_for(nil).display This is a polymorphic relationship. fieldable.rb def field\_for(purpose) self.fields.find( :…

---

## [No warning for redefine](https://www.ruby-forum.com/t/no-warning-for-redefine/150082)

<div class="topic-metadata">

**Author:** [@hanholl](https://www.ruby-forum.com/u/hanholl)\
**Replies:** 6\
**Last updated:** [October 4, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/no-warning-for-redefine/150082 "2008-10-04T16:45:51Z")

</div>

Hi, Shouldn’t the following: #!/usr/bin/ruby -w module Mixin def function puts ‘Mixin’ end end include Mixin def function puts ‘Main’ end function end of demo.rb produce something like: demo.rb:9: warning: …

---

## [Well behaving program suddenly seg faultiing Well behaving p](https://www.ruby-forum.com/t/well-behaving-program-suddenly-seg-faultiing-well-behaving-p/85303)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 6\
**Last updated:** [February 13, 2007, 1:37pm UTC](https://www.ruby-forum.com/t/well-behaving-program-suddenly-seg-faultiing-well-behaving-p/85303 "2007-02-13T13:37:52Z")

</div>

Well, I wrote a small gtk-ruby client for communicating to a server(which handles some home grown protocol), basically… i have couple of threads that keep reading from sockets and I am synchronizing Gtk::TextBuffer a…

---

## [Trying to understand method calls in a class body. Fundamentally, why doesn't this work?](https://www.ruby-forum.com/t/trying-to-understand-method-calls-in-a-class-body-fundamentally-why-doesnt-this-work/233346)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [December 6, 2014, 5:43pm UTC](https://www.ruby-forum.com/t/trying-to-understand-method-calls-in-a-class-body-fundamentally-why-doesnt-this-work/233346 "2014-12-06T17:43:19Z")

</div>

My understanding is that method calls in a class body are called as soon as the ruby interpreter interprets them. Are these not working because method calls in a class body are executed before the definition of the in…

---

## [NginX reverse proxy with iRedMail Apache2](https://www.ruby-forum.com/t/nginx-reverse-proxy-with-iredmail-apache2/240471)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 18, 2014, 7:07am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-with-iredmail-apache2/240471 "2014-04-18T07:07:55Z")

</div>

On an empty VPS hosting (Ubuntu 13.10 x64), I managed to run the base iRedMail installation with Apache2 and LDAP and my roundcubemail was accessible at: https://www.mydomain.com/mail then I installed NginX, shutdown…

---

## [Nginx segfaulting with mod\_security](https://www.ruby-forum.com/t/nginx-segfaulting-with-mod-security/240419)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 7\
**Last updated:** [April 15, 2014, 12:51am UTC](https://www.ruby-forum.com/t/nginx-segfaulting-with-mod-security/240419 "2014-04-15T00:51:39Z")

</div>

Hello, I have compiled nginx-1.5.13 with modsecurity-2.7.7 and am seeing occasional segfaults when sending requests to the server. mod\_security was compiled as a standalone module per the instructions made available …

---

## [Mysterious Application Error on Heroku](https://www.ruby-forum.com/t/mysterious-application-error-on-heroku/235015)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [May 26, 2013, 1:58am UTC](https://www.ruby-forum.com/t/mysterious-application-error-on-heroku/235015 "2013-05-26T01:58:55Z")

</div>

I converted my app to rails 4. My test suite is green and it runs great locally. I then deploy to Heroku and it crashed with no information at all. It just says “Application Error. An error occurred in the application …

---

## [Return ONLY total\_hits without querying from real database](https://www.ruby-forum.com/t/return-only-total-hits-without-querying-from-real-database/104260)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 7\
**Last updated:** [May 22, 2007, 4:18am UTC](https://www.ruby-forum.com/t/return-only-total-hits-without-querying-from-real-database/104260 "2007-05-22T04:18:05Z")

</div>

Hey guys, I know I can run search(q).total\_hits, but if I try to put :limit=\>0 it gives me an error. I don’t want it actually query any of the results, I just want it to tell me how many total\_hits I would have if I w…

---

## [Resources, Modules, and Nesting (URL Helper errors)](https://www.ruby-forum.com/t/resources-modules-and-nesting-url-helper-errors/89835)

<div class="topic-metadata">

**Author:** [@stephanie](https://www.ruby-forum.com/u/stephanie)\
**Replies:** 7\
**Last updated:** [March 30, 2007, 1:34pm UTC](https://www.ruby-forum.com/t/resources-modules-and-nesting-url-helper-errors/89835 "2007-03-30T13:34:20Z")

</div>

Hi, I am trying to create REST routes non-standard setup. The rest url helpers give an error when I try to use a module controller for a nested resource. Works map.resources :bar, :controller =\> ‘module/bar’ Works …

---

## [Issue or even a problem with current release](https://www.ruby-forum.com/t/issue-or-even-a-problem-with-current-release/71742)

<div class="topic-metadata">

**Author:** [@Gregg\_Levine](https://www.ruby-forum.com/u/Gregg_Levine)\
**Replies:** 7\
**Last updated:** [October 12, 2006, 5:28am UTC](https://www.ruby-forum.com/t/issue-or-even-a-problem-with-current-release/71742 "2006-10-12T05:28:36Z")

</div>

Hello! On a whim I decided to download the currently available release for GNURadio. It complained that I needed the FFT package. I promptly found it at its location and built it, and installed it. The configure scri…

---

## [Nginx on host + nginx in jail - how to setup two servers?](https://www.ruby-forum.com/t/nginx-on-host-nginx-in-jail-how-to-setup-two-servers/198328)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 4\
**Last updated:** [October 31, 2010, 9:11am UTC](https://www.ruby-forum.com/t/nginx-on-host-nginx-in-jail-how-to-setup-two-servers/198328 "2010-10-31T09:11:09Z")

</div>

I have one nginx server on my host, whose connected to internet. I have second nginx in jail, whose has nonroutable ip. I want: nginx jail —\> nginx host —\> internet (world) How I can setup this? Proxy or sth? Posted …

---

## [Nginx and php (fast-cgi) hangs the connection](https://www.ruby-forum.com/t/nginx-and-php-fast-cgi-hangs-the-connection/177372)

<div class="topic-metadata">

**Author:** [@yacenty](https://www.ruby-forum.com/u/yacenty)\
**Replies:** 4\
**Last updated:** [October 19, 2009, 6:26pm UTC](https://www.ruby-forum.com/t/nginx-and-php-fast-cgi-hangs-the-connection/177372 "2009-10-19T18:26:17Z")

</div>

Hello from about month (moving to the nginx 7.61) I had a very big problem. My server suddenly stops to serving dynamic content. Static files are handled in regullar way but asking for php files gives nothing in the …

---

## [Is there any kind of doc on how to write textfilter plugins?](https://www.ruby-forum.com/t/is-there-any-kind-of-doc-on-how-to-write-textfilter-plugins/163812)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 4\
**Last updated:** [March 25, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/is-there-any-kind-of-doc-on-how-to-write-textfilter-plugins/163812 "2009-03-25T16:18:30Z")

</div>

Now that I’ve got my blog back on the air and up to Typo 5.2, I’m starting to get some ideas. Recently I’d started adding a re-tweet button to each article using tweetmeme.cm. This is pair of javascript tags which a…

---

## [Get Rid of Date in Migration Filename](https://www.ruby-forum.com/t/get-rid-of-date-in-migration-filename/148179)

<div class="topic-metadata">

**Author:** [@Trogdor](https://www.ruby-forum.com/u/Trogdor)\
**Replies:** 4\
**Last updated:** [September 10, 2008, 7:42am UTC](https://www.ruby-forum.com/t/get-rid-of-date-in-migration-filename/148179 "2008-09-10T07:42:16Z")

</div>

I was wondering how to get Rails 2.1 migrates to go from generating 20080910014108\_create\_table.rb-esque migrations to the old 22\_create\_table.rb style ones. I am sure that there is some sort of advantage in having ti…

---

## [Creating a child object - handling the parent reference?](https://www.ruby-forum.com/t/creating-a-child-object-handling-the-parent-reference/70791)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 4\
**Last updated:** [October 3, 2006, 11:44pm UTC](https://www.ruby-forum.com/t/creating-a-child-object-handling-the-parent-reference/70791 "2006-10-03T23:44:44Z")

</div>

All, Looking for a best practice here. I have an object, List, that I’m editing in a form. List is a collection of Target objects. One of the things that I can do in my List edit is create a new Target. I am trying…

---

## [Association problem](https://www.ruby-forum.com/t/association-problem/245345)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [April 20, 2019, 10:34pm UTC](https://www.ruby-forum.com/t/association-problem/245345 "2019-04-20T22:34:52Z")

</div>

What is the correct way to define one to many association in rails 5.we have currently the following migration files…we have to define products and categories tables such that one category has many products. class Cat…

---

## [Image Filter Error](https://www.ruby-forum.com/t/image-filter-error/240903)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [May 8, 2014, 6:44am UTC](https://www.ruby-forum.com/t/image-filter-error/240903 "2014-05-08T06:44:16Z")

</div>

Hi When doing resizing on the image, I got the error below gd-png: fatal libpng error: IDAT: CRC error gd-png error: setjmp returns error condition 22014/05/06 10:45:55 \[error\] 6137#0: \*4879 gdImageCreateFromPngPtr()…

---

## [Unable to compile gnuradio under MSVC - missing stdbool.h](https://www.ruby-forum.com/t/unable-to-compile-gnuradio-under-msvc-missing-stdbool-h/222693)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [September 7, 2012, 10:20pm UTC](https://www.ruby-forum.com/t/unable-to-compile-gnuradio-under-msvc-missing-stdbool-h/222693 "2012-09-07T22:20:53Z")

</div>

Dear list, I gitted the last revision of gnuradio and I cannot compile it under MSVC 2010 since stdbool.h is missing and macro COMPILER(MSVC) is not defined. I use Windows 7 x64 and MSVC 2010. Error 3 error C1189: #…

---

## [Weird Error when Adding ShareThis Hovering Buttons to Rails](https://www.ruby-forum.com/t/weird-error-when-adding-sharethis-hovering-buttons-to-rails/211706)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [September 13, 2011, 11:08am UTC](https://www.ruby-forum.com/t/weird-error-when-adding-sharethis-hovering-buttons-to-rails/211706 "2011-09-13T11:08:58Z")

</div>

Hi all, I am trying to add the ShareThis Hovering buttons to my Rails 3 application but have no luck. I got the embed code from ShareThis. In order to prove that the problem is specific to Rails, I put the same code …

---

## [Require 'wx' fails](https://www.ruby-forum.com/t/require-wx-fails/191083)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 5\
**Last updated:** [July 6, 2010, 6:31pm UTC](https://www.ruby-forum.com/t/require-wx-fails/191083 "2010-07-06T18:31:03Z")

</div>

I’ve recently reloaded my system. For some reason, I can’t get wxruby to initialize. In irb, I see the following require ‘rubygems’ require ‘wx’ LoadError: libwx\_gtk2u\_media-2.8.so.0: cannot open shared object file: …

---

## [Control of Priority Queue Order? And size limits on queues?](https://www.ruby-forum.com/t/control-of-priority-queue-order-and-size-limits-on-queues/176464)

<div class="topic-metadata">

**Author:** [@masonkessinger](https://www.ruby-forum.com/u/masonkessinger)\
**Replies:** 5\
**Last updated:** [October 2, 2009, 8:03pm UTC](https://www.ruby-forum.com/t/control-of-priority-queue-order-and-size-limits-on-queues/176464 "2009-10-02T20:03:51Z")

</div>

I’ve successfully used the Priority Queue to sort ascending items for solving the 8-puzzle problem. I noticed that the Priority Queue method had a unique way of sorting items with matching keys. It puts the newest …

---

## [Some attributes not updated when validation fails?](https://www.ruby-forum.com/t/some-attributes-not-updated-when-validation-fails/69443)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 5\
**Last updated:** [September 25, 2006, 8:28pm UTC](https://www.ruby-forum.com/t/some-attributes-not-updated-when-validation-fails/69443 "2006-09-25T20:28:23Z")

</div>

I have what I think is a simply question. If I call update\_attributes(params\[:whatever\]) to update my attributes for object :whatever, does the attribute updating stop as soon as any validation rule fails? Assume 5 a…

---

## [Conditional extend of active record](https://www.ruby-forum.com/t/conditional-extend-of-active-record/64616)

<div class="topic-metadata">

**Author:** [@dang](https://www.ruby-forum.com/u/dang)\
**Replies:** 5\
**Last updated:** [August 16, 2006, 6:25am UTC](https://www.ruby-forum.com/t/conditional-extend-of-active-record/64616 "2006-08-16T06:25:00Z")

</div>

Hi list, I’m trying to figure out the best way to add some functionality to active record. I have a table of files, and need to write a set of core functions that do different things depending on the type of file eg: …

---

## [XML to Database via ActiveRecord](https://www.ruby-forum.com/t/xml-to-database-via-activerecord/50064)

<div class="topic-metadata">

**Author:** [@vodex](https://www.ruby-forum.com/u/vodex)\
**Replies:** 5\
**Last updated:** [December 14, 2005, 12:04am UTC](https://www.ruby-forum.com/t/xml-to-database-via-activerecord/50064 "2005-12-14T00:04:06Z")

</div>

Hi all, First Post. I’m thinking of doing a Rails app where some source data comes in from a XML file. I’d like to think there’s some lovely abstract helper for turning an XML doc into a bunch of ActiveRecord objects …

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

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