# Top

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

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

---

## [Nginx configure error when use zsh](https://www.ruby-forum.com/t/nginx-configure-error-when-use-zsh/220407)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [June 8, 2012, 1:55pm UTC](https://www.ruby-forum.com/t/nginx-configure-error-when-use-zsh/220407 "2012-06-08T13:55:55Z")

</div>

Hello. nginx configure error when I use zsh. This is my environment: operating system: Linux(3.3.7-1-ARCH) zsh: 4.3.17 (i686-pc-linux-gnu) Nginx: 1.3.1 This is configure message: checking for OS Linux 3.3.7-1-…

---

## [ActiveRecord Postgres small inconsistency](https://www.ruby-forum.com/t/activerecord-postgres-small-inconsistency/219563)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 3\
**Last updated:** [May 7, 2012, 6:54pm UTC](https://www.ruby-forum.com/t/activerecord-postgres-small-inconsistency/219563 "2012-05-07T18:54:29Z")

</div>

Hi, I’m using Rails 3.2.1 and following through Mike Hartl’s tutorial. irb(main):024:0\> User.first User Load (0.6ms) SELECT “users”.\* FROM “users” LIMIT 1 =\> … irb(main):025:0\> User.last User Load (1.0ms) SELECT …

---

## [\[ruby-trunk - Feature #5549\]\[Open\] Comparable#min, Comparable#max](https://www.ruby-forum.com/t/ruby-trunk-feature-5549-open-comparable-min-comparable-max/213455)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [November 7, 2011, 3:37am UTC](https://www.ruby-forum.com/t/ruby-trunk-feature-5549-open-comparable-min-comparable-max/213455 "2011-11-07T03:37:19Z")

</div>

Issue #5549 has been reported by Tsuyoshi Sawada. Feature #5549: Comparable#min, Comparable#max Author: Tsuyoshi Sawada Status: Open Priority: Normal Assignee: Category: Target version: I request the following …

---

## [How to generate rand (random number) between two numbers?](https://www.ruby-forum.com/t/how-to-generate-rand-random-number-between-two-numbers/211998)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [September 20, 2011, 3:23pm UTC](https://www.ruby-forum.com/t/how-to-generate-rand-random-number-between-two-numbers/211998 "2011-09-20T15:23:23Z")

</div>

Hi, How to generate rand (random number) between two numbers? I mean not between 0 and some number. It should be between some number (not 0) and some number. Sincerely, Asset

---

## [Add\_index question](https://www.ruby-forum.com/t/add-index-question/209177)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [July 7, 2011, 3:47pm UTC](https://www.ruby-forum.com/t/add-index-question/209177 "2011-07-07T15:47:36Z")

</div>

What is add\_index for? Someone told me it was to add indexes to the database, but I still dont know what indexes are… first I thought they where other columns of the table, but apparently not. Thank you for the hel…

---

## [Zero crossing detection. parallel inputs to USRP](https://www.ruby-forum.com/t/zero-crossing-detection-parallel-inputs-to-usrp/192979)

<div class="topic-metadata">

**Author:** [@Phong\_Do](https://www.ruby-forum.com/u/Phong_Do)\
**Replies:** 3\
**Last updated:** [August 12, 2010, 9:58am UTC](https://www.ruby-forum.com/t/zero-crossing-detection-parallel-inputs-to-usrp/192979 "2010-08-12T09:58:08Z")

</div>

Hello, I have once post this message. Please help me cause its very urgent. I now have a project with the following specifications: I need to send 2 input-signals parallel over USRP, then find out the zero-crossings …

---

## [Gr-trellis ; convolutional code and,	convolutionnal interleaver](https://www.ruby-forum.com/t/gr-trellis-convolutional-code-and-convolutionnal-interleaver/186884)

<div class="topic-metadata">

**Author:** [@Achilleas\_A](https://www.ruby-forum.com/u/Achilleas_A)\
**Replies:** 3\
**Last updated:** [April 15, 2010, 12:14pm UTC](https://www.ruby-forum.com/t/gr-trellis-convolutional-code-and-convolutionnal-interleaver/186884 "2010-04-15T12:14:25Z")

</div>

Axel, First, there is no such thing in gr-trellis as a “convolutional interleaver”. There is only a generic interleaver, ie a permutation which is defined through the different constructors provided in interleaver.h …

---

## [Rubygems-sing 1.2.0 Released](https://www.ruby-forum.com/t/rubygems-sing-1-2-0-released/182447)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 3\
**Last updated:** [January 29, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/rubygems-sing-1-2-0-released/182447 "2010-01-29T15:30:14Z")

</div>

rubygems-sing version 1.2.0 has been released! http://rubyforge.org/projects/seattlerb “Sings” a gem’s implementation. Changes: 1.2.0 / 2010-01-27 3 minor enhancements: Added --verbose, to print more like a pla…

---

## [Tutela proprietÃ  applicazioni web](https://www.ruby-forum.com/t/tutela-proprieta-applicazioni-web/179877)

<div class="topic-metadata">

**Author:** [@gionni](https://www.ruby-forum.com/u/gionni)\
**Replies:** 3\
**Last updated:** [December 7, 2009, 4:05pm UTC](https://www.ruby-forum.com/t/tutela-proprieta-applicazioni-web/179877 "2009-12-07T16:05:56Z")

</div>

trovandomi nella condizione di poter guadagnare qualche soldo “vendendo” l’utilizzo di un’applicazione da me realizzata con Rails in una intranet aziendale ho cercato di capire come fare per tutelarmi dovendo caricare …

---

## [ERROR: libjpeg-7.dll was not found](https://www.ruby-forum.com/t/error-libjpeg-7-dll-was-not-found/177264)

<div class="topic-metadata">

**Author:** [@neill](https://www.ruby-forum.com/u/neill)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 10:35am UTC](https://www.ruby-forum.com/t/error-libjpeg-7-dll-was-not-found/177264 "2009-10-14T10:35:15Z")

</div>

Installed the new Ruby installer on windows (rubyinstaller-1.9.1-p243-preview2.exe) then installed fxruby gem install fxruby. then ran ruby and on the statement require ‘fox16’ get error: the application failed to …

---

## [Route\_to for ambiguous generation?](https://www.ruby-forum.com/t/route-to-for-ambiguous-generation/177220)

<div class="topic-metadata">

**Author:** [@Clifford\_TSMatthew](https://www.ruby-forum.com/u/Clifford_TSMatthew)\
**Replies:** 3\
**Last updated:** [October 13, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/route-to-for-ambiguous-generation/177220 "2009-10-13T17:45:12Z")

</div>

I like the new route\_to matcher, but I can’t use it for my root route, since the route that is generated isn’t the route that I pass in. Specifically, my routes.rb has: … map.resources :skills, :only =\> \[:index, :sho…

---

## [Nginx X wsgi X Webpy](https://www.ruby-forum.com/t/nginx-x-wsgi-x-webpy/167480)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [May 9, 2009, 8:55am UTC](https://www.ruby-forum.com/t/nginx-x-wsgi-x-webpy/167480 "2009-05-09T08:55:47Z")

</div>

Hello World ! Im traying a lot to install Nginx with wsgi ! I tryed all the tutorials and nothing. Please PLEASE !!! someone help me . im using ubuntu server ! Thanks… Cadu Posted at Nginx Forum:

---

## [RSPEC book example in Chapter 3](https://www.ruby-forum.com/t/rspec-book-example-in-chapter-3/166528)

<div class="topic-metadata">

**Author:** [@GSBrandon\_H](https://www.ruby-forum.com/u/GSBrandon_H)\
**Replies:** 3\
**Last updated:** [April 27, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/rspec-book-example-in-chapter-3/166528 "2009-04-27T16:00:21Z")

</div>

Hi! I’m going through the rspec book in beta form right now and hit a snag in chapter three. I am developing an application in parallel to the book example instead of writing the book example word for word. To the b…

---

## [Rspec 1.2.2 unpacking](https://www.ruby-forum.com/t/rspec-1-2-2-unpacking/164595)

<div class="topic-metadata">

**Author:** [@pallan](https://www.ruby-forum.com/u/pallan)\
**Replies:** 3\
**Last updated:** [April 3, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/rspec-1-2-2-unpacking/164595 "2009-04-03T19:15:07Z")

</div>

Hello all, I am trying to unpack rspec 1.2.2 and rspec-rails 1.2.2 into my application. I have them included in the test.rb environment file with config.gem options as described on the Rspec github site. I can unpa…

---

## [Dynamically generated form + Saving multiple records at once](https://www.ruby-forum.com/t/dynamically-generated-form-saving-multiple-records-at-once/163526)

<div class="topic-metadata">

**Author:** [@Marcelo\_Ruiz](https://www.ruby-forum.com/u/Marcelo_Ruiz)\
**Replies:** 3\
**Last updated:** [March 23, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/dynamically-generated-form-saving-multiple-records-at-once/163526 "2009-03-23T22:09:35Z")

</div>

Hi Everybody, My name is Marcelo Ruiz, software developer from Argentina starting to work with rails. I’m building a web app to track traffic information for roads. We have operators that create Reports associated to…

---

## [Memcache key double escaped](https://www.ruby-forum.com/t/memcache-key-double-escaped/161404)

<div class="topic-metadata">

**Author:** [@xguardiola](https://www.ruby-forum.com/u/xguardiola)\
**Replies:** 3\
**Last updated:** [February 26, 2009, 2:26pm UTC](https://www.ruby-forum.com/t/memcache-key-double-escaped/161404 "2009-02-26T14:26:26Z")

</div>

Hello all, I have trouble with nginx memcached module with urls containing special char, for instance : GET /list.xml?fulltext=testé&sort=rating&dir=DESC will store the following key in memcache : \<25 set brh:262:68…

---

## [Form\_tag help needed](https://www.ruby-forum.com/t/form-tag-help-needed/160635)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [February 18, 2009, 11:18pm UTC](https://www.ruby-forum.com/t/form-tag-help-needed/160635 "2009-02-18T23:18:30Z")

</div>

Hi I have created a model Request and after that created the controller for that with the name Request .I have also added in routes.rb map.resources :reuests Now in app/view/requests/new.html.erb I have \<% form\_tag…

---

## [Calling overloaded methods](https://www.ruby-forum.com/t/calling-overloaded-methods/157342)

<div class="topic-metadata">

**Author:** [@alex\_2k8](https://www.ruby-forum.com/u/alex_2k8)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/calling-overloaded-methods/157342 "2009-01-09T21:12:03Z")

</div>

Hello, C# public class Cls { public void foo(object a) { Console.WriteLine(“foo #1”); } public void foo(object\[\] a) { Console.WriteLine(“foo #2”); } } Ruby: Cls.new.foo(7) Cls.new.foo(\[3, 4\]) Output: foo #1 …

---

## [Xslt not work properly with nginx 7.30 on xslt function document() for apply template](https://www.ruby-forum.com/t/xslt-not-work-properly-with-nginx-7-30-on-xslt-function-document-for-apply-template/156489)

<div class="topic-metadata">

**Author:** [@Tomasen](https://www.ruby-forum.com/u/Tomasen)\
**Replies:** 3\
**Last updated:** [December 29, 2008, 10:45am UTC](https://www.ruby-forum.com/t/xslt-not-work-properly-with-nginx-7-30-on-xslt-function-document-for-apply-template/156489 "2008-12-29T10:45:07Z")

</div>

The xlst module on nginx is great! Everything seems working except… I (or nginx xslt module) still having trouble on the following line in my xsl file: \<xsl:apply-templates select=“document(‘/xml/hotsearch/sub.xml’)”/\>…

---

## [Script/dbconsole](https://www.ruby-forum.com/t/script-dbconsole/154165)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [November 26, 2008, 1:41am UTC](https://www.ruby-forum.com/t/script-dbconsole/154165 "2008-11-26T01:41:59Z")

</div>

I’m running rails 2.2.2. Is script/dbconsole part of this or do I have to somehow install it? When I run script/dbconsole I get: -bash: script/dbconsole: No such file or directory But running script/console I do get: …

---

## [Connect to Windows Share using Ruby](https://www.ruby-forum.com/t/connect-to-windows-share-using-ruby/153140)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 3\
**Last updated:** [November 13, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/connect-to-windows-share-using-ruby/153140 "2008-11-13T15:46:09Z")

</div>

Hello, I’m looking to connect to a Windows share using Ruby. Is there a library, or gem that would help me do this? Just a nudge in the right direction would be great. Thank you!

---

## [Convert string to array with delimiter](https://www.ruby-forum.com/t/convert-string-to-array-with-delimiter/152579)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 3\
**Last updated:** [November 5, 2008, 10:18am UTC](https://www.ruby-forum.com/t/convert-string-to-array-with-delimiter/152579 "2008-11-05T10:18:37Z")

</div>

Dear all I have the following string want to convert to arry str="/dev/lis\_home\_712 2097152 1052656 1044496 51% /appl/lis/home2\\n" I use str.scan(/\\w+/), which give the following result \[“dev”, “lis\_hom…

---

## [Write-back cache (lazy write) and ActiveRecord](https://www.ruby-forum.com/t/write-back-cache-lazy-write-and-activerecord/145280)

<div class="topic-metadata">

**Author:** [@Tero\_T](https://www.ruby-forum.com/u/Tero_T)\
**Replies:** 3\
**Last updated:** [August 8, 2008, 4:20am UTC](https://www.ruby-forum.com/t/write-back-cache-lazy-write-and-activerecord/145280 "2008-08-08T04:20:20Z")

</div>

There are afaik several ways to do multi-record operations on DB. Mileage of course varies depending on DMBS. Is AR capable of folding multi-record modifications (inserts, deletes or updates) to single SQL statement? …

---

## [Code Review: StringGsubVersion](https://www.ruby-forum.com/t/code-review-stringgsubversion/142755)

<div class="topic-metadata">

**Author:** [@Dave\_Remy](https://www.ruby-forum.com/u/Dave_Remy)\
**Replies:** 3\
**Last updated:** [July 11, 2008, 4:01am UTC](https://www.ruby-forum.com/t/code-review-stringgsubversion/142755 "2008-07-11T04:01:53Z")

</div>

tfpt review “/shelveset:StringGsubVersion;REDMOND\\dremy” Comment : This change fixes all of the gsub, each, and each\_line specs. Added aditional tests to gsub spec. The excluded gsub tests are only failing on unim…

---

## [Plugin problems: "simply\_helpful"](https://www.ruby-forum.com/t/plugin-problems-simply-helpful/141190)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 8\
**Last updated:** [June 23, 2008, 4:37pm UTC](https://www.ruby-forum.com/t/plugin-problems-simply-helpful/141190 "2008-06-23T16:37:32Z")

</div>

I read at http://matthewman.net/2006/09/04/new-rails-feature-simply\_helpful/ that “simply\_helpful” would introduce a new syntax for the form\_for helper. But even though the plugin is installed (I know that because the…

---

## [Tutoriel](https://www.ruby-forum.com/t/tutoriel/136691)

<div class="topic-metadata">

**Author:** [@vieurou](https://www.ruby-forum.com/u/vieurou)\
**Replies:** 3\
**Last updated:** [May 5, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/tutoriel/136691 "2008-05-05T17:00:11Z")

</div>

Bonjour, je viens de me mettre a ROR, Ã§a a l’air tres bien , le seul probleme est au niveau des ressources…: Ou trouver un tutoriel complet sur ROR2 , j’en ai trouver sur rails 1.x.x mais quasi rien sur la version 2 …

---

## [Listing actions of the controller](https://www.ruby-forum.com/t/listing-actions-of-the-controller/136294)

<div class="topic-metadata">

**Author:** [@saravanankrishnan](https://www.ruby-forum.com/u/saravanankrishnan)\
**Replies:** 8\
**Last updated:** [April 30, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/listing-actions-of-the-controller/136294 "2008-04-30T17:06:11Z")

</div>

Hi to all, Is it possible to list out all the actions inside the controller. Thanks in Advance Saravanan

---

## [Building ruby](https://www.ruby-forum.com/t/building-ruby/134223)

<div class="topic-metadata">

**Author:** [@jonraphaelson](https://www.ruby-forum.com/u/jonraphaelson)\
**Replies:** 3\
**Last updated:** [April 10, 2008, 1:54am UTC](https://www.ruby-forum.com/t/building-ruby/134223 "2008-04-10T01:54:09Z")

</div>

The linux systems I admin @ work have an old version of ruby (1.8.2). I’ve decided to attempt an upgrade. (SuSE 9.1 fwiw.) First attempt was with Ruby 1.9.0-1. Everything seemed to work fine, even got a recent build o…

---

## [Dynamic class thingies? (Okay, not sure how to title this one)](https://www.ruby-forum.com/t/dynamic-class-thingies-okay-not-sure-how-to-title-this-one/131275)

<div class="topic-metadata">

**Author:** [@coigner](https://www.ruby-forum.com/u/coigner)\
**Replies:** 8\
**Last updated:** [March 8, 2008, 6:27pm UTC](https://www.ruby-forum.com/t/dynamic-class-thingies-okay-not-sure-how-to-title-this-one/131275 "2008-03-08T18:27:05Z")

</div>

Asking for ideas here but let me preface… There’s an application with a sqlite3 database that I’m building Ruby classes and methods for accessing. ActiveRecord was close but no cigar because I have no control over the…

---

## [General advice](https://www.ruby-forum.com/t/general-advice/125048)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 3\
**Last updated:** [January 5, 2008, 8:52am UTC](https://www.ruby-forum.com/t/general-advice/125048 "2008-01-05T08:52:35Z")

</div>

Hi For the book I’m writing on IronRuby I’m deciding which way to go to demonstrate how IronRuby can leverage the .NET framework. The beginning of the sample application should implement some database layer. My first…

---

## [Almacenar imagenes, cual es el limite?](https://www.ruby-forum.com/t/almacenar-imagenes-cual-es-el-limite/124794)

<div class="topic-metadata">

**Author:** [@trancos123](https://www.ruby-forum.com/u/trancos123)\
**Replies:** 3\
**Last updated:** [January 2, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/almacenar-imagenes-cual-es-el-limite/124794 "2008-01-02T21:27:54Z")

</div>

Saludos Estoy haciendo una aplicacion donde cada usuario podra almacenar unas 5 o 6 imagenes. Mi idea es que para cada usuario es crear un directorio con su avatar, las imagenes, los thumbnails… La unica duda que te…

---

## [Instalar rails diferente a la 2](https://www.ruby-forum.com/t/instalar-rails-diferente-a-la-2/124042)

<div class="topic-metadata">

**Author:** [@Mauricio\_D](https://www.ruby-forum.com/u/Mauricio_D)\
**Replies:** 3\
**Last updated:** [December 23, 2007, 11:29pm UTC](https://www.ruby-forum.com/t/instalar-rails-diferente-a-la-2/124042 "2007-12-23T23:29:51Z")

</div>

Hola, quiero saber si alguno me puede decir como instalar una version anterior a rails 2.0 ya que es la unica que le puedo inslatar a debian con el comando sudo gem install rails --include-dependencies – Mauricio D…

---

## [\[ANN\] Third edition of "Programming Ruby" now in beta](https://www.ruby-forum.com/t/ann-third-edition-of-programming-ruby-now-in-beta/123100)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 3\
**Last updated:** [December 14, 2007, 1:40am UTC](https://www.ruby-forum.com/t/ann-third-edition-of-programming-ruby-now-in-beta/123100 "2007-12-14T01:40:22Z")

</div>

Ruby 1.9 is just around the corner, so it looks like a good time to create a new edition of Programming Ruby. So, I’m pleased to announce that the Third Edition of the PickAxe has just entered beta. The book’s home pa…

---

## [Hash map during the creation of a new class instance?](https://www.ruby-forum.com/t/hash-map-during-the-creation-of-a-new-class-instance/117800)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [October 20, 2007, 2:25pm UTC](https://www.ruby-forum.com/t/hash-map-during-the-creation-of-a-new-class-instance/117800 "2007-10-20T14:25:49Z")

</div>

Hi, Is it possible to use a hash map during the creation of a new class instance? E.g. Test\_Case\_1.new(test = {:name =\> ‘case\_1’}) If so, what would the syntax be in the class initialisation method class Test\_Case\_…

---

## [Strange mock\_model behaviour with ActiveResource model](https://www.ruby-forum.com/t/strange-mock-model-behaviour-with-activeresource-model/117092)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 3\
**Last updated:** [October 19, 2007, 5:43am UTC](https://www.ruby-forum.com/t/strange-mock-model-behaviour-with-activeresource-model/117092 "2007-10-19T05:43:22Z")

</div>

Hi, I have two models in an app that inherit from ActiveResource::Base. The scaffold controller tests for one of the models works fine, but the other one dies when calling mock\_model in the “handling GET /fa\_codes” s…

---

## [Goldspike static files caching](https://www.ruby-forum.com/t/goldspike-static-files-caching/117040)

<div class="topic-metadata">

**Author:** [@Stefan\_Magnus\_Landr](https://www.ruby-forum.com/u/Stefan_Magnus_Landr)\
**Replies:** 3\
**Last updated:** [October 17, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/goldspike-static-files-caching/117040 "2007-10-17T22:55:43Z")

</div>

Hi there, What would be the best approach for caching static files on let’s say tomcat? Stefan Bekk Open Source http://boss.bekk.no To unsubscribe from this list please visit: http://xircles.codehaus.org/manage\_e…

---

## [Speed](https://www.ruby-forum.com/t/speed/116880)

<div class="topic-metadata">

**Author:** [@Rav](https://www.ruby-forum.com/u/Rav)\
**Replies:** 8\
**Last updated:** [October 11, 2007, 8:58am UTC](https://www.ruby-forum.com/t/speed/116880 "2007-10-11T08:58:41Z")

</div>

Hi! What can i do to speed up executing my Rails app on my personal PC at home on localhost? It’s really slllooooooow. I have Pentium 3GHz (1 core), 512MB RAM, Windows XP and i deploy my app as JRuby on GlassFish V3. …

---

## [Exceptions and eval'ing a string](https://www.ruby-forum.com/t/exceptions-and-evaling-a-string/115019)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [September 19, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/exceptions-and-evaling-a-string/115019 "2007-09-19T23:00:25Z")

</div>

Here’s my situation I have a setup such as: ----task.rb---- class Task def initialize(name, &action) @name = name @action = action end def run @action.call(self) end end ----task\_runner.rb---- require ‘task’ …

---

## [Problem with link\_to\_function resulting rjs error, please he](https://www.ruby-forum.com/t/problem-with-link-to-function-resulting-rjs-error-please-he/110957)

<div class="topic-metadata">

**Author:** [@Mister\_Yu](https://www.ruby-forum.com/u/Mister_Yu)\
**Replies:** 3\
**Last updated:** [August 14, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/problem-with-link-to-function-resulting-rjs-error-please-he/110957 "2007-08-14T16:51:26Z")

</div>

Hello all, i am trying to add some ajax effect to the page and use the link\_to\_funtion tag to toggle a “comment form” div. but when i click on the link, firefox gives me error box saying: RJS error TypeError: Effect…

---

## [Passing arguments to ruby script](https://www.ruby-forum.com/t/passing-arguments-to-ruby-script/109456)

<div class="topic-metadata">

**Author:** [@galecho](https://www.ruby-forum.com/u/galecho)\
**Replies:** 3\
**Last updated:** [July 15, 2007, 7:43am UTC](https://www.ruby-forum.com/t/passing-arguments-to-ruby-script/109456 "2007-07-15T07:43:56Z")

</div>

Hi, I’m using ajax with ruby for my application, and need to send an argument to the ruby script for further action. I couldnt do it using the command line method, since the ruby script is being called from inside a …

---

## [My own custimized db:bootstrap](https://www.ruby-forum.com/t/my-own-custimized-db-bootstrap/105608)

<div class="topic-metadata">

**Author:** [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Replies:** 3\
**Last updated:** [June 1, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/my-own-custimized-db-bootstrap/105608 "2007-06-01T15:08:05Z")

</div>

Hi, I have created a reference radiant website, where I get exactly what I need for any other website I added YUI stylesheets, XML Sitemap, contact form, etc… Now I would like to “take a snapshot” of it and be able t…

---

## [Default :include value for ActiveRecord::Base.find](https://www.ruby-forum.com/t/default-include-value-for-activerecord-base-find/104104)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [May 14, 2007, 1:31pm UTC](https://www.ruby-forum.com/t/default-include-value-for-activerecord-base-find/104104 "2007-05-14T13:31:29Z")

</div>

Hi all, I’m working on a application with lots of complicated data relationships and thousands of rows of data. To speed up queries, I’m using Project.find(:all, :conditions =\> some\_hash, :include =\> some\_other\_hash)…

---

## [Getting started and webservices](https://www.ruby-forum.com/t/getting-started-and-webservices/92361)

<div class="topic-metadata">

**Author:** [@woodyuk](https://www.ruby-forum.com/u/woodyuk)\
**Replies:** 3\
**Last updated:** [April 19, 2007, 1:47am UTC](https://www.ruby-forum.com/t/getting-started-and-webservices/92361 "2007-04-19T01:47:18Z")

</div>

I am about to get started on my first ruby on rails project! However I want to make sure I can do everything I need. :slight\_smile: One item I am not sure about is webservices, its not something I have done before. …

---

## [Can I save relationship using hasmanythrough](https://www.ruby-forum.com/t/can-i-save-relationship-using-hasmanythrough/91271)

<div class="topic-metadata">

**Author:** [@jack.tang](https://www.ruby-forum.com/u/jack.tang)\
**Replies:** 3\
**Last updated:** [April 7, 2007, 6:28pm UTC](https://www.ruby-forum.com/t/can-i-save-relationship-using-hasmanythrough/91271 "2007-04-07T18:28:08Z")

</div>

Hi In the classic hasmanythrough example: class Group \< ActiveRecord::Base has\_many :memberships has\_many :users, :through =\> :memberships end class User \< ActiveRecord::Base has\_many :memberships has\_many :group…

---

## [Irb completion fails on Intel Mac with ruby-1.8.5](https://www.ruby-forum.com/t/irb-completion-fails-on-intel-mac-with-ruby-1-8-5/86150)

<div class="topic-metadata">

**Author:** [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Replies:** 3\
**Last updated:** [February 21, 2007, 10:17am UTC](https://www.ruby-forum.com/t/irb-completion-fails-on-intel-mac-with-ruby-1-8-5/86150 "2007-02-21T10:17:08Z")

</div>

Building ruby-1.8.5-p12 on OS X 10.4 gave me an irb that supported command completion, but did not have support for vi\_editing\_mode. % irb irb(main):001:0\> Readline.vi\_editing\_mode NotImplementedError: the vi\_editin…

---

## [Ruby equivalent to "exec \> $logfile 2\>&1" in sh script?](https://www.ruby-forum.com/t/ruby-equivalent-to-exec-logfile-2-1-in-sh-script/77868)

<div class="topic-metadata">

**Author:** [@philippeqc](https://www.ruby-forum.com/u/philippeqc)\
**Replies:** 3\
**Last updated:** [December 1, 2006, 4:38pm UTC](https://www.ruby-forum.com/t/ruby-equivalent-to-exec-logfile-2-1-in-sh-script/77868 "2006-12-01T16:38:24Z")

</div>

People, I quite frequently have something like: exec \> $logfile 2\>&1 at the top of my shell scripts to output everything that follows (including errors) into a log file - is there some way of doing the equivalent in…

---

## [View code confusion](https://www.ruby-forum.com/t/view-code-confusion/73128)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 3\
**Last updated:** [October 23, 2006, 1:25am UTC](https://www.ruby-forum.com/t/view-code-confusion/73128 "2006-10-23T01:25:42Z")

</div>

I am trying to do this inside a view template (pass 3 values, facility.id, @inc\_beg\_date and @inc\_end\_date)… \<% for incident in IncidentReport.include facility.id @inc\_beg\_date @inc\_end\_date %\> and the error I get is …

---

## [Tip, may even be useful](https://www.ruby-forum.com/t/tip-may-even-be-useful/59813)

<div class="topic-metadata">

**Author:** [@al-evans](https://www.ruby-forum.com/u/al-evans)\
**Replies:** 3\
**Last updated:** [May 7, 2006, 3:17pm UTC](https://www.ruby-forum.com/t/tip-may-even-be-useful/59813 "2006-05-07T15:17:55Z")

</div>

Here’s something that caused me a couple of hours of head-scratching today: Apparently, if your model doesn’t derive from ActiveRecord, it is NOT reloaded for each operation in the development environment. I was work…

---

## [Day number delta](https://www.ruby-forum.com/t/day-number-delta/58967)

<div class="topic-metadata">

**Author:** [@Lindsay\_B](https://www.ruby-forum.com/u/Lindsay_B)\
**Replies:** 3\
**Last updated:** [April 27, 2006, 3:31pm UTC](https://www.ruby-forum.com/t/day-number-delta/58967 "2006-04-27T15:31:16Z")

</div>

How can I calculate the number of days between two Date objects?. This is easy enough with Time objects using the epoch seconds method tv\_sec. Is there something similar for Dates? thanks Lindsay

---

## [Re: Does Ruby simplify our tasks and lives?](https://www.ruby-forum.com/t/re-does-ruby-simplify-our-tasks-and-lives/93515)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 3\
**Last updated:** [April 4, 2006, 11:45pm UTC](https://www.ruby-forum.com/t/re-does-ruby-simplify-our-tasks-and-lives/93515 "2006-04-04T23:45:27Z")

</div>

Simplicity \[mailto:removed\_email\_address@domain.invalid\] wrote last Tuesday, April 04, 2006 3:24 PM: #I suppose anyone can make something complex or messy, no #matter what the language or tool. Agree? yes, but why c…

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

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