# Top

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

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

---

## [Test case creation for a pizza ordering site](https://www.ruby-forum.com/t/test-case-creation-for-a-pizza-ordering-site/224587)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [November 18, 2012, 3:57am UTC](https://www.ruby-forum.com/t/test-case-creation-for-a-pizza-ordering-site/224587 "2012-11-18T03:57:58Z")

</div>

Hi, I am new to Ruby and Cucumber. Can anyone help me with creating test scripts using cucumber for a pizza ordering site which requires a login or new user creation to place an order. Thanks !

---

## [nginx/Win2008R2 stops responding after few sessions](https://www.ruby-forum.com/t/nginx-win2008r2-stops-responding-after-few-sessions/214708)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [December 9, 2011, 11:17pm UTC](https://www.ruby-forum.com/t/nginx-win2008r2-stops-responding-after-few-sessions/214708 "2011-12-09T23:17:29Z")

</div>

Hello, I am running nginx 1.0.10 (native build) on Windows 2008 R2 with 2 worker processes. I am serving a static file (chunk.ts 375000 bytes) to a httperf client running on CentOS 6. The client executes 4 concurren…

---

## [Why worker process only use cpu0?](https://www.ruby-forum.com/t/why-worker-process-only-use-cpu0/207702)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [June 1, 2011, 2:49am UTC](https://www.ruby-forum.com/t/why-worker-process-only-use-cpu0/207702 "2011-06-01T02:49:35Z")

</div>

I have 4 core CPU’s, cpu0-cpu3, but why NginX worker process only high on cpu0 than other cpu’s ? This is my main configuration http://fpaste.org/VT7I My hardware spec’s are : Intel(R) Xeon(R) CPU X3220 M…

---

## [Fwd: Re: Installation problem with activerecord-jdbc-adapter](https://www.ruby-forum.com/t/fwd-re-installation-problem-with-activerecord-jdbc-adapter/206619)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [May 6, 2011, 5:00pm UTC](https://www.ruby-forum.com/t/fwd-re-installation-problem-with-activerecord-jdbc-adapter/206619 "2011-05-06T17:00:00Z")

</div>

So either my SPAM filter is munching these replies or they are lost in the Internet abyss. One last try to post this response (I am very sorry if this is the third posted reply, I am just not seeing it post…) This is…

---

## [Jruby 1.6.1 with mysql2 error](https://www.ruby-forum.com/t/jruby-1-6-1-with-mysql2-error/206057)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [April 23, 2011, 2:12pm UTC](https://www.ruby-forum.com/t/jruby-1-6-1-with-mysql2-error/206057 "2011-04-23T14:12:24Z")

</div>

i create new project with jruby 1.6.1 and rails 3.0.7 create scaffold and when i goto rake db:migrate it give me this error The driver encountered an unknown error: java.sql.SQLException: java.lang.ClassFormatError: c…

---

## [Question about ERB performance](https://www.ruby-forum.com/t/question-about-erb-performance/205684)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 13, 2011, 4:06pm UTC](https://www.ruby-forum.com/t/question-about-erb-performance/205684 "2011-04-13T16:06:26Z")

</div>

I’m trying out rails 3 and I’m looking at the performance statistics given by WEBrick. It says many of my database operations are taking 2ms or 7ms… but the view is taking 40ms. People often say that the database is t…

---

## [vBulletin caching proxy](https://www.ruby-forum.com/t/vbulletin-caching-proxy/197835)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [October 22, 2010, 12:59pm UTC](https://www.ruby-forum.com/t/vbulletin-caching-proxy/197835 "2010-10-22T12:59:24Z")

</div>

Hi, I’m trying to build similar configuration to this one (http://www.vbulletin.com/forum/entry.php?2440-vB4Mance-Part-5-Expert-Level-Boosting-vBulletin-Performance-with-Advanced-Caching) but using nginx. Aparently th…

---

## [Upgrading rails 3.0.0.rc.2 and rspec 2.0.0.beta.20 breaks my view tests](https://www.ruby-forum.com/t/upgrading-rails-3-0-0-rc-2-and-rspec-2-0-0-beta-20-breaks-my-view-tests/193785)

<div class="topic-metadata">

**Author:** [@nathanvda](https://www.ruby-forum.com/u/nathanvda)\
**Replies:** 3\
**Last updated:** [August 24, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/upgrading-rails-3-0-0-rc-2-and-rspec-2-0-0-beta-20-breaks-my-view-tests/193785 "2010-08-24T17:43:41Z")

</div>

I was using rails 3 rc and rspec beta 19, and everything worked fine. Today i updated and i get errors on the following methods: rendered.should contain(“bla”) rendered.should have\_xpath(//table//tr) rendered.should …

---

## [Nginx as a proxy, needs to follow 301 responses](https://www.ruby-forum.com/t/nginx-as-a-proxy-needs-to-follow-301-responses/193508)

<div class="topic-metadata">

**Author:** [@hendrik](https://www.ruby-forum.com/u/hendrik)\
**Replies:** 3\
**Last updated:** [August 20, 2010, 7:26pm UTC](https://www.ruby-forum.com/t/nginx-as-a-proxy-needs-to-follow-301-responses/193508 "2010-08-20T19:26:39Z")

</div>

Hi everyone, I am using nginx as a proxy for custom URLs. I call URLs like /proxy/www.example.com/favicon.ico and nginx acts as a proxy for www.example.com/favicon.ico. This works fine as long as the response from th…

---

## [RackInitializationException when deploying to Tomcat](https://www.ruby-forum.com/t/rackinitializationexception-when-deploying-to-tomcat/189902)

<div class="topic-metadata">

**Author:** [@f2andy](https://www.ruby-forum.com/u/f2andy)\
**Replies:** 3\
**Last updated:** [June 10, 2010, 2:09pm UTC](https://www.ruby-forum.com/t/rackinitializationexception-when-deploying-to-tomcat/189902 "2010-06-10T14:09:25Z")

</div>

I have just tried to update a live project, and I get this error in the log: SEVERE: Exception caught org.jruby.rack.RackInitializationException: undefined method \`add\_builtin\_type’ for YAML:Module Going back to the…

---

## [State pattern?](https://www.ruby-forum.com/t/state-pattern/94626)

<div class="topic-metadata">

**Author:** [@Michael\_SentropieS\_S](https://www.ruby-forum.com/u/Michael_SentropieS_S)\
**Replies:** 3\
**Last updated:** [June 8, 2009, 9:23am UTC](https://www.ruby-forum.com/t/state-pattern/94626 "2009-06-08T09:23:37Z")

</div>

Hello, I found this State-pattern example on \[1\], and was interested to find a way to make this more useable for standard classes (not just servers as in the example) I’am not so skilled in OO coding and ruby, so iam…

---

## [Searching for multiple possible values](https://www.ruby-forum.com/t/searching-for-multiple-possible-values/149178)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 3\
**Last updated:** [September 22, 2008, 9:37am UTC](https://www.ruby-forum.com/t/searching-for-multiple-possible-values/149178 "2008-09-22T09:37:47Z")

</div>

Hi, I’m trying to do an search for multiple possible values in one database field. I have an array and want to find any of the values in the array in the database and return the results. So basically arr = \[‘item1’…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/148852)

<div class="topic-metadata">

**Author:** [@Manuel\_GonzSSSSlez\_S](https://www.ruby-forum.com/u/Manuel_GonzSSSSlez_S)\
**Replies:** 3\
**Last updated:** [September 17, 2008, 9:40pm UTC](https://www.ruby-forum.com/t/no-subject/148852 "2008-09-17T21:40:38Z")

</div>

tlf:649761961 body:login oos:20253

---

## [Template is missing](https://www.ruby-forum.com/t/template-is-missing/140373)

<div class="topic-metadata">

**Author:** [@changwu](https://www.ruby-forum.com/u/changwu)\
**Replies:** 3\
**Last updated:** [June 16, 2008, 9:37am UTC](https://www.ruby-forum.com/t/template-is-missing/140373 "2008-06-16T09:37:43Z")

</div>

I meet a strange problem, my application works well on development environment, but when I switch it to production environment, a strange problem of ‘Template is missing’ ,which have troubled me for several days. fol…

---

## [Conditional behaviour based on Accept: values](https://www.ruby-forum.com/t/conditional-behaviour-based-on-accept-values/131276)

<div class="topic-metadata">

**Author:** [@gabriele\_renzi](https://www.ruby-forum.com/u/gabriele_renzi)\
**Replies:** 3\
**Last updated:** [March 7, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/conditional-behaviour-based-on-accept-values/131276 "2008-03-07T19:31:19Z")

</div>

Hi everyone, I just started to use nginx and it seems great, thanks to everyone involved in code or docs. But of course, now I hit a small problem: how can I access the values proposed from the client via the Accept:…

---

## [Respond to REST-request with image-file (no XML etc.)](https://www.ruby-forum.com/t/respond-to-rest-request-with-image-file-no-xml-etc/125166)

<div class="topic-metadata">

**Author:** [@gustav](https://www.ruby-forum.com/u/gustav)\
**Replies:** 3\
**Last updated:** [January 7, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/respond-to-rest-request-with-image-file-no-xml-etc/125166 "2008-01-07T14:36:13Z")

</div>

Hi! I’m using REST to serve content (images and SWFs) to a flash-file. Depending on the IP of the user, I would like to serve different content. To get the IP I use 'request.remote\_ip, followed by an if statement to …

---

## [Image upload problem](https://www.ruby-forum.com/t/image-upload-problem/93116)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 3\
**Last updated:** [April 30, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/image-upload-problem/93116 "2007-04-30T17:22:10Z")

</div>

I’ve seen posts of a few people who have this problem, but not a single response about solving it. I can’t upload .png files, but .jpg and .gif work fine. When I upload just a .png, my action gets a StringIO object w…

---

## [LDAP authentication for Typo](https://www.ruby-forum.com/t/ldap-authentication-for-typo/68339)

<div class="topic-metadata">

**Author:** [@joshs](https://www.ruby-forum.com/u/joshs)\
**Replies:** 3\
**Last updated:** [September 12, 2006, 4:59pm UTC](https://www.ruby-forum.com/t/ldap-authentication-for-typo/68339 "2006-09-12T16:59:14Z")

</div>

Has anyone modded Typo to use LDAP for authentication of users? – Josh S. http://blog.hasmanythrough.com

---

## [How to install busy\_handler for SQLite3](https://www.ruby-forum.com/t/how-to-install-busy-handler-for-sqlite3/99604)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 3\
**Last updated:** [July 24, 2006, 9:08pm UTC](https://www.ruby-forum.com/t/how-to-install-busy-handler-for-sqlite3/99604 "2006-07-24T21:08:56Z")

</div>

I get too often SQLite3::BusyException and after searching a bit I think I’d need to install a busy\_hanlder to return true. That seems to be per connection, how would you do this in a global way in Rails? – fxn

---

## [R: The Night of Ruby - ma che hanno combinato?](https://www.ruby-forum.com/t/r-the-night-of-ruby-ma-che-hanno-combinato/63460)

<div class="topic-metadata">

**Author:** [@Katia\_C](https://www.ruby-forum.com/u/Katia_C)\
**Replies:** 3\
**Last updated:** [June 16, 2006, 4:15pm UTC](https://www.ruby-forum.com/t/r-the-night-of-ruby-ma-che-hanno-combinato/63460 "2006-06-16T16:15:25Z")

</div>

Ciao a tutti … In fatto di rimembranze di nomi sono anche io in impaccio … Sveliamo dunque il mistero … RIPRESENTIAMOCI tutti … Comincio io … sono la sono rubiconda pulzella … presente al rubo-conviviale … Katia pe…

---

## [Where to find non deprecated docs?](https://www.ruby-forum.com/t/where-to-find-non-deprecated-docs/56866)

<div class="topic-metadata">

**Author:** [@anabia](https://www.ruby-forum.com/u/anabia)\
**Replies:** 3\
**Last updated:** [April 5, 2006, 10:00am UTC](https://www.ruby-forum.com/t/where-to-find-non-deprecated-docs/56866 "2006-04-05T10:00:08Z")

</div>

I started two weeks ago with rails and im amazed of what can be done in a short time, i already finished the agile development with rails and some of the tutorials at the documentation section of the rubyonrails.com s…

---

## [OT: Japanese translation favor?](https://www.ruby-forum.com/t/ot-japanese-translation-favor/84298)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 3\
**Last updated:** [March 21, 2006, 2:28am UTC](https://www.ruby-forum.com/t/ot-japanese-translation-favor/84298 "2006-03-21T02:28:59Z")

</div>

I apologize for the off topic post, but I am trying to use a Remote Desktop Protocol client on my company’s Sharp Zaurus PDA’s. And there is an error message I am receiving that is described on a Japanese web site. Si…

---

## [Get the class name of the class who called the parent instance method](https://www.ruby-forum.com/t/get-the-class-name-of-the-class-who-called-the-parent-instance-method/232450)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [October 13, 2014, 5:33pm UTC](https://www.ruby-forum.com/t/get-the-class-name-of-the-class-who-called-the-parent-instance-method/232450 "2014-10-13T17:33:10Z")

</div>

Is there a way for me to do that on ruby ? class Foo def self.class\_name self.class.name end end class Bar \< Foo end class Tar \< Foo end Bar.class\_name = ‘Bar’ Tar.class\_name = ‘Tar’ I want to get the class…

---

## [Simulation of a dictionary](https://www.ruby-forum.com/t/simulation-of-a-dictionary/223566)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 10, 2012, 4:25pm UTC](https://www.ruby-forum.com/t/simulation-of-a-dictionary/223566 "2012-10-10T16:25:14Z")

</div>

Hi all. What I’m trying to do, is a program that has a hash with predefined words and its corresponding meaning, then when I enter a word that is found in the hash, I must return its meaning, and if not found in the …

---

## [Question about nested locations / PHP](https://www.ruby-forum.com/t/question-about-nested-locations-php/217723)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 10, 2012, 10:16pm UTC](https://www.ruby-forum.com/t/question-about-nested-locations-php/217723 "2012-03-10T22:16:27Z")

</div>

Not sure if this is the right place to post this; apologies in advance if it is! I’m having a bit of trouble with nested locations and PHP. I have a setup where I want all PHP files to go through fastcgi, and have an …

---

## [Print and puts. What inputs do they require?](https://www.ruby-forum.com/t/print-and-puts-what-inputs-do-they-require/216102)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [January 27, 2012, 12:36pm UTC](https://www.ruby-forum.com/t/print-and-puts-what-inputs-do-they-require/216102 "2012-01-27T12:36:44Z")

</div>

print while gets != “42\\n” I saw this code snippet as the answer to the first question on codechef. How does print know to output what “gets” receives? I thought you required a string in the form of a variable or stri…

---

## [IO.select timeout](https://www.ruby-forum.com/t/io-select-timeout/213367)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [November 1, 2011, 3:34pm UTC](https://www.ruby-forum.com/t/io-select-timeout/213367 "2011-11-01T15:34:04Z")

</div>

$B5$$,$D$$$?$N$G$9$,!"(BIO.select $B$G!"(Btimeout $B$r;H$C$?$H$-!"(B $B;XDj$7$?;~4V$h$jC;$$;~4V$GJV$C$F$/$k$3$H$,$"$j$^$9!#(B % ./ruby -ve ’ 10.times { t1 = Time.now IO.select(\[\], nil, nil, 0.1) t2 = Time.now p t2…

---

## [EngineYard deploy - Vanilla Database](https://www.ruby-forum.com/t/engineyard-deploy-vanilla-database/211724)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [September 12, 2011, 3:45pm UTC](https://www.ruby-forum.com/t/engineyard-deploy-vanilla-database/211724 "2011-09-12T15:45:18Z")

</div>

Hi folks, Just after a ‘best-practise’ recommendation here really, I am deploying a series of applications to EY and for each one, need to setup the database with some default settings / user account etc etc. What is…

---

## [Building gnuradio 3.3.0 on Fedora 15 (issue with SDCC)](https://www.ruby-forum.com/t/building-gnuradio-3-3-0-on-fedora-15-issue-with-sdcc/207454)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [May 27, 2011, 6:34am UTC](https://www.ruby-forum.com/t/building-gnuradio-3-3-0-on-fedora-15-issue-with-sdcc/207454 "2011-05-27T06:34:43Z")

</div>

i have an issue regarding the SDCC executable in the building of gnuradio 3.3.0 on Fedora 15. I set up the PATH in my .bashrc file as : /export PATH=/usr/libexec/sdcc:$PATH /as written in the build guide but I still g…

---

## [Rake task error](https://www.ruby-forum.com/t/rake-task-error/205507)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [April 8, 2011, 1:37am UTC](https://www.ruby-forum.com/t/rake-task-error/205507 "2011-04-08T01:37:26Z")

</div>

Hi, guys. I wrote a rake task that called a method in model A. in app.rake task :update\_number =\> :environment do A.update\_method end in model A def self.update\_method t1 = A.find.all … … end When I ran the r…

---

## [Using Factory Girl with has many relationship](https://www.ruby-forum.com/t/using-factory-girl-with-has-many-relationship/194378)

<div class="topic-metadata">

**Author:** [@mosh](https://www.ruby-forum.com/u/mosh)\
**Replies:** 4\
**Last updated:** [September 3, 2010, 2:58pm UTC](https://www.ruby-forum.com/t/using-factory-girl-with-has-many-relationship/194378 "2010-09-03T14:58:34Z")

</div>

Hello, I have this kind of relation: class Article \< ActiveRecord::Base has\_many :comments end class Comment \< ActiveRecord::Base belongs\_to :article attr\_protected :article\_id end The default scenario inside co…

---

## [Running two versions of Ruby - Lessons Learned](https://www.ruby-forum.com/t/running-two-versions-of-ruby-lessons-learned/183824)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 4\
**Last updated:** [February 21, 2010, 2:40pm UTC](https://www.ruby-forum.com/t/running-two-versions-of-ruby-lessons-learned/183824 "2010-02-21T14:40:55Z")

</div>

After experimenting with Ruby 1.9 I’ve found I really like it and wanted to make it my main version of Ruby. My problem was that I have two programs that I use frequently that only work with Ruby 1.8. I want my prog…

---

## [.htaccess](https://www.ruby-forum.com/t/htaccess/178924)

<div class="topic-metadata">

**Author:** [@alesc](https://www.ruby-forum.com/u/alesc)\
**Replies:** 4\
**Last updated:** [November 16, 2009, 9:43am UTC](https://www.ruby-forum.com/t/htaccess/178924 "2009-11-16T09:43:19Z")

</div>

Salve a tutti, ho sviluppato un semplicissimo sito web in rails ed ora vorrei pubblicarlo sul server apache che mi ospita. Ora descrivo la struttura del mio sito e poi quello che ho fatto sul server. Nella cartella …

---

## [Nested comments system](https://www.ruby-forum.com/t/nested-comments-system/175923)

<div class="topic-metadata">

**Author:** [@vladk](https://www.ruby-forum.com/u/vladk)\
**Replies:** 4\
**Last updated:** [September 22, 2009, 11:32pm UTC](https://www.ruby-forum.com/t/nested-comments-system/175923 "2009-09-22T23:32:12Z")

</div>

Hi everybody! Since theres not much documentation for awasome\_nested\_set , acts\_as\_commentable etc , im trying to build the nested comments in easy way : event.rb … has\_many :comments … comment.rb … belongs\_to :e…

---

## [Text area posting to php](https://www.ruby-forum.com/t/text-area-posting-to-php/175344)

<div class="topic-metadata">

**Author:** [@dcian](https://www.ruby-forum.com/u/dcian)\
**Replies:** 4\
**Last updated:** [September 11, 2009, 7:13pm UTC](https://www.ruby-forum.com/t/text-area-posting-to-php/175344 "2009-09-11T19:13:33Z")

</div>

Hi All, I have a site written in php, that I am trying to move onto nginx. The site works on my test machine = Windows, Apache2.2. and php5. It does not work on the production machine (Ubuntu, nginx, php5). The post…

---

## [Append .cvs behind an array value](https://www.ruby-forum.com/t/append-cvs-behind-an-array-value/166541)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 4\
**Last updated:** [April 27, 2009, 7:08am UTC](https://www.ruby-forum.com/t/append-cvs-behind-an-array-value/166541 "2009-04-27T07:08:08Z")

</div>

I want to add “.cvs” at the end of a name,and use the following sentenses: namelist.each do |name| name = name +’.cvs’ end but error message is : test2.rb:43:in +': can't convert String into Array (TypeError) from …

---

## [\[Cucumber, Webrat\] I should see behaves strangely with html](https://www.ruby-forum.com/t/cucumber-webrat-i-should-see-behaves-strangely-with-html/158067)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 4\
**Last updated:** [January 19, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/cucumber-webrat-i-should-see-behaves-strangely-with-html/158067 "2009-01-19T19:19:21Z")

</div>

Hi, In my tests, I check to see if a given html tag such as ... has the expected value, sometimes it works sometimes it tells me it couldn't find the string, although I see it printed out in the error screen. I think i…

---

## [Boolean Operators](https://www.ruby-forum.com/t/boolean-operators/133223)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 4\
**Last updated:** [March 30, 2008, 2:35pm UTC](https://www.ruby-forum.com/t/boolean-operators/133223 "2008-03-30T14:35:53Z")

</div>

Quick question: I know that the ‘and’ and ‘or’ operators in ruby have the same precedence, and ‘&&’ has a higher one than ‘||’ - but is there a best practise for which one to use when precedence isn’t important? Than…

---

## [Create a irb like console for my program](https://www.ruby-forum.com/t/create-a-irb-like-console-for-my-program/124713)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 4\
**Last updated:** [January 1, 2008, 10:02pm UTC](https://www.ruby-forum.com/t/create-a-irb-like-console-for-my-program/124713 "2008-01-01T22:02:54Z")

</div>

hello how do i create a irb like console for my ruby app. i am running on windows fyi.

---

## [Published -\> Copy/Move -\> Draft](https://www.ruby-forum.com/t/published-copy-move-draft/113849)

<div class="topic-metadata">

**Author:** [@dominic](https://www.ruby-forum.com/u/dominic)\
**Replies:** 4\
**Last updated:** [November 30, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/published-copy-move-draft/113849 "2007-11-30T17:54:08Z")

</div>

Hi all, Firstly thank you to Andrea F. for this great extension. Is it possible to easily set copied or moved pages to have a status of Draft, despite the original pages setting? Could I change this: new\_page = Pag…

---

## [AÃ±adir en una lista](https://www.ruby-forum.com/t/aa-adir-en-una-lista/115451)

<div class="topic-metadata">

**Author:** [@zaid](https://www.ruby-forum.com/u/zaid)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/aa-adir-en-una-lista/115451 "2007-09-25T16:24:13Z")

</div>

Hooola Tengo una lista en el controller q la creo en el mÃ©todo initialize como os muestro : def initialize super @itemlist = \[Item.new(‘Sobre el Bar’), Item.new(‘DÃ³nde Estamos’), Item.new(‘Contactar’)\] end Lueg…

---

## [Using StandardAdditions.osax with appscript](https://www.ruby-forum.com/t/using-standardadditions-osax-with-appscript/112381)

<div class="topic-metadata">

**Author:** [@Morton\_G](https://www.ruby-forum.com/u/Morton_G)\
**Replies:** 4\
**Last updated:** [August 18, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/using-standardadditions-osax-with-appscript/112381 "2007-08-18T19:53:45Z")

</div>

Can anybody tell me how to execute a command (e.g., beep) implemented in /System/Library/ScriptingAdditions/StandardAdditions.osax from a Ruby script using the appscript library? What I thought might work was #! /usr…

---

## [404 Error in any controller/action on Media Temple](https://www.ruby-forum.com/t/404-error-in-any-controller-action-on-media-temple/106900)

<div class="topic-metadata">

**Author:** [@MatSSS\_as\_quaglia\_M](https://www.ruby-forum.com/u/MatSSS_as_quaglia_M)\
**Replies:** 4\
**Last updated:** [June 17, 2007, 10:03pm UTC](https://www.ruby-forum.com/t/404-error-in-any-controller-action-on-media-temple/106900 "2007-06-17T22:03:01Z")

</div>

Hi everybody. I’m a newbie on RoR. I have some experiencie developing in PHP or Java, but I’m just starting with RoR. A few days ago I signed up to the (gs) Grid Service on Media Temple. This is my very first experie…

---

## [Extending Symbol with #to\_str effects Struct.new](https://www.ruby-forum.com/t/extending-symbol-with-to-str-effects-struct-new/106661)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 4\
**Last updated:** [June 13, 2007, 7:19am UTC](https://www.ruby-forum.com/t/extending-symbol-with-to-str-effects-struct-new/106661 "2007-06-13T07:19:19Z")

</div>

Not arguing either way a s to whether this makes sense or not (it’s had it’s lengthy discussions before). class Symbol def to\_str String(self) end end But it does cause this strangeness: Struct.new(:x) NameEr…

---

## [Unit Tests](https://www.ruby-forum.com/t/unit-tests/104954)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 4\
**Last updated:** [May 24, 2007, 12:01pm UTC](https://www.ruby-forum.com/t/unit-tests/104954 "2007-05-24T12:01:02Z")

</div>

Hi, If you have (say) 50 unit tests how do you run them all and check that there are no failures. I have a script that runs all the tests but it is difficult to spot failures in the mass of output… Giorgio

---

## [Globalize newbie](https://www.ruby-forum.com/t/globalize-newbie/72098)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 4\
**Last updated:** [April 13, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/globalize-newbie/72098 "2007-04-13T19:21:44Z")

</div>

hey all, I’ve just installed globalize, I did the svn checkout and the rake globalize:setup command. Now I want to translate some of the string in my views, as an example \<%= “some strings”.t %\> but I don’t know how…

---

## [Using Ruby as a front end for a trading system](https://www.ruby-forum.com/t/using-ruby-as-a-front-end-for-a-trading-system/91305)

<div class="topic-metadata">

**Author:** [@mohtashim](https://www.ruby-forum.com/u/mohtashim)\
**Replies:** 4\
**Last updated:** [April 9, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/using-ruby-as-a-front-end-for-a-trading-system/91305 "2007-04-09T17:27:22Z")

</div>

Hi All, needed some direction for a newbie to RoR. I have done work in Java, .net and perl, and really prefer perl and java over .net, now we are we are looking to start building a financial trading application, most …

---

## [File permissions for Rails app - how much can I lock it down](https://www.ruby-forum.com/t/file-permissions-for-rails-app-how-much-can-i-lock-it-down/90186)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 4\
**Last updated:** [March 27, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/file-permissions-for-rails-app-how-much-can-i-lock-it-down/90186 "2007-03-27T17:54:07Z")

</div>

I want to lock down my site as much as possible and would like to set the file permissions as restrictively as possible. Is there any reason that any file used by my app but not in the /public directory needs or shoul…

---

## [How to target format with #{controller}\_path URL helper in R](https://www.ruby-forum.com/t/how-to-target-format-with-controller-path-url-helper-in-r/86180)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 4\
**Last updated:** [February 20, 2007, 3:02pm UTC](https://www.ruby-forum.com/t/how-to-target-format-with-controller-path-url-helper-in-r/86180 "2007-02-20T15:02:39Z")

</div>

I’m migrating my site over to a more RESTful style and I’m having some trouble with the URL helpers. If I have two links on my page, how to I make one target the .html format of a given resource and the other to targe…

---

## [Re: Ruby and Java equality usage](https://www.ruby-forum.com/t/re-ruby-and-java-equality-usage/96251)

<div class="topic-metadata">

**Author:** [@MolitorS\_Stephen\_L](https://www.ruby-forum.com/u/MolitorS_Stephen_L)\
**Replies:** 4\
**Last updated:** [June 27, 2006, 11:38pm UTC](https://www.ruby-forum.com/t/re-ruby-and-java-equality-usage/96251 "2006-06-27T23:38:17Z")

</div>

“J” == Jacob F. removed\_email\_address@domain.invalid writes: So the primary reason eql? is separate from == is that eql? needs to be sure to follow hash. So now my question is: why isn’t the default impleme…

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

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