# Top

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

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

---

## [Parsing json document](https://www.ruby-forum.com/t/parsing-json-document/204069)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 4, 2011, 1:54pm UTC](https://www.ruby-forum.com/t/parsing-json-document/204069 "2011-03-04T13:54:51Z")

</div>

Hi)) am just begening programming with ruby)) but there is a problem with parsing json document for example I type require ‘json’ JSON.parse ‘\[{“name”: “mike”}\]’ and there is eror \`require’: no such file to load –…

---

## [Firmware issue: Send a constant signal with the xcvr2450 dboard](https://www.ruby-forum.com/t/firmware-issue-send-a-constant-signal-with-the-xcvr2450-dboard/195040)

<div class="topic-metadata">

**Author:** [@Matthias\_SchSSS\_fer](https://www.ruby-forum.com/u/Matthias_SchSSS_fer)\
**Replies:** 3\
**Last updated:** [September 16, 2010, 8:23pm UTC](https://www.ruby-forum.com/t/firmware-issue-send-a-constant-signal-with-the-xcvr2450-dboard/195040 "2010-09-16T20:23:57Z")

</div>

Hi List, I’m currently working on a standalone firmware app for USRP2. My goal is to send a constant signal with the xcvr2450 dboard. I skipped the tuning via firmware by doing this prior from a host using the simple\_…

---

## [Rails, rake and crontab](https://www.ruby-forum.com/t/rails-rake-and-crontab/191505)

<div class="topic-metadata">

**Author:** [@addame](https://www.ruby-forum.com/u/addame)\
**Replies:** 3\
**Last updated:** [July 13, 2010, 5:29pm UTC](https://www.ruby-forum.com/t/rails-rake-and-crontab/191505 "2010-07-13T17:29:51Z")

</div>

I have a rails rake task which runs just fine. I want this task to be run periodically by crontab so I added it to crontab as follows : 0,30,0 cd /var/www/html/myapp && RAILS\_ENV=production /usr/local/bin/rake …

---

## [Anyone used RSpec to write specs for rake tasks?](https://www.ruby-forum.com/t/anyone-used-rspec-to-write-specs-for-rake-tasks/187198)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 3\
**Last updated:** [April 20, 2010, 10:16pm UTC](https://www.ruby-forum.com/t/anyone-used-rspec-to-write-specs-for-rake-tasks/187198 "2010-04-20T22:16:20Z")

</div>

I released a new gem this past weekend which adds a new rake task for Jeweler to generate a release announcement. I was lazy and didn’t write any specs, mostly because I couldn’t quickly come up with a reasonably way …

---

## [GR on CentOS 5 x64\_64?](https://www.ruby-forum.com/t/gr-on-centos-5-x64-64/181543)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 3\
**Last updated:** [February 22, 2010, 1:49am UTC](https://www.ruby-forum.com/t/gr-on-centos-5-x64-64/181543 "2010-02-22T01:49:33Z")

</div>

I’m wondering if anyone has successfully installed GR on CentOS 5 x86\_64, and if so any advice would be appreciated. Thanks in advance. MLD I’ve been trying to install GNU Radio on CentOS 5 x86\_64. I get some of t…

---

## [Shared memory creation in ruby](https://www.ruby-forum.com/t/shared-memory-creation-in-ruby/183226)

<div class="topic-metadata">

**Author:** [@youthreewire](https://www.ruby-forum.com/u/youthreewire)\
**Replies:** 3\
**Last updated:** [February 10, 2010, 10:08am UTC](https://www.ruby-forum.com/t/shared-memory-creation-in-ruby/183226 "2010-02-10T10:08:16Z")

</div>

Hi, I am new to ruby and I want to write code which makes shared memory and writes to it.Similar to the C code here: void main(int argc, char\* argv\[\]) { HANDLE mappedFile = 0; int oneSecond = 1000; char\* shared =…

---

## [Why warbler search for database driver?](https://www.ruby-forum.com/t/why-warbler-search-for-database-driver/181936)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 3\
**Last updated:** [February 1, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/why-warbler-search-for-database-driver/181936 "2010-02-01T20:58:24Z")

</div>

I want to share jdbc postgres driver between some applications, so I put it under tomcat lib. Then I’ve deleted the jdbc-postgres gem. When I try to recreate the war, warbler search for the driver. rake aborted! gem…

---

## [DRb::DRbObject.alive?](https://www.ruby-forum.com/t/drb-drbobject-alive/179438)

<div class="topic-metadata">

**Author:** [@benoitdinocourt](https://www.ruby-forum.com/u/benoitdinocourt)\
**Replies:** 3\
**Last updated:** [November 26, 2009, 10:17am UTC](https://www.ruby-forum.com/t/drb-drbobject-alive/179438 "2009-11-26T10:17:03Z")

</div>

Hi, I found a feature that seem to be missing to me in DRb. I’m just creating a chat with a client and a server, using only DRb to interact between them. My problem is I didn’t found a nice way to verify if a client …

---

## [Mongrel e ram](https://www.ruby-forum.com/t/mongrel-e-ram/175125)

<div class="topic-metadata">

**Author:** [@alesc](https://www.ruby-forum.com/u/alesc)\
**Replies:** 3\
**Last updated:** [September 8, 2009, 7:03pm UTC](https://www.ruby-forum.com/t/mongrel-e-ram/175125 "2009-09-08T19:03:11Z")

</div>

Ciao, qualcuno ha idea su come limitare il consumo illimitato di ram da parte di mongrel? ho un cluster con 4 istanze, ognuna occupava circa il 20% di ram, ho raddoppiato la ram … non Ã¨ cambiato niente… Il problema…

---

## [Embed php code in rails](https://www.ruby-forum.com/t/embed-php-code-in-rails/169537)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 3\
**Last updated:** [June 8, 2009, 2:08am UTC](https://www.ruby-forum.com/t/embed-php-code-in-rails/169537 "2009-06-08T02:08:03Z")

</div>

Hi there There are some code pieces that are available in php like currency rates, and weather status, etc. Is there a way that I can use those php code within rails code in the view. or is there a good rails plugin …

---

## [\[rspec\] http://rspec.info examples are broken](https://www.ruby-forum.com/t/rspec-http-rspec-info-examples-are-broken/168784)

<div class="topic-metadata">

**Author:** [@juuser](https://www.ruby-forum.com/u/juuser)\
**Replies:** 3\
**Last updated:** [May 28, 2009, 8:47am UTC](https://www.ruby-forum.com/t/rspec-http-rspec-info-examples-are-broken/168784 "2009-05-28T08:47:52Z")

</div>

It seems that some examples at http://rspec.info are broken with invalid html. For example: http://rspec.info/documentation/before\_and\_after.html All those spans there should not be visible, I think :slight\_smile: Isn…

---

## [Find\_by\_sql](https://www.ruby-forum.com/t/find-by-sql/166514)

<div class="topic-metadata">

**Author:** [@dmarc](https://www.ruby-forum.com/u/dmarc)\
**Replies:** 3\
**Last updated:** [April 27, 2009, 5:58am UTC](https://www.ruby-forum.com/t/find-by-sql/166514 "2009-04-27T05:58:35Z")

</div>

I’m having some difficulty getting find\_by\_sql to work. This code below works perfect: @available = Elevator.find\_by\_sql(“select name from elevator\_timeslots WHERE NOT EXISTS(select elevator\_timeslot\_id from elevators…

---

## [Gem install Rails issue](https://www.ruby-forum.com/t/gem-install-rails-issue/165455)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 3\
**Last updated:** [April 14, 2009, 11:19am UTC](https://www.ruby-forum.com/t/gem-install-rails-issue/165455 "2009-04-14T11:19:01Z")

</div>

Im trying to install rails gem on OSX 10.5.6, but when i use the gem install rails command this message displays WARNING: Installing to ~/.gem since /usr/local/lib/ruby/gems/1.8 and /usr/local/bin aren’t both writab…

---

## [Validates\_presence\_of : Ã©tran ge](https://www.ruby-forum.com/t/validates-presence-of-a-tran-ge/158021)

<div class="topic-metadata">

**Author:** [@pierreva](https://www.ruby-forum.com/u/pierreva)\
**Replies:** 3\
**Last updated:** [January 18, 2009, 2:20pm UTC](https://www.ruby-forum.com/t/validates-presence-of-a-tran-ge/158021 "2009-01-18T14:20:55Z")

</div>

Bonsoir à tous, J’ai un model Item qui possède des Images. class Item has\_many :images end class Image validates\_presence\_of :item\_id end Et dans un code, je vais i = Item.new i.images.build(:…) i.save! et là…

---

## [Modulo su file multipli](https://www.ruby-forum.com/t/modulo-su-file-multipli/157441)

<div class="topic-metadata">

**Author:** [@joeytempest](https://www.ruby-forum.com/u/joeytempest)\
**Replies:** 3\
**Last updated:** [January 11, 2009, 11:45am UTC](https://www.ruby-forum.com/t/modulo-su-file-multipli/157441 "2009-01-11T11:45:14Z")

</div>

Ciao a tutti, ho googlato e trovato niente quindi chiedo : Ã¨ possibile dichiarare il contenuto di un modulo su piÃ¹ files distinti? Esempio: \<file1.rb\> module Mymodule class Classone … end end \<file2.rb\> modu…

---

## [Crear registros en Modelo](https://www.ruby-forum.com/t/crear-registros-en-modelo/157267)

<div class="topic-metadata">

**Author:** [@agustinvinao](https://www.ruby-forum.com/u/agustinvinao)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 11:30am UTC](https://www.ruby-forum.com/t/crear-registros-en-modelo/157267 "2009-01-09T11:30:43Z")

</div>

Buenas a todos, queria consultar a los mas experimentados en testeo si conocen alguna forma de generar regsitros en la tabla de un modelo mediante Ruby. Tengo una tabla avisos que tienen 2 claves foreneas y quiero gen…

---

## [\[Bug\] !nil returns false for partial instance variable in specific conditions](https://www.ruby-forum.com/t/bug-nil-returns-false-for-partial-instance-variable-in-specific-conditions/155061)

<div class="topic-metadata">

**Author:** [@vikrant](https://www.ruby-forum.com/u/vikrant)\
**Replies:** 3\
**Last updated:** [December 7, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/bug-nil-returns-false-for-partial-instance-variable-in-specific-conditions/155061 "2008-12-07T18:35:29Z")

</div>

Hi, If we call a partial with a name such that there also exists a instance variable with the same name (ex: @identity) in the controller then passing :object =\> nil to render() and calling (! identity).inspect in ‘\_…

---

## [How to iterate of the attributes of an object?](https://www.ruby-forum.com/t/how-to-iterate-of-the-attributes-of-an-object/149601)

<div class="topic-metadata">

**Author:** [@hotspoons](https://www.ruby-forum.com/u/hotspoons)\
**Replies:** 3\
**Last updated:** [September 26, 2008, 8:40pm UTC](https://www.ruby-forum.com/t/how-to-iterate-of-the-attributes-of-an-object/149601 "2008-09-26T20:40:25Z")

</div>

I need to build a string of all populated attributes of a given object. I need to get the attribute name and it’s value Also,the object may have 10 attributes, but I’m only interested in the attribute that are not nil…

---

## [GenericDirCtrl problem](https://www.ruby-forum.com/t/genericdirctrl-problem/139781)

<div class="topic-metadata">

**Author:** [@joseph\_edelstein](https://www.ruby-forum.com/u/joseph_edelstein)\
**Replies:** 3\
**Last updated:** [June 6, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/genericdirctrl-problem/139781 "2008-06-06T23:26:01Z")

</div>

I am having a problem getting any event to happen when I activate a selection on GenericDirCtrl i.e. double click on it. Could anyone help me out. thanks in advance. Joe

---

## [Ideas for improved FM reception](https://www.ruby-forum.com/t/ideas-for-improved-fm-reception/122130)

<div class="topic-metadata">

**Author:** [@Daniel\_Povey](https://www.ruby-forum.com/u/Daniel_Povey)\
**Replies:** 3\
**Last updated:** [December 12, 2007, 9:09pm UTC](https://www.ruby-forum.com/t/ideas-for-improved-fm-reception/122130 "2007-12-12T21:09:06Z")

</div>

Guys \[+girls?\], I’m new to the list. I joined because I do research in signal processing (speech recognition) and I have the idea that it ought to be possible to use statistical signal processing to get much better…

---

## [Multitasking and collecting results](https://www.ruby-forum.com/t/multitasking-and-collecting-results/116552)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 3\
**Last updated:** [October 7, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/multitasking-and-collecting-results/116552 "2007-10-07T13:50:45Z")

</div>

(new to ruby) I have a routine that makes a web call then does some work. I need to do many of these, and because of latency and all that, I want to go ahead and spawn several of these in async “tasks” (trying to avoi…

---

## [Attr\_read, attr\_writer, etc](https://www.ruby-forum.com/t/attr-read-attr-writer-etc/111929)

<div class="topic-metadata">

**Author:** [@dizzyone](https://www.ruby-forum.com/u/dizzyone)\
**Replies:** 3\
**Last updated:** [August 13, 2007, 9:07pm UTC](https://www.ruby-forum.com/t/attr-read-attr-writer-etc/111929 "2007-08-13T21:07:50Z")

</div>

Hello, are these keywords or are they methods which create get/set methods for the given attribute? I suppose it’s a mix of both, because I tried to write my own attr\_accessor but I couldn’t call it in the class def…

---

## [Francisation : SurdÃ©finition de la classe date](https://www.ruby-forum.com/t/francisation-surda-finition-de-la-classe-date/108920)

<div class="topic-metadata">

**Author:** [@edouard\_cante](https://www.ruby-forum.com/u/edouard_cante)\
**Replies:** 3\
**Last updated:** [July 11, 2007, 3:30am UTC](https://www.ruby-forum.com/t/francisation-surda-finition-de-la-classe-date/108920 "2007-07-11T03:30:34Z")

</div>

Bonjour Ã tous, dans le cadre de la francisation de mon application, j’ai mis en place une librairire overrides.lib qui me permet de franciser tout ce qui se rattache aux dates. Au dÃ©part, j’avais placÃ© ceci : D…

---

## [Using act\_as\_authenticated where two models require differen](https://www.ruby-forum.com/t/using-act-as-authenticated-where-two-models-require-differen/92707)

<div class="topic-metadata">

**Author:** [@chris\_johnson](https://www.ruby-forum.com/u/chris_johnson)\
**Replies:** 3\
**Last updated:** [June 13, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/using-act-as-authenticated-where-two-models-require-differen/92707 "2007-06-13T17:49:19Z")

</div>

Hi there. I am playing around with acts\_as\_authenticated as many recommend it for authentication. I have two relevant model: Worker and Company. Registration for both Workers and Companies should be pretty similar: …

---

## [Small Ruby IDE (Debugging)](https://www.ruby-forum.com/t/small-ruby-ide-debugging/104812)

<div class="topic-metadata">

**Author:** [@jbucaran](https://www.ruby-forum.com/u/jbucaran)\
**Replies:** 3\
**Last updated:** [May 23, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/small-ruby-ide-debugging/104812 "2007-05-23T21:02:00Z")

</div>

Hi, As a project of mine I want to build a very simple and small IDE for Ruby. It will contain basically 4 key things I need and like: @Project organizing @Code completion @Syntax highlighting @Debugging All but t…

---

## [IMAP stuff (or POP)](https://www.ruby-forum.com/t/imap-stuff-or-pop/82297)

<div class="topic-metadata">

**Author:** [@basic](https://www.ruby-forum.com/u/basic)\
**Replies:** 3\
**Last updated:** [January 20, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/imap-stuff-or-pop/82297 "2007-01-20T22:55:36Z")

</div>

I’ve been trying to find a good source of imap or pop information with ruby and cant. maybe I’m missing somthing. as I understand with imap you can select parts of the BODY like \[TEXT\] \[1\]. I understand what text does…

---

## [Updating a prehistoric Typo](https://www.ruby-forum.com/t/updating-a-prehistoric-typo/59796)

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 3\
**Last updated:** [May 8, 2006, 10:32am UTC](https://www.ruby-forum.com/t/updating-a-prehistoric-typo/59796 "2006-05-08T10:32:26Z")

</div>

I’ve been putting this off but eventually I’ll have to bite the bullet. My Typo is old. So old I’m not sure how old. So old I’m not even sure how to find out what version I have. I notice some things like test/ are t…

---

## [What is the best way to merge in a single ruby regex fixed characters and the OR (||) 2nd condition not working properly?](https://www.ruby-forum.com/t/what-is-the-best-way-to-merge-in-a-single-ruby-regex-fixed-characters-and-the-or-2nd-condition-not-working-properly/259903)

<div class="topic-metadata">

**Author:** [@lulubear](https://www.ruby-forum.com/u/lulubear)\
**Replies:** 1\
**Last updated:** [June 27, 2020, 9:42pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-merge-in-a-single-ruby-regex-fixed-characters-and-the-or-2nd-condition-not-working-properly/259903 "2020-06-27T21:42:17Z")

</div>

Hi, What is the best way to merge in a single regex to capture the values of fixed {5} or {7} in below sample? Also, my OR (||) doesn’t seem to work in the 2nd condition. if name =~ /^\[sp\]\[ap\]\\w{5}A\\d{2}/ || hostname =…

---

## [Trouble with downloading Ruby](https://www.ruby-forum.com/t/trouble-with-downloading-ruby/245202)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [January 5, 2017, 9:15am UTC](https://www.ruby-forum.com/t/trouble-with-downloading-ruby/245202 "2017-01-05T09:15:16Z")

</div>

So I am trying to download Ruby from this site — Install Ruby on Rails – Railsinstaller.org -. Managed to download Mac OSX 10.7 and 10.8 , but when I tried to open it, this is the message I got : “RailsInstaller-1.0.…

---

## [Are separate Service files in java extensions unofficially deprecated?](https://www.ruby-forum.com/t/are-separate-service-files-in-java-extensions-unofficially-deprecated/241193)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [May 18, 2014, 9:17pm UTC](https://www.ruby-forum.com/t/are-separate-service-files-in-java-extensions-unofficially-deprecated/241193 "2014-05-18T21:17:17Z")

</div>

I have successfully created some java extensions for ruby-processing, based on yokolets Fraction class tutorial (which is very clear), however I was concerned that Headius was now pointing to a different model by Jame…

---

## [Create email and grep the recieved emails](https://www.ruby-forum.com/t/create-email-and-grep-the-recieved-emails/237761)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [November 28, 2013, 9:41am UTC](https://www.ruby-forum.com/t/create-email-and-grep-the-recieved-emails/237761 "2013-11-28T09:41:47Z")

</div>

I want to implememt auto mated email generation for every transaction. And then we will sent any uplods through our own emails. i wnat grep those email with attachments. This is very urgent for me. if any one know thi…

---

## [\[ANN\] AR-JDBC 1.3.0.beta1 released](https://www.ruby-forum.com/t/ann-ar-jdbc-1-3-0-beta1-released/228185)

<div class="topic-metadata">

**Author:** [@karol\_b](https://www.ruby-forum.com/u/karol_b)\
**Replies:** 1\
**Last updated:** [April 13, 2013, 11:40am UTC](https://www.ruby-forum.com/t/ann-ar-jdbc-1-3-0-beta1-released/228185 "2013-04-13T11:40:50Z")

</div>

Greeting JRubyists. I’m very happy to announce that AR-JDBC 1.3.0.beta1 has been released. This is the first beta of our updates (that are taking place on master) since the 1.2.x line. For users this shall be a drop-…

---

## [NameError: undefined method \`color\_selection' for class \`Gtk::ColorSelectionDialog'](https://www.ruby-forum.com/t/nameerror-undefined-method-color-selection-for-class-gtk-colorselectiondialog/216466)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 6, 2012, 1:56pm UTC](https://www.ruby-forum.com/t/nameerror-undefined-method-color-selection-for-class-gtk-colorselectiondialog/216466 "2012-02-06T13:56:11Z")

</div>

After getting past my last issue, I can compile gtk2 just fine But when I do a require ‘gtk2’, I get an error. Here’s a quick example of the error from just doing the require by itself in irb. irb(main):001:0\> requir…

---

## [Has\_many transaction rollback problem](https://www.ruby-forum.com/t/has-many-transaction-rollback-problem/214904)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [December 15, 2011, 1:23pm UTC](https://www.ruby-forum.com/t/has-many-transaction-rollback-problem/214904 "2011-12-15T13:23:07Z")

</div>

I have bellow one model has many other model. The question is when i update 2 models. One model is validate failed. The other model can not rollback. Sample: class User \< ActiveRecord::Base has\_many :products, :depe…

---

## [Standard icon in custom dialog](https://www.ruby-forum.com/t/standard-icon-in-custom-dialog/209531)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [July 16, 2011, 8:22am UTC](https://www.ruby-forum.com/t/standard-icon-in-custom-dialog/209531 "2011-07-16T08:22:03Z")

</div>

Is there any way to grab a standard icon for a custom dialog? I have a message box with Wx::ICON\_ERROR, and I want to add a check box to it. The only way I know to do this is to create a custom dialog. Then I can us…

---

## [Unobtrusive javascript -\> attaching a .js.erb page](https://www.ruby-forum.com/t/unobtrusive-javascript-attaching-a-js-erb-page/206759)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [May 11, 2011, 6:44pm UTC](https://www.ruby-forum.com/t/unobtrusive-javascript-attaching-a-js-erb-page/206759 "2011-05-11T18:44:43Z")

</div>

i saw on one of the railscasts that using unobtrusive javascript, you attach your javascript to your page like so: if your view is: index.html.erb you could add a page named: index.js.erb and that javascript would …

---

## [Error log while appache is starting](https://www.ruby-forum.com/t/error-log-while-appache-is-starting/180043)

<div class="topic-metadata">

**Author:** [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Replies:** 1\
**Last updated:** [January 19, 2010, 9:22pm UTC](https://www.ruby-forum.com/t/error-log-while-appache-is-starting/180043 "2010-01-19T21:22:06Z")

</div>

Hi, When i start the appache on centOS 5, i am getting the error log(/var/log/httpd/error\_log) as below, \[error\] \*\*\* Passenger could not be initialized because of this error: Cannot create FIFO file /tmp/passenger.68…

---

## [Archivos de constantes en Rails](https://www.ruby-forum.com/t/archivos-de-constantes-en-rails/174091)

<div class="topic-metadata">

**Author:** [@chompiras](https://www.ruby-forum.com/u/chompiras)\
**Replies:** 1\
**Last updated:** [September 3, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/archivos-de-constantes-en-rails/174091 "2009-09-03T13:52:20Z")

</div>

Hola que tal, estoy haciendo un website algo extenso, y manejara varios idiomas, he pensado en usar archivos que contengan constantes para cada idioma, no se si sera la mejor manera, existe alguna manera??? y pues con…

---

## [Acts\_as\_ferret query sintax](https://www.ruby-forum.com/t/acts-as-ferret-query-sintax/159654)

<div class="topic-metadata">

**Author:** [@iuranchita](https://www.ruby-forum.com/u/iuranchita)\
**Replies:** 1\
**Last updated:** [February 6, 2009, 6:52pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-query-sintax/159654 "2009-02-06T18:52:30Z")

</div>

Hello! i’m really new with acts\_as\_ferret, a just started yesterday and english is not my native language, so i’m sorry, if it’s too bad. i have been practicing and i’m able to make simple searchs without troubles. B…

---

## [Cursor position within the console in ruby](https://www.ruby-forum.com/t/cursor-position-within-the-console-in-ruby/144647)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 7:51pm UTC](https://www.ruby-forum.com/t/cursor-position-within-the-console-in-ruby/144647 "2008-07-31T19:51:22Z")

</div>

Hello… I’ve been working with ruby for some time, but this one has me stumped. Is there a nice way to position the cursor within the console? For instance, something simple: just move up one line relatively? In…

---

## [Is engines broken in Rails 1.2.3?](https://www.ruby-forum.com/t/is-engines-broken-in-rails-1-2-3/110594)

<div class="topic-metadata">

**Author:** [@hatless](https://www.ruby-forum.com/u/hatless)\
**Replies:** 1\
**Last updated:** [July 30, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/is-engines-broken-in-rails-1-2-3/110594 "2007-07-30T16:11:12Z")

</div>

A few hours ago I factored out one of my AR models that I’d be reusing into a minimalist plugin. I copied the model into the plugin’s lib/, added a line to init.rb to load it, and the model was now present in the cons…

---

## [Exit from def?](https://www.ruby-forum.com/t/exit-from-def/109196)

<div class="topic-metadata">

**Author:** [@mihai](https://www.ruby-forum.com/u/mihai)\
**Replies:** 1\
**Last updated:** [July 12, 2007, 10:52am UTC](https://www.ruby-forum.com/t/exit-from-def/109196 "2007-07-12T10:52:36Z")

</div>

def bla for i in 1 .. 5 puts i for j in 1 .. 5 puts j if j==4 then here i want to exit the "bla" def if j==4 …

---

## [Has\_many, through, and custom primary keys](https://www.ruby-forum.com/t/has-many-through-and-custom-primary-keys/85858)

<div class="topic-metadata">

**Author:** [@fedot](https://www.ruby-forum.com/u/fedot)\
**Replies:** 1\
**Last updated:** [February 16, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/has-many-through-and-custom-primary-keys/85858 "2007-02-16T22:33:49Z")

</div>

When attempting to use a “has\_many :through” association with three models using non-standard primary keys, Rails is not constructing SQL finder query properly. For some reason it is not using correct primary key colu…

---

## [Engine creation questions](https://www.ruby-forum.com/t/engine-creation-questions/58854)

<div class="topic-metadata">

**Author:** [@Alan\_Tocheri](https://www.ruby-forum.com/u/Alan_Tocheri)\
**Replies:** 1\
**Last updated:** [April 26, 2006, 5:01pm UTC](https://www.ruby-forum.com/t/engine-creation-questions/58854 "2006-04-26T17:01:07Z")

</div>

After reading ?Extracting Engines? I had a few questions about releasing an engine and I couldn?t find any documentation on the site. After finishing the creation of an engine, and you want to release it to the publi…

---

## [Chinese translation](https://www.ruby-forum.com/t/chinese-translation/51497)

<div class="topic-metadata">

**Author:** [@stone](https://www.ruby-forum.com/u/stone)\
**Replies:** 1\
**Last updated:** [January 1, 2006, 9:42pm UTC](https://www.ruby-forum.com/t/chinese-translation/51497 "2006-01-01T21:42:58Z")

</div>

Andreas, I have tranlated the en.yaml to chinese and tried it on my rforum installation. It seems work fine. The displays show up correctly. You may put it into dipository if you want in case someone need it. Just a …

---

## [Printing regex results](https://www.ruby-forum.com/t/printing-regex-results/204093)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [March 5, 2011, 5:20am UTC](https://www.ruby-forum.com/t/printing-regex-results/204093 "2011-03-05T05:20:59Z")

</div>

How do you get Ruby to print the string that matches a certain regex pattern. I need to find a pattern where a small latin letter is has three large letters on either side. My code is: str = “aaaDDDbDDDcDDDgHHyHjHJk…

---

## [Insert into with only filfull fields](https://www.ruby-forum.com/t/insert-into-with-only-filfull-fields/125432)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 8\
**Last updated:** [January 9, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/insert-into-with-only-filfull-fields/125432 "2008-01-09T19:39:25Z")

</div>

Hello, when i create a record, User.create(:login=\>‘john’, :password =\> ‘password’), active record behaviour is to include every of my fields in the SQL query : INSERT INTO users (“login”, “password”, “another\_column…

---

## [Does anyone care about ri color scheme?](https://www.ruby-forum.com/t/does-anyone-care-about-ri-color-scheme/65823)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 8\
**Last updated:** [August 24, 2006, 4:10am UTC](https://www.ruby-forum.com/t/does-anyone-care-about-ri-color-scheme/65823 "2006-08-24T04:10:01Z")

</div>

Don’t laugh. I like a little color in my terminal windows. Well, OK. Go ahead and laugh. I wouldn’t want you to hurt yourself. Anyway, I simply find that the right blend of colors makes me happier when I program and e…

---

## [RE: Ideal Ruby on Rails Development Environment on Linux](https://www.ruby-forum.com/t/re-ideal-ruby-on-rails-development-environment-on-linux/96557)

<div class="topic-metadata">

**Author:** [@nathandelane](https://www.ruby-forum.com/u/nathandelane)\
**Replies:** 8\
**Last updated:** [June 30, 2006, 4:16am UTC](https://www.ruby-forum.com/t/re-ideal-ruby-on-rails-development-environment-on-linux/96557 "2006-06-30T04:16:39Z")

</div>

Dustan, I think Postgresql would be a nice addition. I for one use it a lot, but finding web hosts that support it is difficult. Also, the phpMyAdmin and phpPgAdmin are nice-to-have’s (no flames from the hard-core …

---

## [Rails 4 Query on Association using Includes](https://www.ruby-forum.com/t/rails-4-query-on-association-using-includes/244081)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [February 24, 2016, 3:22pm UTC](https://www.ruby-forum.com/t/rails-4-query-on-association-using-includes/244081 "2016-02-24T15:22:34Z")

</div>

This works: Model1.includes(:model2 =\> :model2).where(model2s: {order: 2}) How would I write a query for order \<= 2? What I would really like to write is: Model1.includes(:model2 =\> :model2).where(“model2s.order \<= …

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

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