# Top

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

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

---

## [Re\[jruby-user\] mote debugging as in Java for JRuby?](https://www.ruby-forum.com/t/re-jruby-user-mote-debugging-as-in-java-for-jruby/152827)

<div class="topic-metadata">

**Author:** [@drrs](https://www.ruby-forum.com/u/drrs)\
**Replies:** 2\
**Last updated:** [November 8, 2008, 5:39am UTC](https://www.ruby-forum.com/t/re-jruby-user-mote-debugging-as-in-java-for-jruby/152827 "2008-11-08T05:39:50Z")

</div>

Cannot do something like this: set JAVA\_DEBUG=-Xrunjdwp:transport=dt\_socket,server=y,suspend=n,address=4000 -Xdebug call jruby %JAVA\_DEBUG% -d jmdi.rb We get: jruby: invalid extended option runjdwp:transport=dt\_s…

---

## [Scaffolding and dealing with generated actions in the controllers](https://www.ruby-forum.com/t/scaffolding-and-dealing-with-generated-actions-in-the-controllers/151992)

<div class="topic-metadata">

**Author:** [@command0](https://www.ruby-forum.com/u/command0)\
**Replies:** 2\
**Last updated:** [October 29, 2008, 10:41pm UTC](https://www.ruby-forum.com/t/scaffolding-and-dealing-with-generated-actions-in-the-controllers/151992 "2008-10-29T22:41:02Z")

</div>

Hey Everyone, I wanted to know if I could get some insight on something. I am using Rails 2.1.2 and for something that needs beyond basic functionality, I typically generate a scaffold so I don’t have to manually crea…

---

## [Many to many through and named\_scopes](https://www.ruby-forum.com/t/many-to-many-through-and-named-scopes/151839)

<div class="topic-metadata">

**Author:** [@jc71229](https://www.ruby-forum.com/u/jc71229)\
**Replies:** 2\
**Last updated:** [October 26, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/many-to-many-through-and-named-scopes/151839 "2008-10-26T23:40:07Z")

</div>

Hi, I have problem with my named scopes. A membership has many property\_details through join\_property\_details. I do an anonymous named\_scope to get all memberships hat have ‘ns’ and ‘ae’ as property\_details. However …

---

## [S-l-o-w start up (maybe related to: Catching mouse clicks in fft\_sink)](https://www.ruby-forum.com/t/s-l-o-w-start-up-maybe-related-to-catching-mouse-clicks-in-fft-sink/151773)

<div class="topic-metadata">

**Author:** [@stevie.glass](https://www.ruby-forum.com/u/stevie.glass)\
**Replies:** 2\
**Last updated:** [October 25, 2008, 12:49pm UTC](https://www.ruby-forum.com/t/s-l-o-w-start-up-maybe-related-to-catching-mouse-clicks-in-fft-sink/151773 "2008-10-25T12:49:32Z")

</div>

It is probably unrelated to the mouse behavuour but I’m experiencing very slow start up of my very simple app. The gadgets at the right hand side of the fft panel for setting the units, etc. aren’t appearing and neith…

---

## [Strange result with trondeaus/dbs](https://www.ruby-forum.com/t/strange-result-with-trondeaus-dbs/151345)

<div class="topic-metadata">

**Author:** [@Per\_Z](https://www.ruby-forum.com/u/Per_Z)\
**Replies:** 2\
**Last updated:** [October 21, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/strange-result-with-trondeaus-dbs/151345 "2008-10-21T16:05:28Z")

</div>

Hi All, As I mentioned erlier I receive a signal only on the A-side when running the trondeaus/dbs code on my flexrf1800. I just tried running on another USRP also equipped with flexrf1800 (using the same PC and the…

---

## [Why PostgreSQL doesnÂ´t appear on the proje ct?](https://www.ruby-forum.com/t/why-postgresql-doesna-t-appear-on-the-proje-ct/150102)

<div class="topic-metadata">

**Author:** [@c\_h](https://www.ruby-forum.com/u/c_h)\
**Replies:** 2\
**Last updated:** [October 19, 2008, 2:58pm UTC](https://www.ruby-forum.com/t/why-postgresql-doesna-t-appear-on-the-proje-ct/150102 "2008-10-19T14:58:36Z")

</div>

Why only MySQL (“fake DBMS”) receive a massive support and tutorial.

---

## [Collection\_select reseting selection whenever page refreshes](https://www.ruby-forum.com/t/collection-select-reseting-selection-whenever-page-refreshes/148071)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 2\
**Last updated:** [September 30, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/collection-select-reseting-selection-whenever-page-refreshes/148071 "2008-09-30T16:45:21Z")

</div>

I have a collection\_select dialog that I have for selecting Users on a page. I am wanting the selection to remember and display the last selected user from the database. Every time I refresh the page it is going bac…

---

## [Sporadic NonInferrableControllerError on nested controller tests with Rails 2.1](https://www.ruby-forum.com/t/sporadic-noninferrablecontrollererror-on-nested-controller-tests-with-rails-2-1/146955)

<div class="topic-metadata">

**Author:** [@Yuval](https://www.ruby-forum.com/u/Yuval)\
**Replies:** 2\
**Last updated:** [August 27, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/sporadic-noninferrablecontrollererror-on-nested-controller-tests-with-rails-2-1/146955 "2008-08-27T17:36:29Z")

</div>

Hey folks. I’ve been getting this aggravating error sporadically on some of my nested controller tests since upgrading to Rails 2.1. The last bout seems to be here to stay and it’s driving me mad. I have the following…

---

## [Code Review: interpret1](https://www.ruby-forum.com/t/code-review-interpret1/145090)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [August 5, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/code-review-interpret1/145090 "2008-08-05T23:44:09Z")

</div>

tfpt review “/shelveset:interpret1;REDMOND\\jdeville” Comment : Modifies run.rb and common.rb to clean up command line flags and run tests under -D -X:Interpret, -D and -D -X:SaveAssemblies. All three are ran in snap…

---

## [Is update\_rubygems unnecessary?](https://www.ruby-forum.com/t/is-update-rubygems-unnecessary/142859)

<div class="topic-metadata">

**Author:** [@iwadon](https://www.ruby-forum.com/u/iwadon)\
**Replies:** 2\
**Last updated:** [July 19, 2008, 8:33am UTC](https://www.ruby-forum.com/t/is-update-rubygems-unnecessary/142859 "2008-07-19T08:33:21Z")

</div>

Hi all, RubyGems’s setup.rb don’t install bin/update\_rubygems since rev.1619. Is this right installation? BTW, I posted same report to RubyGems’s BTS. http://rubyforge.org/tracker/?func=detail&aid=21057&group\_id=126&a…

---

## [How to stub forever?](https://www.ruby-forum.com/t/how-to-stub-forever/142776)

<div class="topic-metadata">

**Author:** [@qertoip](https://www.ruby-forum.com/u/qertoip)\
**Replies:** 2\
**Last updated:** [July 11, 2008, 9:20pm UTC](https://www.ruby-forum.com/t/how-to-stub-forever/142776 "2008-07-11T21:20:59Z")

</div>

How to stub a method for multiple calls? The calls are done in a loop. I expect: @agent.stub!( :submit ).multiple\_times.and\_return( @account\_details\_page ) …to stub submit method “forever” (any number of calls).

---

## [Trying to install a gem from a tarball and getting an exception](https://www.ruby-forum.com/t/trying-to-install-a-gem-from-a-tarball-and-getting-an-exception/142425)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 2\
**Last updated:** [July 7, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/trying-to-install-a-gem-from-a-tarball-and-getting-an-exception/142425 "2008-07-07T22:16:25Z")

</div>

Hi, I’m trying to install RCov without the native extension with JRuby 1.1.2. And I’m getting an exception. the steps I’m following are: get the rcov-0.8.1.2 tarball - http://rubyforge.org/frs/download.php/28270/…

---

## [Roo gem](https://www.ruby-forum.com/t/roo-gem/140981)

<div class="topic-metadata">

**Author:** [@kisrti](https://www.ruby-forum.com/u/kisrti)\
**Replies:** 2\
**Last updated:** [June 20, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/roo-gem/140981 "2008-06-20T21:19:10Z")

</div>

Hi, I am using ‘roo gem’ for importing data from xml file. My code is importing data from xml file and storing it in database(MySQL). All is going fine. But my issue is that ,i am importing file which is of 64 Kb s…

---

## [Auto complete down arrow not working](https://www.ruby-forum.com/t/auto-complete-down-arrow-not-working/140244)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 2\
**Last updated:** [June 13, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/auto-complete-down-arrow-not-working/140244 "2008-06-13T12:30:33Z")

</div>

Hi all, i was using auto complete feature in my rails app, when i used to type a character it responds very well and displays all the items match with that character. and now the thing is when i try to select any ite…

---

## [Rcov causing a segmentation fault on rspec 1.1.4 and rails 2.1](https://www.ruby-forum.com/t/rcov-causing-a-segmentation-fault-on-rspec-1-1-4-and-rails-2-1/139826)

<div class="topic-metadata">

**Author:** [@MaurSSS\_cio\_Linhare](https://www.ruby-forum.com/u/MaurSSS_cio_Linhare)\
**Replies:** 2\
**Last updated:** [June 7, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/rcov-causing-a-segmentation-fault-on-rspec-1-1-4-and-rails-2-1/139826 "2008-06-07T23:10:10Z")

</div>

Hello again :slight\_smile: I’m trying to run rcov on my specs here but i’m getting a lot of segmentation faults (and they usually happen at different places): /home/mauricio/NetBeansProjects/reeds/vendor/rails/activer…

---

## [RailsConf hacks](https://www.ruby-forum.com/t/railsconf-hacks/139235)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 2\
**Last updated:** [June 2, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/railsconf-hacks/139235 "2008-06-02T22:32:39Z")

</div>

I’ve prepared a diff that contains the code that we hacked in to get ActiveRecord to work. If you’re curious, take a look at this code or apply it to r113. That said, it does break a TON of tests for some reason that …

---

## ["Plugin not found" after RSpec install](https://www.ruby-forum.com/t/plugin-not-found-after-rspec-install/136758)

<div class="topic-metadata">

**Author:** [@eeby](https://www.ruby-forum.com/u/eeby)\
**Replies:** 2\
**Last updated:** [May 6, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/plugin-not-found-after-rspec-install/136758 "2008-05-06T23:47:01Z")

</div>

I tried to install the RSpec Rails plugin as described here: http://rspec.info/documentation/rails/install.html After I run this… ruby script/plugin install http://rspec.rubyforge.org/svn/tags/CURRENT/rspec At the v…

---

## [Job Board example application/plugin?](https://www.ruby-forum.com/t/job-board-example-application-plugin/135431)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 8:44am UTC](https://www.ruby-forum.com/t/job-board-example-application-plugin/135431 "2008-04-22T08:44:38Z")

</div>

Hello! I need to build a job board system for a new application I’m working on. I’m curious if there are any examples or plugins for this? I can build it but I’d rather not re-invent the wheel on this one. The proble…

---

## [Call console command and return as string...problem](https://www.ruby-forum.com/t/call-console-command-and-return-as-string-problem/134163)

<div class="topic-metadata">

**Author:** [@lasastard](https://www.ruby-forum.com/u/lasastard)\
**Replies:** 2\
**Last updated:** [April 9, 2008, 3:34am UTC](https://www.ruby-forum.com/t/call-console-command-and-return-as-string-problem/134163 "2008-04-09T03:34:20Z")

</div>

Hi, I am trying to use the following line of code in a rails application, but I dont think my problem has anything to do with rails, but with ruby, so this is why I post it here. To set the scene - I am programming a…

---

## [puts$B$G(BSEGV](https://www.ruby-forum.com/t/puts-b-g-bsegv/132006)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [March 15, 2008, 7:41am UTC](https://www.ruby-forum.com/t/puts-b-g-bsegv/132006 "2008-03-15T07:41:44Z")

</div>

e$B$k$S$-$A$G$9!#e(B $stdoute$B$KJL$N%\*%V%8%’%/%H$r;XDj$7$?\>l9g!"e(Bputse$B$Ge(BSEGVe$B$j$^$9!#e(B Ruby 1.9.0e$B$G$OBg\>fIW$G$9!#e(B class Logger def write(obj) STDOUT.print Time.now.strftime("%Y/%m/%d %H:%M:%S:"), o…

---

## [Dealing with MySQL disconnects on long running scripts](https://www.ruby-forum.com/t/dealing-with-mysql-disconnects-on-long-running-scripts/130576)

<div class="topic-metadata">

**Author:** [@divotdave](https://www.ruby-forum.com/u/divotdave)\
**Replies:** 2\
**Last updated:** [February 29, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/dealing-with-mysql-disconnects-on-long-running-scripts/130576 "2008-02-29T17:04:39Z")

</div>

Would anyone happen to have some advise for this? I have a script that runs for months at a time. On one box, I can do this without issue, on another it disconnects after a day. I’ve been trying various solutions, bu…

---

## [Ssl\_requirement does not redirect to https](https://www.ruby-forum.com/t/ssl-requirement-does-not-redirect-to-https/129619)

<div class="topic-metadata">

**Author:** [@bobbysantiago](https://www.ruby-forum.com/u/bobbysantiago)\
**Replies:** 2\
**Last updated:** [February 20, 2008, 11:17pm UTC](https://www.ruby-forum.com/t/ssl-requirement-does-not-redirect-to-https/129619 "2008-02-20T23:17:41Z")

</div>

I’m trying to get SSL working on my app, using ssl\_requirement. SSL is working, but ssl\_requirement doesn’t seem to be handling the request properly- it doesn’t redirect to https. Relevant files: application.rb: cla…

---

## [Trying to squeeze a variable in here =\>](https://www.ruby-forum.com/t/trying-to-squeeze-a-variable-in-here/125770)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 2\
**Last updated:** [January 11, 2008, 11:13pm UTC](https://www.ruby-forum.com/t/trying-to-squeeze-a-variable-in-here/125770 "2008-01-11T23:13:22Z")

</div>

Hi Ruby… I have an SNMP command that I’m using which works fine in my script: There is a static portion that needs to be changed so I can feed in the variable and it’s a bit tricky. I have tried every combination of "…

---

## [Problems with rspec 1.1 required inside rake tasks](https://www.ruby-forum.com/t/problems-with-rspec-1-1-required-inside-rake-tasks/125369)

<div class="topic-metadata">

**Author:** [@lodestone](https://www.ruby-forum.com/u/lodestone)\
**Replies:** 2\
**Last updated:** [January 8, 2008, 8:03pm UTC](https://www.ruby-forum.com/t/problems-with-rspec-1-1-required-inside-rake-tasks/125369 "2008-01-08T20:03:36Z")

</div>

This is interesting. The default rspec rake tasks generated by Hoe give you an rspec.rake file that looks like: begin require ‘spec’ rescue LoadError require ‘rubygems’ require ‘spec’ end So far so good. When…

---

## [Encrypt using ruby depcrypt using VB](https://www.ruby-forum.com/t/encrypt-using-ruby-depcrypt-using-vb/122891)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 12:58am UTC](https://www.ruby-forum.com/t/encrypt-using-ruby-depcrypt-using-vb/122891 "2007-12-15T00:58:16Z")

</div>

Anyone ever try and encrypt something using and decrypt it using VB.NET? I have been trying this for the better part of a week now with no luck. Anyone ever done this and been successful? -T

---

## [Validation without saving](https://www.ruby-forum.com/t/validation-without-saving/121364)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 2\
**Last updated:** [November 27, 2007, 10:23am UTC](https://www.ruby-forum.com/t/validation-without-saving/121364 "2007-11-27T10:23:43Z")

</div>

One of the things that strikes me as odd about the validations as I understand them to work from AWDWR, is that the validations themselves are only triggered upon a save. I brought this up earlier that I am accustomed…

---

## [Aziende italia (shared hosting) come configurare rails?](https://www.ruby-forum.com/t/aziende-italia-shared-hosting-come-configurare-rails/120179)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 2\
**Last updated:** [November 14, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/aziende-italia-shared-hosting-come-configurare-rails/120179 "2007-11-14T16:10:00Z")

</div>

Ciao, ho appena preso un dominio linux start con supporto rails. Come faccio ora per fargli prendere il progetto rails? ho provato a seguire le istruzioni su plesk (mettere il progetto in una cartella e poi modificare…

---

## [Piu' esempi sulle rubylet](https://www.ruby-forum.com/t/piu-esempi-sulle-rubylet/118041)

<div class="topic-metadata">

**Author:** [@eltoni](https://www.ruby-forum.com/u/eltoni)\
**Replies:** 2\
**Last updated:** [October 23, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/piu-esempi-sulle-rubylet/118041 "2007-10-23T20:16:11Z")

</div>

Salve volevo chiedere se qualcuno conosce link che forniscono piu’ esempi sull’uso delle rubylet: Conoscete altri siti oltre a: rubylets.rictic.com/ rubylets.rubyforge.org/ Grazie in anticipo

---

## [Scroll to anchor from RJS](https://www.ruby-forum.com/t/scroll-to-anchor-from-rjs/116251)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 2\
**Last updated:** [October 3, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/scroll-to-anchor-from-rjs/116251 "2007-10-03T22:25:00Z")

</div>

Is there an way to tell the browser to scroll to a certain anchor from an RJS template? I’m doing a page update, adding stuff at the bottom and want to browser to go there after it’s been added. Thanks, Helzer

---

## [Using JRuby with AR Migrations standalone](https://www.ruby-forum.com/t/using-jruby-with-ar-migrations-standalone/115915)

<div class="topic-metadata">

**Author:** [@Abdullah\_J](https://www.ruby-forum.com/u/Abdullah_J)\
**Replies:** 2\
**Last updated:** [September 30, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/using-jruby-with-ar-migrations-standalone/115915 "2007-09-30T17:52:36Z")

</div>

Hi All, I have a couple questions regarding JRuby and ActiveRecord migrations, I’d like to introduce Ruby to a Java-based project for managing database migrations initially, so here they are: 1- Is it possible to pac…

---

## [Logs en iso](https://www.ruby-forum.com/t/logs-en-iso/110855)

<div class="topic-metadata">

**Author:** [@JSSSSrSSSSmy\_Dierx](https://www.ruby-forum.com/u/JSSSSrSSSSmy_Dierx)\
**Replies:** 2\
**Last updated:** [July 31, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/logs-en-iso/110855 "2007-07-31T17:11:00Z")

</div>

Bonjour ! j’ai une appli en dev sur mon poste, voici mon environnement de travail : IDE Eclipse appli rails nativement encodÃ© en utf8 serveur mongrel os linux Mysql avec db en utf8 et “encoding: utf8” forcÃ© dans da…

---

## [Model.nil](https://www.ruby-forum.com/t/model-nil/108492)

<div class="topic-metadata">

**Author:** [@wifer](https://www.ruby-forum.com/u/wifer)\
**Replies:** 2\
**Last updated:** [July 4, 2007, 8:02am UTC](https://www.ruby-forum.com/t/model-nil/108492 "2007-07-04T08:02:18Z")

</div>

Buenas! compaÃ±eros, como hago para averiguar si un modelo tiene datos? hice una consulta model = Model.find(1) como averiguo si model tiene datos? preguntando por model.campo = valor? si lo hago asi me genera erro…

---

## [Undefined method \`+' for nil:NilClass](https://www.ruby-forum.com/t/undefined-method-for-nil-nilclass/108454)

<div class="topic-metadata">

**Author:** [@scrajesh](https://www.ruby-forum.com/u/scrajesh)\
**Replies:** 2\
**Last updated:** [July 3, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/undefined-method-for-nil-nilclass/108454 "2007-07-03T17:58:17Z")

</div>

I’m trying to send emails in my application. the email function in under the ActionMailer::Base as follows: def xxxxx(aaa, recipient, bbb, burl) @from = aaa.email @recipients = \[ recipient \] @subject …

---

## [Newbie question - undefined method \`replace\_session\_timeout'](https://www.ruby-forum.com/t/newbie-question-undefined-method-replace-session-timeout/107480)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 2:28pm UTC](https://www.ruby-forum.com/t/newbie-question-undefined-method-replace-session-timeout/107480 "2007-06-22T14:28:23Z")

</div>

Hi, I’m a newbie to ruby, and programming really… I’m trying to write a simple script that will make a small change to a text file. Here’s the code: #script for changing the sessionState timeout to 30 minutes f = F…

---

## [Singular resource controller naming convention changed?](https://www.ruby-forum.com/t/singular-resource-controller-naming-convention-changed/106232)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 2\
**Last updated:** [June 8, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/singular-resource-controller-naming-convention-changed/106232 "2007-06-08T14:22:04Z")

</div>

Hi, singular resources used to assume singular controller naming, as in: map.resources :session GET /session/ {:action=\>“show”, :controller=\>“session”} did this change in edge? My routes broke after updating, and …

---

## [Could I use inherited model?](https://www.ruby-forum.com/t/could-i-use-inherited-model/106085)

<div class="topic-metadata">

**Author:** [@Magicloud](https://www.ruby-forum.com/u/Magicloud)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/could-i-use-inherited-model/106085 "2007-06-06T19:04:08Z")

</div>

Like I have a class A and a class B, A \< B, B \< ActiveRecord::Base. as and bs are two different table in database, as has bs’s columns. (I use postgresql’s inherit table). Now I do ‘A.find(:all, conditions =\> “acol1 =…

---

## [Any way to store instance of ActiveRecord as a string in dat](https://www.ruby-forum.com/t/any-way-to-store-instance-of-activerecord-as-a-string-in-dat/105206)

<div class="topic-metadata">

**Author:** [@David\_Badawi](https://www.ruby-forum.com/u/David_Badawi)\
**Replies:** 2\
**Last updated:** [May 27, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/any-way-to-store-instance-of-activerecord-as-a-string-in-dat/105206 "2007-05-27T17:25:29Z")

</div>

Greetings, I was wondering if any one had a suggestion for how I should approach a problem: I am interested in storing an instance of ActiveRecord as a string in a database and reconstituting or converting it back in…

---

## [How to know the OS platform](https://www.ruby-forum.com/t/how-to-know-the-os-platform/105041)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 2\
**Last updated:** [May 25, 2007, 8:25am UTC](https://www.ruby-forum.com/t/how-to-know-the-os-platform/105041 "2007-05-25T08:25:40Z")

</div>

How can i know which OS platform the ruby application is running, MS Windows, Mac OS or Linux? thank you

---

## [Different views for different sites from same codebase?](https://www.ruby-forum.com/t/different-views-for-different-sites-from-same-codebase/104637)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 2\
**Last updated:** [May 21, 2007, 2:37am UTC](https://www.ruby-forum.com/t/different-views-for-different-sites-from-same-codebase/104637 "2007-05-21T02:37:50Z")

</div>

I need to develop an application which will have one codebase but different sites will be accessing the same codebase. Now the problem is that how can render different look and feel for the same view based on the site…

---

## [Memcache storage failing across mongrels](https://www.ruby-forum.com/t/memcache-storage-failing-across-mongrels/91505)

<div class="topic-metadata">

**Author:** [@Chuck\_V](https://www.ruby-forum.com/u/Chuck_V)\
**Replies:** 2\
**Last updated:** [May 15, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/memcache-storage-failing-across-mongrels/91505 "2007-05-15T20:51:38Z")

</div>

We’ve been using memcached to store sessions across our mongrel cluster but we’ve noticed that when apache switches us to a different mongrel our session dies and we get logged out. Further, when I switch mongrels man…

---

## [Folder delete script](https://www.ruby-forum.com/t/folder-delete-script/90890)

<div class="topic-metadata">

**Author:** [@Gus\_H](https://www.ruby-forum.com/u/Gus_H)\
**Replies:** 2\
**Last updated:** [April 2, 2007, 8:18pm UTC](https://www.ruby-forum.com/t/folder-delete-script/90890 "2007-04-02T20:18:06Z")

</div>

Hi. I am a rubyn00b. I need help. I’m trying to write a script that will delete specific sub folders in a particular folder. I would like to delete all folders that begin with lets say the letter “T” that are two week…

---

## [Not using offline mode in webrick](https://www.ruby-forum.com/t/not-using-offline-mode-in-webrick/90206)

<div class="topic-metadata">

**Author:** [@maxbohr](https://www.ruby-forum.com/u/maxbohr)\
**Replies:** 2\
**Last updated:** [March 28, 2007, 6:13am UTC](https://www.ruby-forum.com/t/not-using-offline-mode-in-webrick/90206 "2007-03-28T06:13:28Z")

</div>

Hello list, I’m using webrick to serve up rhtml pages and can’t seem to access cgi variables. My very very simple server looks like this: ######################## require ‘webrick’ include WEBrick def start\_webric…

---

## [Nueva version de Rails y aplicacion que deja de funcionar](https://www.ruby-forum.com/t/nueva-version-de-rails-y-aplicacion-que-deja-de-funcionar/89408)

<div class="topic-metadata">

**Author:** [@DaVinci](https://www.ruby-forum.com/u/DaVinci)\
**Replies:** 2\
**Last updated:** [March 20, 2007, 10:12am UTC](https://www.ruby-forum.com/t/nueva-version-de-rails-y-aplicacion-que-deja-de-funcionar/89408 "2007-03-20T10:12:11Z")

</div>

Hola. Tengo instalada una aplicación Rails en el servidor de www.bluehost.com. Hasta el viernes la aplicación funcionaba perfectamente, pero este fin de semana han instalado una nueva versión de Rails (1.2.3) y todo …

---

## [Set operations on arrays of non-trivial objects](https://www.ruby-forum.com/t/set-operations-on-arrays-of-non-trivial-objects/87970)

<div class="topic-metadata">

**Author:** [@Jon\_Egil\_Stand](https://www.ruby-forum.com/u/Jon_Egil_Stand)\
**Replies:** 2\
**Last updated:** [March 7, 2007, 9:30am UTC](https://www.ruby-forum.com/t/set-operations-on-arrays-of-non-trivial-objects/87970 "2007-03-07T09:30:31Z")

</div>

MAIN QUESTION Is there a nice and fast way to do set operations on arrays of non-trivial objects. BACKGROUND Set operations are beatiful: a = \[1,2,3,4,5\] b = \[2,4,6,8,10\] (a & b) =\> \[2,4\] When comparing lists, which i…

---

## [SessionTimeout plugin doesn't work w/other before\_filters?](https://www.ruby-forum.com/t/sessiontimeout-plugin-doesnt-work-w-other-before-filters/86379)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [February 21, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/sessiontimeout-plugin-doesnt-work-w-other-before-filters/86379 "2007-02-21T21:32:34Z")

</div>

All, I’ve installed Luke R.'s SessionTimeout plugin and am trying to make it work. This is what I’ve put into my application.rb file: session\_times\_out\_in 30.seconds, :after\_timeout =\> :handle\_session\_timeout, :exce…

---

## [Sharing session data between apps](https://www.ruby-forum.com/t/sharing-session-data-between-apps/83803)

<div class="topic-metadata">

**Author:** [@jimmy](https://www.ruby-forum.com/u/jimmy)\
**Replies:** 2\
**Last updated:** [January 31, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/sharing-session-data-between-apps/83803 "2007-01-31T20:35:00Z")

</div>

is it possible to share session data between 2 separate rails apps So, for example, You can login once and your session is recognized by the other app as well? I tried just sharing the session cookies but it seems lik…

---

## [Moving an existing Rails app, css links are wrong](https://www.ruby-forum.com/t/moving-an-existing-rails-app-css-links-are-wrong/81817)

<div class="topic-metadata">

**Author:** [@MJMJMJ](https://www.ruby-forum.com/u/MJMJMJ)\
**Replies:** 2\
**Last updated:** [January 15, 2007, 11:37am UTC](https://www.ruby-forum.com/t/moving-an-existing-rails-app-css-links-are-wrong/81817 "2007-01-15T11:37:59Z")

</div>

Hi, I just moved my existing Rails app from /oldblog to /newblog. It works great only the css links and the controller links still get written as: http://mydomain.com/oldblog/stylesheets/main.css instead of http://m…

---

## [Does a Command exist for Proper Names?](https://www.ruby-forum.com/t/does-a-command-exist-for-proper-names/72530)

<div class="topic-metadata">

**Author:** [@mic](https://www.ruby-forum.com/u/mic)\
**Replies:** 2\
**Last updated:** [October 17, 2006, 10:12pm UTC](https://www.ruby-forum.com/t/does-a-command-exist-for-proper-names/72530 "2006-10-17T22:12:58Z")

</div>

I am taking in a dataset of names but want to print them out nicely. Some of them are all caps, others have none. While I found the string class for capitalize, it only catches the first letter of the first name. Si…

---

## [EZ\_Where help, field IS NULL](https://www.ruby-forum.com/t/ez-where-help-field-is-null/71851)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 2\
**Last updated:** [October 11, 2006, 11:50pm UTC](https://www.ruby-forum.com/t/ez-where-help-field-is-null/71851 "2006-10-11T23:50:25Z")

</div>

I am trying to create a conditions caluse with ez\_where that looks like: \[“enabled = ? AND age\_min \<= ? AND (age\_max \>= ? OR age\_max IS NULL)”, true, range\[:max\], range\[:min\]\] Everything is fine except for the last pa…

---

## [Multi-column primary key in joining tables](https://www.ruby-forum.com/t/multi-column-primary-key-in-joining-tables/71478)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 2\
**Last updated:** [October 9, 2006, 11:05am UTC](https://www.ruby-forum.com/t/multi-column-primary-key-in-joining-tables/71478 "2006-10-09T11:05:08Z")

</div>

Folks, What is the convention for primary key fields in joining tables in RoR? I have a model representing a joining table, and I can’t seem to prevent ActiveRecord’s find method from looking for an id column. I don’…

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

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