# Top

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

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

---

## [How to update user model attributes and bypass a presence\_of validation?](https://www.ruby-forum.com/t/how-to-update-user-model-attributes-and-bypass-a-presence-of-validation/191862)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 4\
**Last updated:** [July 21, 2010, 3:02am UTC](https://www.ruby-forum.com/t/how-to-update-user-model-attributes-and-bypass-a-presence-of-validation/191862 "2010-07-21T03:02:51Z")

</div>

Hello, I have a user model which stores a users name, email, and password. I have a separate profile controller which lets the user edit his name, email, and password from the user model. I want the user to be able t…

---

## [Passenger bug?](https://www.ruby-forum.com/t/passenger-bug/191740)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [July 19, 2010, 12:51pm UTC](https://www.ruby-forum.com/t/passenger-bug/191740 "2010-07-19T12:51:14Z")

</div>

I’m trying to get Nginx and Passenger working. I’ve installed Nginx through Passenger. When accessing a rails app I get “Exception Errno::EPIPE in Passenger RequestHandler”. From what I can see this has happened to ot…

---

## [Using Associations vs Child\_Model.find](https://www.ruby-forum.com/t/using-associations-vs-child-model-find/190989)

<div class="topic-metadata">

**Author:** [@khagimoto](https://www.ruby-forum.com/u/khagimoto)\
**Replies:** 4\
**Last updated:** [July 2, 2010, 3:24pm UTC](https://www.ruby-forum.com/t/using-associations-vs-child-model-find/190989 "2010-07-02T15:24:10Z")

</div>

I have a model (Parent) that has a has\_many association with another model (Child). I read that there are performance issues (relating to GC) with too many associations. I was about to add more has\_many associations…

---

## [Is there a method I can call where:](https://www.ruby-forum.com/t/is-there-a-method-i-can-call-where/190381)

<div class="topic-metadata">

**Author:** [@Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/u/Xeno_CSS_Eskimo_No)\
**Replies:** 4\
**Last updated:** [June 19, 2010, 12:22am UTC](https://www.ruby-forum.com/t/is-there-a-method-i-can-call-where/190381 "2010-06-19T00:22:47Z")

</div>

If I have: class Blek def bM puts “trace #{self.somemethod}” end end bo = Blek.new bo.bM It will give me: trace bo.bM or trace bM ??? I want to set up stuff that tells me what method I am in, largely for ra…

---

## [Rails 3 telling me route doesn't exist](https://www.ruby-forum.com/t/rails-3-telling-me-route-doesnt-exist/189218)

<div class="topic-metadata">

**Author:** [@b1gtuna](https://www.ruby-forum.com/u/b1gtuna)\
**Replies:** 4\
**Last updated:** [May 28, 2010, 3:50am UTC](https://www.ruby-forum.com/t/rails-3-telling-me-route-doesnt-exist/189218 "2010-05-28T03:50:27Z")

</div>

– category.rb class Category \< ActiveRecord::Base has\_many :subcategories validates\_presence\_of :name validates\_uniqueness\_of :name end – subcategory.rb class Subcategory \< ActiveRecord::Base belongs\_to :category …

---

## [Accessing the router from a helper](https://www.ruby-forum.com/t/accessing-the-router-from-a-helper/187338)

<div class="topic-metadata">

**Author:** [@tomuhs](https://www.ruby-forum.com/u/tomuhs)\
**Replies:** 4\
**Last updated:** [April 21, 2010, 11:13pm UTC](https://www.ruby-forum.com/t/accessing-the-router-from-a-helper/187338 "2010-04-21T23:13:56Z")

</div>

I find manually accessing the router to be quite ugly below. Is there a more direct way to access it? module ApplicationHelper def menu\_item text, url = nil routes = ActionController::Routing::Routes url = if url …

---

## [Unable to run TUNNEL.PY in usrp](https://www.ruby-forum.com/t/unable-to-run-tunnel-py-in-usrp/180309)

<div class="topic-metadata">

**Author:** [@amarnath\_alapati](https://www.ruby-forum.com/u/amarnath_alapati)\
**Replies:** 4\
**Last updated:** [December 25, 2009, 5:12pm UTC](https://www.ruby-forum.com/t/unable-to-run-tunnel-py-in-usrp/180309 "2009-12-25T17:12:33Z")

</div>

hi , I am using Fedora Core 11 OS. I have succesfully executed benchmark\_tx.py, benchmark\_rx.py files. But coming to TUNNEL.PY I am unable to ping to the other computer. Self ping is working. Please help me, ( I am …

---

## [Regexp.escape with un-escapes](https://www.ruby-forum.com/t/regexp-escape-with-un-escapes/179880)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 4\
**Last updated:** [December 8, 2009, 6:10am UTC](https://www.ruby-forum.com/t/regexp-escape-with-un-escapes/179880 "2009-12-08T06:10:48Z")

</div>

Hi– I want to translate a string into a regular expression, but I want to “un-escape” portions as raw regexp. For example: “here is a setting ‘a’ equal to ((\\d+))” So I want to Regexp.escape the string, before I pass…

---

## [Capistrano deploy:web:disable doesn't work](https://www.ruby-forum.com/t/capistrano-deploydisable-doesnt-work/173976)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 4\
**Last updated:** [August 19, 2009, 2:46am UTC](https://www.ruby-forum.com/t/capistrano-deploydisable-doesnt-work/173976 "2009-08-19T02:46:55Z")

</div>

Hi all, I’m trying to figure out why cap deploy:web:disable isn’t working for my server. I’m adding a pastie with the example apache RewriteCond I’m using with my rails app. http://pastie.org/587619 The document ro…

---

## [Regarding info](https://www.ruby-forum.com/t/regarding-info/168161)

<div class="topic-metadata">

**Author:** [@skk](https://www.ruby-forum.com/u/skk)\
**Replies:** 4\
**Last updated:** [May 18, 2009, 11:43am UTC](https://www.ruby-forum.com/t/regarding-info/168161 "2009-05-18T11:43:28Z")

</div>

Hi all , I am dont know Ruby at all but I would like to learn ROR is that possible Or I should learn ruby first after that Go for ROR… Thanks

---

## [Debugging in ruby](https://www.ruby-forum.com/t/debugging-in-ruby/165987)

<div class="topic-metadata">

**Author:** [@anilg](https://www.ruby-forum.com/u/anilg)\
**Replies:** 4\
**Last updated:** [April 22, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/debugging-in-ruby/165987 "2009-04-22T22:07:51Z")

</div>

Hi, when I run unittest class, with debugger the flow goes into testcase case class as below. how can i debug only the testscript instead of going into libraries of extended clases Testscript require “test/unit” c…

---

## [Please help with fixing output](https://www.ruby-forum.com/t/please-help-with-fixing-output/162110)

<div class="topic-metadata">

**Author:** [@lionbarrage](https://www.ruby-forum.com/u/lionbarrage)\
**Replies:** 4\
**Last updated:** [March 13, 2009, 6:05pm UTC](https://www.ruby-forum.com/t/please-help-with-fixing-output/162110 "2009-03-13T18:05:55Z")

</div>

Hi all, I’m having trouble with a hash output. The original files are: File 1 ALPHA|OMEGA|GAMMA 1|2|3 4|5|6 File 2 EPSILON|GREEK|OMEGA|BETA 7|8|9|0 12||13| 10|11|5|15 and I’m using the following code: sets =…

---

## [String comparisions](https://www.ruby-forum.com/t/string-comparisions/160159)

<div class="topic-metadata">

**Author:** [@talib](https://www.ruby-forum.com/u/talib)\
**Replies:** 4\
**Last updated:** [February 12, 2009, 2:16pm UTC](https://www.ruby-forum.com/t/string-comparisions/160159 "2009-02-12T14:16:15Z")

</div>

Experts, I have a requirement of comparing string and getting the difference out For Example : strOne = “Hello, this is a test” strTwo = “Hello, this is a test forum” This should result that word “forum” is extra. A…

---

## [Nesting exception](https://www.ruby-forum.com/t/nesting-exception/146566)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [August 22, 2008, 1:12pm UTC](https://www.ruby-forum.com/t/nesting-exception/146566 "2008-08-22T13:12:51Z")

</div>

Hi I have the following code It is working I have no file named a begin f=File.open(‘a’) rescue Exception =\> exception if exception.message == ‘No such file or directory - a’ puts ’ in first rescue’ else puts ‘in…

---

## [Bug with datetime\_select option :order](https://www.ruby-forum.com/t/bug-with-datetime-select-option-order/140999)

<div class="topic-metadata">

**Author:** [@Bensoussan\_M](https://www.ruby-forum.com/u/Bensoussan_M)\
**Replies:** 4\
**Last updated:** [June 21, 2008, 11:42am UTC](https://www.ruby-forum.com/t/bug-with-datetime-select-option-order/140999 "2008-06-21T11:42:51Z")

</div>

I tried to do a time\_select like that : \<%= time\_select “drive” “departure” %\> but it raises : can’t convert nil to string so, i tried : \<%= datetime\_select "drive, “departure”, :order =\> \[:hour, :minute\] %\> and as…

---

## [How to use Chars in classes not derived from AR](https://www.ruby-forum.com/t/how-to-use-chars-in-classes-not-derived-from-ar/140767)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 4\
**Last updated:** [June 18, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/how-to-use-chars-in-classes-not-derived-from-ar/140767 "2008-06-18T13:49:02Z")

</div>

Hi! I have a class that derives from nothing and is located in /models. I’m using " my string ".chars to manipulate strings that potentially contain special chars and replace them with an US-ASCII equivalent. It did …

---

## [Css class as parameter](https://www.ruby-forum.com/t/css-class-as-parameter/140476)

<div class="topic-metadata">

**Author:** [@arte\_fact](https://www.ruby-forum.com/u/arte_fact)\
**Replies:** 4\
**Last updated:** [June 15, 2008, 7:18am UTC](https://www.ruby-forum.com/t/css-class-as-parameter/140476 "2008-06-15T07:18:50Z")

</div>

hello, I would like to know how could it be possible to set a css class as parameter and a default one. For instance class=“active” will be located on the first, second lines, depending on the action. application.ht…

---

## [How many mongrel servers to setup](https://www.ruby-forum.com/t/how-many-mongrel-servers-to-setup/139586)

<div class="topic-metadata">

**Author:** [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Replies:** 4\
**Last updated:** [June 7, 2008, 11:45am UTC](https://www.ruby-forum.com/t/how-many-mongrel-servers-to-setup/139586 "2008-06-07T11:45:04Z")

</div>

Is there a formula, data points etc that I can use to decide how many mongrel servers is the optimal/max for a mongrel cluster setup on a box? i.e what should I look for in terms of processing, load etc. Thanks.

---

## [Why code works in development and not production](https://www.ruby-forum.com/t/why-code-works-in-development-and-not-production/139541)

<div class="topic-metadata">

**Author:** [@amanda](https://www.ruby-forum.com/u/amanda)\
**Replies:** 4\
**Last updated:** [June 4, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/why-code-works-in-development-and-not-production/139541 "2008-06-04T21:07:58Z")

</div>

I’ve had a few problems with my site working perfectly in development then in production not doing what it’s supposed to or having errors. I’ve tried to find information about why these things could happen but haven’t…

---

## [Check for Open Application](https://www.ruby-forum.com/t/check-for-open-application/139196)

<div class="topic-metadata">

**Author:** [@koooee](https://www.ruby-forum.com/u/koooee)\
**Replies:** 4\
**Last updated:** [June 1, 2008, 7:26pm UTC](https://www.ruby-forum.com/t/check-for-open-application/139196 "2008-06-01T19:26:11Z")

</div>

Hello, I am trying to write a simple script and all I need to do is check if there is all ready a running instance of the word application. I look and couldn’t find much on google how to do this…which probably means …

---

## [How would you program "You have posted 5 days in a row..."?](https://www.ruby-forum.com/t/how-would-you-program-you-have-posted-5-days-in-a-row/137349)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 4\
**Last updated:** [May 13, 2008, 6:42am UTC](https://www.ruby-forum.com/t/how-would-you-program-you-have-posted-5-days-in-a-row/137349 "2008-05-13T06:42:15Z")

</div>

If you want to show the number of consecutive days a user has posted (e.g. “You have posted 5 days in a row”), how would you do it? I have no idea how to do this. I’m guessing it’s something along the lines of current…

---

## [Using RoR w/ Apache/MySQL already installed](https://www.ruby-forum.com/t/using-ror-w-apache-mysql-already-installed/137203)

<div class="topic-metadata">

**Author:** [@irksome](https://www.ruby-forum.com/u/irksome)\
**Replies:** 4\
**Last updated:** [May 10, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/using-ror-w-apache-mysql-already-installed/137203 "2008-05-10T21:43:33Z")

</div>

Hi, I already had the wamp server (Apache & php w/ mysql) installed and want to use RoR with it. I installed everything fine, but how do I get RoR to use the Apache server instead of starting the Webrick server that …

---

## [Nested Route Issue Rails 2.0](https://www.ruby-forum.com/t/nested-route-issue-rails-2-0/133393)

<div class="topic-metadata">

**Author:** [@cpaesleme](https://www.ruby-forum.com/u/cpaesleme)\
**Replies:** 4\
**Last updated:** [April 2, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/nested-route-issue-rails-2-0/133393 "2008-04-02T17:40:10Z")

</div>

Hi guys, having an issue with a nested route mapping. Do you have any ideas? Almost done with my app from a Rails book I’m studying, built a ‘mobile’ subfolder to provide support for mobile devices. Here is the route…

---

## [Ruby have include like php and refresh?](https://www.ruby-forum.com/t/ruby-have-include-like-php-and-refresh/132370)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 4\
**Last updated:** [March 20, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/ruby-have-include-like-php-and-refresh/132370 "2008-03-20T23:56:15Z")

</div>

Im starting to get tired of putting all the information on my layouts for links to my pages. I was wondering if ruby on rails had an include function like php where I could put the links in one file and put one li…

---

## [SQLite3 Compilation issue](https://www.ruby-forum.com/t/sqlite3-compilation-issue/132228)

<div class="topic-metadata">

**Author:** [@mtmtmt](https://www.ruby-forum.com/u/mtmtmt)\
**Replies:** 4\
**Last updated:** [March 19, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/sqlite3-compilation-issue/132228 "2008-03-19T16:07:58Z")

</div>

Hey guys, I wonder if you could help me out with this, The situation is: Compiled Ruby 1.8.6 myself using MSVC8 Downloaded SQLite3 and placed the headers and libraries in the proper locations (atleast i think so) R…

---

## [Creating a search](https://www.ruby-forum.com/t/creating-a-search/131366)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 4\
**Last updated:** [March 10, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/creating-a-search/131366 "2008-03-10T13:31:16Z")

</div>

Hi there, I spent a long time on the following “problem” and cant’ figure it out on my own: I need to have a search function and thought I could do it like this: the search page has a form which takes the search cri…

---

## [Dcov 0.2.1 released](https://www.ruby-forum.com/t/dcov-0-2-1-released/114784)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/dcov-0-2-1-released/114784 "2007-09-25T23:11:08Z")

</div>

I just pushed a new release of dcov to Rubyforge. dcov is a tool to help you analyze the documentation of your Ruby code. This release builds on previous releases and checks coverage (i.e., is there documentation at…

---

## [Decending Range](https://www.ruby-forum.com/t/decending-range/83878)

<div class="topic-metadata">

**Author:** [@djwmarks](https://www.ruby-forum.com/u/djwmarks)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/decending-range/83878 "2007-09-25T23:04:46Z")

</div>

Hello, I was surprised of to find this behaviour: irb(main):008:0\> a, b = 1, 100 =\> \[1, 100\] irb(main):009:0\> (a…b).to\_a.length =\> 100 irb(main):010:0\> (b…a).to\_a.length =\> 0 Now I am aware that only a simple .re…

---

## [String interpolation](https://www.ruby-forum.com/t/string-interpolation/113022)

<div class="topic-metadata">

**Author:** [@wet](https://www.ruby-forum.com/u/wet)\
**Replies:** 4\
**Last updated:** [August 26, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/string-interpolation/113022 "2007-08-26T17:14:01Z")

</div>

a = 5 b = “#{a}” puts b a = 6 puts b Returns: 5 5 which is clear to me, why. But is there a way to define such a string and interpolate it at a later time? Thomas

---

## [How let (fire)watir run with the IE Browser Not Visible](https://www.ruby-forum.com/t/how-let-fire-watir-run-with-the-ie-browser-not-visible/112805)

<div class="topic-metadata">

**Author:** [@wanguan2000](https://www.ruby-forum.com/u/wanguan2000)\
**Replies:** 4\
**Last updated:** [August 24, 2007, 7:15am UTC](https://www.ruby-forum.com/t/how-let-fire-watir-run-with-the-ie-browser-not-visible/112805 "2007-08-24T07:15:43Z")

</div>

Rubies: which command can do this? Although I know (ruby \*.rb -d )can achieve this effect,but I want yo know in (fire)watir!

---

## [Nil object where not expected](https://www.ruby-forum.com/t/nil-object-where-not-expected/111720)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 4\
**Last updated:** [August 10, 2007, 8:23am UTC](https://www.ruby-forum.com/t/nil-object-where-not-expected/111720 "2007-08-10T08:23:41Z")

</div>

trying to pass a collection of authors using \<%= render :partial =\> ‘author’, :collection =\> @authors %\> \_authors.rhtml file has \<%= link\_to author.name, :action =\> 'show', :id =\> @author %\> \<%= link\_to 'Edit', …

---

## [Newbie Migrations issue](https://www.ruby-forum.com/t/newbie-migrations-issue/88981)

<div class="topic-metadata">

**Author:** [@gabriel](https://www.ruby-forum.com/u/gabriel)\
**Replies:** 4\
**Last updated:** [March 16, 2007, 7:14am UTC](https://www.ruby-forum.com/t/newbie-migrations-issue/88981 "2007-03-16T07:14:27Z")

</div>

I’m taking a crack at Rails and have run into a snag fairly early on. I read a tutorial that showed me how to use migrations and everything was going fine until I actually tried to use what I’d written. First off, I’m…

---

## [Deploy without SVN](https://www.ruby-forum.com/t/deploy-without-svn/87351)

<div class="topic-metadata">

**Author:** [@seanstewart](https://www.ruby-forum.com/u/seanstewart)\
**Replies:** 4\
**Last updated:** [March 2, 2007, 12:09am UTC](https://www.ruby-forum.com/t/deploy-without-svn/87351 "2007-03-02T00:09:04Z")

</div>

I want to deploy my app without using SVN. Any ideas?

---

## [Blog code?](https://www.ruby-forum.com/t/blog-code/86620)

<div class="topic-metadata">

**Author:** [@scot](https://www.ruby-forum.com/u/scot)\
**Replies:** 4\
**Last updated:** [March 1, 2007, 1:36am UTC](https://www.ruby-forum.com/t/blog-code/86620 "2007-03-01T01:36:52Z")

</div>

Hi, I have an existing rails application and would like to add a blog to this, does anyone know of any code that has already been written for this purpose? Thanks Scot

---

## [Event.rb line 434 : problem occurs while repeated creating a](https://www.ruby-forum.com/t/event-rb-line-434-problem-occurs-while-repeated-creating-a/77161)

<div class="topic-metadata">

**Author:** [@teeshift](https://www.ruby-forum.com/u/teeshift)\
**Replies:** 4\
**Last updated:** [December 25, 2006, 11:41am UTC](https://www.ruby-forum.com/t/event-rb-line-434-problem-occurs-while-repeated-creating-a/77161 "2006-12-25T11:41:34Z")

</div>

Well… I have built a tiny canvas program using Ruby/Tk. Essentially it has many rectangles on the canvas. With mouse ‘enter’ a rectangle, I would show a info about it and when mouse ‘leave’ the rectangle. The info w…

---

## [Mysql but no mysql front](https://www.ruby-forum.com/t/mysql-but-no-mysql-front/78531)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 4\
**Last updated:** [December 7, 2006, 11:30am UTC](https://www.ruby-forum.com/t/mysql-but-no-mysql-front/78531 "2006-12-07T11:30:45Z")

</div>

i’m a newbie and i’ve just downloaded instantrails all the tutorials seem to expect mysql front but since it is no longer part of the package and mysql isn’t installed in the conventional way how do i get into mysql t…

---

## [Download a file piece by piece](https://www.ruby-forum.com/t/download-a-file-piece-by-piece/77807)

<div class="topic-metadata">

**Author:** [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Replies:** 4\
**Last updated:** [November 30, 2006, 7:40pm UTC](https://www.ruby-forum.com/t/download-a-file-piece-by-piece/77807 "2006-11-30T19:40:53Z")

</div>

Hello people :-), i have a question about downloading files. I want to download a file and print out how many bytes are downloaded. That’s important to me, because i want to have a progress bar later. The problem is …

---

## [\[ANN\] Exceptional 1.0 - A new style of handling exceptions](https://www.ruby-forum.com/t/ann-exceptional-1-0-a-new-style-of-handling-exceptions/77389)

<div class="topic-metadata">

**Author:** [@Scott\_Fleckenstein](https://www.ruby-forum.com/u/Scott_Fleckenstein)\
**Replies:** 4\
**Last updated:** [November 29, 2006, 8:16am UTC](https://www.ruby-forum.com/t/ann-exceptional-1-0-a-new-style-of-handling-exceptions/77389 "2006-11-29T08:16:20Z")

</div>

Exceptional is a plugin for Ruby on Rails that brings exception handling into the world of RoR filters. Through two declarative statements that are similar in style to filter declarations in your controllers you get …

---

## [Webservices status in rails](https://www.ruby-forum.com/t/webservices-status-in-rails/76748)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 4\
**Last updated:** [November 21, 2006, 1:14am UTC](https://www.ruby-forum.com/t/webservices-status-in-rails/76748 "2006-11-21T01:14:55Z")

</div>

I heard rumors that webservices as they are now in rails was going to change or even be taken out altogether. Anyone know enough about it’s future to say whether it’s a smart idea to start basing a webservice on rail…

---

## [Beginner question: testing for either condition?](https://www.ruby-forum.com/t/beginner-question-testing-for-either-condition/75580)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 4\
**Last updated:** [November 11, 2006, 2:26am UTC](https://www.ruby-forum.com/t/beginner-question-testing-for-either-condition/75580 "2006-11-11T02:26:06Z")

</div>

I want to check two conditions. If EITHER of them are true I want to proceed. Unfortunately what I have is returning true no matter what: if (@unit.custodian\_id == session\[:person\_id\]) or (session\[:person\_role\] == ‘…

---

## [RubyGems runtime memory use in Rails apps](https://www.ruby-forum.com/t/rubygems-runtime-memory-use-in-rails-apps/101998)

<div class="topic-metadata">

**Author:** [@spiz](https://www.ruby-forum.com/u/spiz)\
**Replies:** 4\
**Last updated:** [September 5, 2006, 5:50pm UTC](https://www.ruby-forum.com/t/rubygems-runtime-memory-use-in-rails-apps/101998 "2006-09-05T17:50:37Z")

</div>

This an open plea for someone with knowledge of RubyGems to explain why RubyGems stays in memory (over 10MB) after a Rails application is loaded. I am unable to figure out why this would be necessary. I haven’t had a…

---

## [Column Names? Many-to-many on same table](https://www.ruby-forum.com/t/column-names-many-to-many-on-same-table/67527)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [September 5, 2006, 3:36am UTC](https://www.ruby-forum.com/t/column-names-many-to-many-on-same-table/67527 "2006-09-05T03:36:46Z")

</div>

Hi folks, I’m putting together an app to track scores for a kids sports league, and I can’t figure out how to name the columns in my “games” table. I’ll need a “home team ID” column and an “away team ID” column, but …

---

## [Compiled Ruby/LDAP for Windows 2000/XP?](https://www.ruby-forum.com/t/compiled-ruby-ldap-for-windows-2000-xp/65933)

<div class="topic-metadata">

**Author:** [@budu](https://www.ruby-forum.com/u/budu)\
**Replies:** 4\
**Last updated:** [August 22, 2006, 5:42pm UTC](https://www.ruby-forum.com/t/compiled-ruby-ldap-for-windows-2000-xp/65933 "2006-08-22T17:42:41Z")

</div>

Hi ! Where can I find a precompiled version of Ruby/LDAP for Windows 2000/XP ?? I would like to connect to an AD with Ruby at work but I can’t… Thank you very much… Nicolas.

---

## [Odd Net::FTP behavior](https://www.ruby-forum.com/t/odd-net-ftp-behavior/102339)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [August 15, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/odd-net-ftp-behavior/102339 "2006-08-15T14:15:18Z")

</div>

Here’s my (simple) code. This has worked fine in the past; now even this simple example fails for me. It gets as far as creating an empty file, then it hangs and times out. This is Ruby 1.8.4 on FC4, talking to anoth…

---

## [IF test in FOR loop](https://www.ruby-forum.com/t/if-test-in-for-loop/97603)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 4\
**Last updated:** [August 3, 2006, 2:24pm UTC](https://www.ruby-forum.com/t/if-test-in-for-loop/97603 "2006-08-03T14:24:19Z")

</div>

is it possible to test a condition (true-false) for each element in a loop like this : for user in @users (user.has\_role? (‘manager’)) … end or shoudl I write an if condition inside the loop : for user in @users …

---

## [Searching ActiveRecord sets](https://www.ruby-forum.com/t/searching-activerecord-sets/63973)

<div class="topic-metadata">

**Author:** [@marstoni](https://www.ruby-forum.com/u/marstoni)\
**Replies:** 4\
**Last updated:** [June 21, 2006, 7:00am UTC](https://www.ruby-forum.com/t/searching-activerecord-sets/63973 "2006-06-21T07:00:02Z")

</div>

Hey all, I’m learning AR and I’m trying to find the best way to search an ActiveRecord set in order to make a conditional statement decision, something like .has\_value?(value) but for a multi-dimensional array like a…

---

## [Installing ruby on rails](https://www.ruby-forum.com/t/installing-ruby-on-rails/95871)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 4\
**Last updated:** [June 17, 2006, 12:07pm UTC](https://www.ruby-forum.com/t/installing-ruby-on-rails/95871 "2006-06-17T12:07:34Z")

</div>

Hey, I need to install ruby on rails. I have installed ruby and it says on a site to type in gem install rails --remote. When i try this is what happens: I get the message: C:\>gem install rails --remote ‘gem’ is no…

---

## [New Optimization idea](https://www.ruby-forum.com/t/new-optimization-idea/56073)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 4\
**Last updated:** [March 31, 2006, 8:32am UTC](https://www.ruby-forum.com/t/new-optimization-idea/56073 "2006-03-31T08:32:36Z")

</div>

I have a couple of classes like so… class Foo def step1 @mine = Hash.new # Perhaps stuff things into @mine end def step2 @mine.each\_pair do |key,value| # Do stuff end end end Profiling with my “new” profiler …

---

## [Strange behaviour](https://www.ruby-forum.com/t/strange-behaviour/242875)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 4, 2015, 3:22pm UTC](https://www.ruby-forum.com/t/strange-behaviour/242875 "2015-08-04T15:22:39Z")

</div>

Hi, I’m seeing some strange behaviour in Gnuradio that i cannot explain. Subtracting the same value from each other should return zero, If I’m not mistaken. And why is there a dip in the center of my X310 stream? No …

---

## [Ruby Serial Program Execution](https://www.ruby-forum.com/t/ruby-serial-program-execution/234425)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 3, 2015, 11:42pm UTC](https://www.ruby-forum.com/t/ruby-serial-program-execution/234425 "2015-03-03T23:42:04Z")

</div>

Hello: I am new to Ruby and experimenting. I have a process broken down into five individual Ruby programs. I have contained each of the five within another single Ruby program as follows: require\_relative ‘Step1.r…

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

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