# Top

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

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

---

## [Do i need mod\_security for nginx?](https://www.ruby-forum.com/t/do-i-need-mod-security-for-nginx/237051)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 21, 2013, 11:41pm UTC](https://www.ruby-forum.com/t/do-i-need-mod-security-for-nginx/237051 "2013-10-21T23:41:52Z")

</div>

Today i found one particular IP address which was trying a lot of things in my server. For a second, it was sending atleast 50 requests. It was keep on accessing my admin login page with post and get request That IP…

---

## [Nginx reverse proxy odd 301 redirect](https://www.ruby-forum.com/t/nginx-reverse-proxy-odd-301-redirect/246367)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [October 7, 2013, 12:04am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-odd-301-redirect/246367 "2013-10-07T00:04:34Z")

</div>

Hi, I have latest nginx which I am using as a reverse proxy for an application of mine running on apache on another server. The nginx config is like this: upstream upstreamname { server ip:port; } … location / { …

---

## [Rails helper problem](https://www.ruby-forum.com/t/rails-helper-problem/206448)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [May 1, 2011, 10:24pm UTC](https://www.ruby-forum.com/t/rails-helper-problem/206448 "2011-05-01T22:24:33Z")

</div>

Hi guys, I’m building a application using subdomains feature like basecamp. To create the correct link reference I use a with\_subdomain function whch take the subdmain name and create a subdomain name like subdomain.…

---

## [Array#slice's boundary special case.why?](https://www.ruby-forum.com/t/array-slices-boundary-special-case-why/205739)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 14, 2011, 6:37pm UTC](https://www.ruby-forum.com/t/array-slices-boundary-special-case-why/205739 "2011-04-14T18:37:58Z")

</div>

Can anyone give me the background on why given the following: arr = %w(0 1 2 3 4) Then arr\[5,1\] returns \[\] and arr\[6,1\] returns nil? I understand that the last element +1 is labeled a special case, but why?

---

## [Expires directive and try\_files rewrites not working](https://www.ruby-forum.com/t/expires-directive-and-try-files-rewrites-not-working/179731)

<div class="topic-metadata">

**Author:** [@Per\_Hansson](https://www.ruby-forum.com/u/Per_Hansson)\
**Replies:** 2\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/expires-directive-and-try-files-rewrites-not-working/179731 "2009-12-19T15:25:27Z")

</div>

Hi, I am trying to use the try\_files directive for rewrites together with the Expires directive but when I do file extensions which are included by the expires directive are ignored by my try\_files directive, it seems…

---

## [Frozen .NET objects](https://www.ruby-forum.com/t/frozen-net-objects/180021)

<div class="topic-metadata">

**Author:** [@confundido](https://www.ruby-forum.com/u/confundido)\
**Replies:** 2\
**Last updated:** [December 9, 2009, 11:11pm UTC](https://www.ruby-forum.com/t/frozen-net-objects/180021 "2009-12-09T23:11:24Z")

</div>

I’ve noticed calling .freeze on a native .NET class does not have any effect (other than making #frozen? Return true) Is this by design? Thanks, Nathan

---

## [Ruby-gnome2 + datamapper problem](https://www.ruby-forum.com/t/ruby-gnome2-datamapper-problem/172783)

<div class="topic-metadata">

**Author:** [@royw](https://www.ruby-forum.com/u/royw)\
**Replies:** 2\
**Last updated:** [September 23, 2009, 1:41am UTC](https://www.ruby-forum.com/t/ruby-gnome2-datamapper-problem/172783 "2009-09-23T01:41:22Z")

</div>

Howdy, I just upgraded my gentoo ~x86 system to use ruby-gnome2-0.19.0 and my apps that use datamapper are broken. Digging into it, it looks like if a datamapper model is accessed (either via auto\_upgrade! or just no…

---

## [Error "cannot load Java class"](https://www.ruby-forum.com/t/error-cannot-load-java-class/166277)

<div class="topic-metadata">

**Author:** [@amabdelsalam](https://www.ruby-forum.com/u/amabdelsalam)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 6:51pm UTC](https://www.ruby-forum.com/t/error-cannot-load-java-class/166277 "2009-04-23T18:51:39Z")

</div>

I’ve created two java classes that I’m trying to call from ruby file. I put the java classes with the ruby file in the same directory, and tried to run. I accessed java classes from the ruby file using full class path…

---

## [Examples using cucumber, celerity, rspec](https://www.ruby-forum.com/t/examples-using-cucumber-celerity-rspec/153424)

<div class="topic-metadata">

**Author:** [@Alvin\_S](https://www.ruby-forum.com/u/Alvin_S)\
**Replies:** 2\
**Last updated:** [November 21, 2008, 1:28am UTC](https://www.ruby-forum.com/t/examples-using-cucumber-celerity-rspec/153424 "2008-11-21T01:28:19Z")

</div>

I created some simple examples using cucumber, celerity, and rspec to verify the behaviour of a web application. The examples include: verifying javascript ran on page load verifying results of AJAX calls responding…

---

## [The error occurred while evaluating nil.each](https://www.ruby-forum.com/t/the-error-occurred-while-evaluating-nil-each/140506)

<div class="topic-metadata">

**Author:** [@RoR\_Nb](https://www.ruby-forum.com/u/RoR_Nb)\
**Replies:** 2\
**Last updated:** [June 15, 2008, 2:53pm UTC](https://www.ruby-forum.com/t/the-error-occurred-while-evaluating-nil-each/140506 "2008-06-15T14:53:39Z")

</div>

I’m leaving some fields empty and after i sibmited it shows me teh following error, THIS IS THE ERROR THAT IT DISPLAYS NoMethodError in Item\_packages#create Showing item\_packages/\_form.erb where line #3 raised: You h…

---

## [Convert from blosxom?](https://www.ruby-forum.com/t/convert-from-blosxom/77947)

<div class="topic-metadata">

**Author:** [@Warner\_O](https://www.ruby-forum.com/u/Warner_O)\
**Replies:** 2\
**Last updated:** [December 1, 2006, 10:09pm UTC](https://www.ruby-forum.com/t/convert-from-blosxom/77947 "2006-12-01T22:09:45Z")

</div>

Just curious if anyone had a blosxom convert script. I found an old one that no longer works (which I’m trying to debug now). I can’t do an rss feed as blosxom is currently hosed on my system so I need to convert from…

---

## [Continue code run after assert exception](https://www.ruby-forum.com/t/continue-code-run-after-assert-exception/69614)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 2\
**Last updated:** [September 22, 2006, 3:15pm UTC](https://www.ruby-forum.com/t/continue-code-run-after-assert-exception/69614 "2006-09-22T15:15:13Z")

</div>

I am iterating through a collection and using Test::Unit assertations on each object begin search.each {|@x| assert($ie.contains\_text(@x)) } rescue =\> e puts “#{@x} does not exist in HTML” end However, the probl…

---

## [Win32crypt CryptProtectData](https://www.ruby-forum.com/t/win32crypt-cryptprotectdata/238422)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 9, 2014, 12:32pm UTC](https://www.ruby-forum.com/t/win32crypt-cryptprotectdata/238422 "2014-01-09T12:32:47Z")

</div>

Hello: I’m trying to generate .rdp files on the fly. To do this I need to generate an user password. I’m looking for a gem that can be used in a similar way that the next python code. Anyone knows about a gem impleme…

---

## [Class variables and self](https://www.ruby-forum.com/t/class-variables-and-self/220452)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [June 10, 2012, 2:19am UTC](https://www.ruby-forum.com/t/class-variables-and-self/220452 "2012-06-10T02:19:37Z")

</div>

I’m currently reading The Well-Grounded Rubyist. In the section about class variables, instance variables, and self they have this class as an example: class Car @@makes = \[\] @@cars = {} attr\_reader :make def sel…

---

## [Technologies need to know before starting ror development?](https://www.ruby-forum.com/t/technologies-need-to-know-before-starting-ror-development/199677)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 8\
**Last updated:** [November 28, 2010, 1:56am UTC](https://www.ruby-forum.com/t/technologies-need-to-know-before-starting-ror-development/199677 "2010-11-28T01:56:00Z")

</div>

Hi can any body tell me wat are the technologies need to know before starting learning ror. and tell me the sequence of learning ROR.(including list of softwares and editors) pls…

---

## [ActiveScaffold and partials](https://www.ruby-forum.com/t/activescaffold-and-partials/195414)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 8\
**Last updated:** [September 24, 2010, 9:39am UTC](https://www.ruby-forum.com/t/activescaffold-and-partials/195414 "2010-09-24T09:39:30Z")

</div>

I was thinking of doing partials as I did in the simple Rails application I worked on today. But, since I’m using ActiveScaffold, I didn’t find any \*.html.erb in the views folder of the Rails application that I need t…

---

## [Namespaced models with has\_many :through](https://www.ruby-forum.com/t/namespaced-models-with-has-many-through/186495)

<div class="topic-metadata">

**Author:** [@zettabyte](https://www.ruby-forum.com/u/zettabyte)\
**Replies:** 0\
**Last updated:** [April 8, 2010, 12:00am UTC](https://www.ruby-forum.com/t/namespaced-models-with-has-many-through/186495 "2010-04-08T00:00:46Z")

</div>

Hi. I’m trying to enable the following has\_many :through relationships on some models that, as you can see, these models have been namespaced which appears to be causing my grief: ==== app/models/school/course.rb cla…

---

## [Rails 3.0](https://www.ruby-forum.com/t/rails-3-0/174449)

<div class="topic-metadata">

**Author:** [@RORock](https://www.ruby-forum.com/u/RORock)\
**Replies:** 8\
**Last updated:** [August 31, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/rails-3-0/174449 "2009-08-31T16:23:22Z")

</div>

can some tell me where i can find rails 3.0 ebooks for free? Thanks MNT

---

## [Class vrs. method](https://www.ruby-forum.com/t/class-vrs-method/155070)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 8\
**Last updated:** [December 7, 2008, 6:06pm UTC](https://www.ruby-forum.com/t/class-vrs-method/155070 "2008-12-07T18:06:09Z")

</div>

I’ve been thinking about this question for days, and have yet to come up with a satisfactory answer. I have deep respect for the “smarts” available on this list, so I’ll toos the question out here. I’ve been programmi…

---

## [N00b question/issue](https://www.ruby-forum.com/t/n00b-question-issue/125146)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 8\
**Last updated:** [January 6, 2008, 8:08am UTC](https://www.ruby-forum.com/t/n00b-question-issue/125146 "2008-01-06T08:08:08Z")

</div>

i know this is n00b but i have searched and i can not figure it out. i am running instantrails on windows. i downloaded ajax\_scaffold and installed using script/generate in a new rails project. after configing the d…

---

## [Ruby 1.8.5 + Rails$B$G(Bwarning](https://www.ruby-forum.com/t/ruby-1-8-5-rails-b-g-bwarning/65439)

<div class="topic-metadata">

**Author:** [@Masayoshi\_T](https://www.ruby-forum.com/u/Masayoshi_T)\
**Replies:** 8\
**Last updated:** [August 18, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-rails-b-g-bwarning/65439 "2006-08-18T17:35:49Z")

</div>

e$B9b66@,5A$G$9!#e(B thene$B$NBe$o$j$K%;%\_%3%m%s$,;H$($k$H$$$&$N$O!"$=$b$=$be(B e$BIaDL$K%5%\]!\<%H$5$l$F$k$3$H$K$J$C$F$?$s$G$7$?$C$1!)e(B 1.8.5e$B$G;H$($J$/$J$C$F$$$k$h$&$J$N$G!“e(BRailse$B$Ge(B warninge$B$,=P$k!”$H$$…

---

## [Acts\_as\_commentable plugin](https://www.ruby-forum.com/t/acts-as-commentable-plugin/60196)

<div class="topic-metadata">

**Author:** [@jcain](https://www.ruby-forum.com/u/jcain)\
**Replies:** 8\
**Last updated:** [May 16, 2006, 9:21pm UTC](https://www.ruby-forum.com/t/acts-as-commentable-plugin/60196 "2006-05-16T21:21:54Z")

</div>

I’ve just about finished up work on a plugin similar to acts\_as\_taggable, but for comments instead which would allow you to attach comments (possibly even a threaded discussion if conbined with acts\_as\_tree) to any ob…

---

## [Gem install issues](https://www.ruby-forum.com/t/gem-install-issues/221952)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [August 8, 2012, 4:39pm UTC](https://www.ruby-forum.com/t/gem-install-issues/221952 "2012-08-08T16:39:12Z")

</div>

Hi, I’m farely new to Ruby and ma having trouble installing gems. I’m usng Aptana 3 as IDE and have the RubyInstaller installed (which includes Gem installation). Aptana is saying I need certain gems which I can find…

---

## [Proxy cache max size](https://www.ruby-forum.com/t/proxy-cache-max-size/221077)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [July 2, 2012, 11:04am UTC](https://www.ruby-forum.com/t/proxy-cache-max-size/221077 "2012-07-02T11:04:38Z")

</div>

I have a question. If the file being written to a cache exceeds max size what behavior happens? As I can think of it there are 3 possible outcomes. File is written and later cleaned up by the cache manager (bad) File…

---

## [Iteration question](https://www.ruby-forum.com/t/iteration-question/204878)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 24, 2011, 9:08am UTC](https://www.ruby-forum.com/t/iteration-question/204878 "2011-03-24T09:08:41Z")

</div>

Dear all: This is my code: data = Array.new(5,\[\]) 0.upto(4) do |i| data\[i\].push(i) end p data the output is : \[\[0, 1, 2, 3, 4\], \[0, 1, 2, 3, 4\], \[0, 1, 2, 3, 4\], \[0, 1, 2, 3, 4\], \[0, 1, 2, 3, 4\]\] I am so confus…

---

## [Model identification strategy \[Was: I need help with a design\]](https://www.ruby-forum.com/t/model-identification-strategy-was-i-need-help-with-a-design/196218)

<div class="topic-metadata">

**Author:** [@colinloretz](https://www.ruby-forum.com/u/colinloretz)\
**Replies:** 5\
**Last updated:** [October 12, 2010, 7:37pm UTC](https://www.ruby-forum.com/t/model-identification-strategy-was-i-need-help-with-a-design/196218 "2010-10-12T19:37:56Z")

</div>

On 8 October 2010 14:48, Marnen Laibow-Koser removed\_email\_address@domain.invalid wrote: Colin L. wrote: … I think we are just going to have to agree to differ on this one, I would rather not do that. In general…

---

## [Uso dei constraints nel database](https://www.ruby-forum.com/t/uso-dei-constraints-nel-database/195694)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 5\
**Last updated:** [September 28, 2010, 11:41am UTC](https://www.ruby-forum.com/t/uso-dei-constraints-nel-database/195694 "2010-09-28T11:41:33Z")

</div>

Pensate sia necessario utilizzare anche i contraints del database, mi riferisco alle foreign keys, o bastano e avanzano i controlli che fa rails con has\_many, ecc.?

---

## [Form\_for](https://www.ruby-forum.com/t/form-for/193272)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 5\
**Last updated:** [August 19, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/form-for/193272 "2010-08-19T21:16:00Z")

</div>

At the following: Getting Started with Rails — Ruby on Rails Guides Under: 7.4 Generating a Controller It mentions the following: \<%= form\_for(\[@post, @post.comments.build\]) do |f| %\> Now, this is what I know: form\_…

---

## [JRuby 1.5.0.RC1 + Rails3: OutOfMemoryError: Java heap space](https://www.ruby-forum.com/t/jruby-1-5-0-rc1-rails3-outofmemoryerror-java-heap-space/191215)

<div class="topic-metadata">

**Author:** [@Leonardo\_Borges](https://www.ruby-forum.com/u/Leonardo_Borges)\
**Replies:** 5\
**Last updated:** [July 8, 2010, 3:32am UTC](https://www.ruby-forum.com/t/jruby-1-5-0-rc1-rails3-outofmemoryerror-java-heap-space/191215 "2010-07-08T03:32:09Z")

</div>

Hi guys, So I have just finished upgrading a simple rails app to rails 3 and am getting the following stack trace when starting up with tomcat (also tested on jetty): Does it ring any bells? If not, I can prepare a…

---

## [REE & application frozen gems](https://www.ruby-forum.com/t/ree-application-frozen-gems/189684)

<div class="topic-metadata">

**Author:** [@pakothawade](https://www.ruby-forum.com/u/pakothawade)\
**Replies:** 5\
**Last updated:** [June 6, 2010, 6:00pm UTC](https://www.ruby-forum.com/t/ree-application-frozen-gems/189684 "2010-06-06T18:00:04Z")

</div>

I have the following versions of ruby installed in my production env. ubuntu ~ \> /usr/bin/ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) \[x86\_64-linux\] ubuntu ~ \> /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby -v ruby…

---

## [Each\_char](https://www.ruby-forum.com/t/each-char/185017)

<div class="topic-metadata">

**Author:** [@murloc](https://www.ruby-forum.com/u/murloc)\
**Replies:** 5\
**Last updated:** [March 11, 2010, 11:01pm UTC](https://www.ruby-forum.com/t/each-char/185017 "2010-03-11T23:01:58Z")

</div>

Hello Im new to ruby and programming and I saw a guy do this on a tutorial video: “Hello”.each\_char do |x| puts x end The result was that it printed one letter in the string at a time until it had printed the whol…

---

## [Try\_files internal redirect stripping QUERY\_STRING?](https://www.ruby-forum.com/t/try-files-internal-redirect-stripping-query-string/178895)

<div class="topic-metadata">

**Author:** [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Replies:** 5\
**Last updated:** [November 13, 2009, 7:37am UTC](https://www.ruby-forum.com/t/try-files-internal-redirect-stripping-query-string/178895 "2009-11-13T07:37:29Z")

</div>

Hi all, Using a fairly bog-standard try\_files → php/fastcgi config here with nginx 0.8.22. Looks very much like this: index index.php; location / { try\_files $uri $uri/ /index.php; } location ~ .php$ { includ…

---

## [Datetime\_select](https://www.ruby-forum.com/t/datetime-select/168963)

<div class="topic-metadata">

**Author:** [@softwarewin](https://www.ruby-forum.com/u/softwarewin)\
**Replies:** 5\
**Last updated:** [May 28, 2009, 7:52am UTC](https://www.ruby-forum.com/t/datetime-select/168963 "2009-05-28T07:52:49Z")

</div>

Salve a tutti, mi dite, per piacere, come faccio a salvare la data di una nuova riga nel database senza che l’utente possa modificarla? E cioÃ¨: Data \<%= datetime\_select ‘software’, ‘date’,:order =\> \[:day, :month, :…

---

## [How to use json in view file](https://www.ruby-forum.com/t/how-to-use-json-in-view-file/167189)

<div class="topic-metadata">

**Author:** [@mrbless](https://www.ruby-forum.com/u/mrbless)\
**Replies:** 5\
**Last updated:** [May 5, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/how-to-use-json-in-view-file/167189 "2009-05-05T18:02:41Z")

</div>

In my controller I have found all the movies like this @budgets=Budget.find(:all).to\_json Now in the view file what i want to do is something like this How to do this as i have to plot this data.

---

## [Any url with documents, articles about how to study Rhtml?](https://www.ruby-forum.com/t/any-url-with-documents-articles-about-how-to-study-rhtml/166125)

<div class="topic-metadata">

**Author:** [@chenpassion](https://www.ruby-forum.com/u/chenpassion)\
**Replies:** 5\
**Last updated:** [April 22, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/any-url-with-documents-articles-about-how-to-study-rhtml/166125 "2009-04-22T17:35:45Z")

</div>

I am new to Rails and I would like to study the Rhtml grammar and practice the basic elements in Rhtml. But I can’t find enough resource for my study. Would any guys show some great blog or documents or articles to m…

---

## [Moving from mod\_proxy\_balancer to HAProxy; any guidance?](https://www.ruby-forum.com/t/moving-from-mod-proxy-balancer-to-haproxy-any-guidance/151117)

<div class="topic-metadata">

**Author:** [@cpher](https://www.ruby-forum.com/u/cpher)\
**Replies:** 5\
**Last updated:** [October 22, 2008, 7:22am UTC](https://www.ruby-forum.com/t/moving-from-mod-proxy-balancer-to-haproxy-any-guidance/151117 "2008-10-22T07:22:17Z")

</div>

Hi all. Just decided to move from mod\_proxy\_balancer to HAProxy for its improved load balancing to mongrels. Anyway, have you done the same? If so, can you provide any guidance for making this change? I haven’t bee…

---

## [Nginx 400 error when username included in the uri](https://www.ruby-forum.com/t/nginx-400-error-when-username-included-in-the-uri/146336)

<div class="topic-metadata">

**Author:** [@Michael\_Ching](https://www.ruby-forum.com/u/Michael_Ching)\
**Replies:** 5\
**Last updated:** [August 23, 2008, 12:23pm UTC](https://www.ruby-forum.com/t/nginx-400-error-when-username-included-in-the-uri/146336 "2008-08-23T12:23:48Z")

</div>

Hello, Currently when nginx encounters a Request-URI of the form http://removed\_email\_address@domain.invalid/ it returns error 400. This appears to be proper per RFC 2616 since the username@ is not recognized by the R…

---

## [Avoid reinstalling gem (if its already installed?)](https://www.ruby-forum.com/t/avoid-reinstalling-gem-if-its-already-installed/144052)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 5\
**Last updated:** [July 25, 2008, 5:27am UTC](https://www.ruby-forum.com/t/avoid-reinstalling-gem-if-its-already-installed/144052 "2008-07-25T05:27:58Z")

</div>

Is there a way to have rubygems not reinstall a gem if the latest version is already installed? For example, I want the second ‘install’ below to simply say ‘already installed’ and exit successfully. rsanheim@ares:~ …

---

## [Syntax Checker that's better than the normal syntax checker](https://www.ruby-forum.com/t/syntax-checker-thats-better-than-the-normal-syntax-checker/143092)

<div class="topic-metadata">

**Author:** [@hydroflamexz18](https://www.ruby-forum.com/u/hydroflamexz18)\
**Replies:** 5\
**Last updated:** [July 16, 2008, 1:50pm UTC](https://www.ruby-forum.com/t/syntax-checker-thats-better-than-the-normal-syntax-checker/143092 "2008-07-16T13:50:37Z")

</div>

I’ve been using the stupid built in syntax checker, it’s been making some mistakes is there any better syntax checker. Unrealistically, a standalone application were you paste in your code and it checks it. But anythi…

---

## [RailsConf vs. My MacBook's Battery. ( Power Outlet Availability )](https://www.ruby-forum.com/t/railsconf-vs-my-macbooks-battery-power-outlet-availability/137624)

<div class="topic-metadata">

**Author:** [@sw0rdfish](https://www.ruby-forum.com/u/sw0rdfish)\
**Replies:** 5\
**Last updated:** [May 14, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/railsconf-vs-my-macbooks-battery-power-outlet-availability/137624 "2008-05-14T23:03:59Z")

</div>

So my Macbook’s battery sucks… and I’m thinking of grabbing a new one, I’m curious how the availability of power outlets have been at RailsConfs. For those who have gone before, was it hard to find an outlet to plug…

---

## [Anti-spam?](https://www.ruby-forum.com/t/anti-spam/135335)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 5\
**Last updated:** [April 21, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/anti-spam/135335 "2008-04-21T20:52:45Z")

</div>

Ciao, Cosa usate contro lo spam? Ho mezz’idea di fare un plugin che fa da interfaccia a vari servizi, compreso spamassassin in locale per chi non vuole usare servizi esterni come Akismet o Defensio… – David N. Welt…

---

## [Ruby 1.9 trunk NKF and KCONV Encoding:ASCII-8BIT](https://www.ruby-forum.com/t/ruby-1-9-trunk-nkf-and-kconv-encoding-ascii-8bit/122052)

<div class="topic-metadata">

**Author:** [@WATANABE\_Tetsuya](https://www.ruby-forum.com/u/WATANABE_Tetsuya)\
**Replies:** 5\
**Last updated:** [December 20, 2007, 2:40am UTC](https://www.ruby-forum.com/t/ruby-1-9-trunk-nkf-and-kconv-encoding-ascii-8bit/122052 "2007-12-20T02:40:02Z")

</div>

e$BEOJUE/Li$G$9!#e(B nkf e$B$de(B kconv e$B$GJ8;zNs$N4A;z%3!\<%I$rJQ49$9$k$He(B Encoding:ASCII-8BIT e$B$K$J$C$F$$$^$9!#6/@)E\*$Ke(B String#force\_encoding e$B$9$l$P$$$$$N$G$9$,!“4A;z%3!\<%I$NJQ49$N$H$-$Ke(B encoding e$…

---

## [Agragador noticias RSS](https://www.ruby-forum.com/t/agragador-noticias-rss/119120)

<div class="topic-metadata">

**Author:** [@masoto](https://www.ruby-forum.com/u/masoto)\
**Replies:** 5\
**Last updated:** [November 3, 2007, 1:36pm UTC](https://www.ruby-forum.com/t/agragador-noticias-rss/119120 "2007-11-03T13:36:01Z")

</div>

Hola a todos, necesito programar un planeta en Ruby On Rails, del estilo de: http://planetarails.com Ã³ http://www.planetrubyonrails.org Â¿Alguien sabe si existe algÃºn proyecto libre? En caso de no existir, supongo …

---

## [Minimalistic command line option parsing via -s](https://www.ruby-forum.com/t/minimalistic-command-line-option-parsing-via-s/113956)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 5\
**Last updated:** [September 7, 2007, 3:03am UTC](https://www.ruby-forum.com/t/minimalistic-command-line-option-parsing-via-s/113956 "2007-09-07T03:03:40Z")

</div>

Hi, I know, I’m slow, but I finally figured out the minimalistic command line options parsing that zenspider et al use in utilities like flog and sow (the gem skeleton generator that comes with Hoe). Consider, for ex…

---

## [PStore bug "Marshal data too short"](https://www.ruby-forum.com/t/pstore-bug-marshal-data-too-short/70176)

<div class="topic-metadata">

**Author:** [@javier\_v](https://www.ruby-forum.com/u/javier_v)\
**Replies:** 5\
**Last updated:** [April 16, 2007, 2:00am UTC](https://www.ruby-forum.com/t/pstore-bug-marshal-data-too-short/70176 "2007-04-16T02:00:25Z")

</div>

Is there any solution to the “Marshal data too short” in pstore? I tried the “a+b” solution, but didn’t work for me. I have version 1.8.3 and tried 1.8.4, nothing happened.

---

## [Question about attr\_accessor](https://www.ruby-forum.com/t/question-about-attr-accessor/87527)

<div class="topic-metadata">

**Author:** [@schmitr3](https://www.ruby-forum.com/u/schmitr3)\
**Replies:** 5\
**Last updated:** [March 3, 2007, 2:15pm UTC](https://www.ruby-forum.com/t/question-about-attr-accessor/87527 "2007-03-03T14:15:45Z")

</div>

Hi, I came across something unexpected today, and wondered if anyone could explain it to me. If I have this class: class Foo def initialize @bar = 0 end attr\_accessor :bar def add bar += 1 end end then the “a…

---

## [Cross-thread violation on rb\_gc() and Windows arguments](https://www.ruby-forum.com/t/cross-thread-violation-on-rb-gc-and-windows-arguments/85772)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 5\
**Last updated:** [February 17, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/cross-thread-violation-on-rb-gc-and-windows-arguments/85772 "2007-02-17T15:57:35Z")

</div>

Hello, I was working on a script and running into problems with passing an argument with a wildcard with the C:\\WINDOWS\\System32 path. Observe: C:\>more test.rb puts ARGV C:\>test.rb C:\\ruby\*.txt C:/ruby/ChangeLog.t…

---

## [Simple security verification for input form?](https://www.ruby-forum.com/t/simple-security-verification-for-input-form/85594)

<div class="topic-metadata">

**Author:** [@surfivor](https://www.ruby-forum.com/u/surfivor)\
**Replies:** 5\
**Last updated:** [February 17, 2007, 5:51am UTC](https://www.ruby-forum.com/t/simple-security-verification-for-input-form/85594 "2007-02-17T05:51:45Z")

</div>

I want to add functionality to a band web site where people can enter their email address to sign up for the mailing list. It seems obvious that I need to protect against a bot however unlikely that may seem. Some sor…

---

## [Rake db:migrate as in Agile Web Development with Rails](https://www.ruby-forum.com/t/rake-db-migrate-as-in-agile-web-development-with-rails/83789)

<div class="topic-metadata">

**Author:** [@XBone](https://www.ruby-forum.com/u/XBone)\
**Replies:** 5\
**Last updated:** [January 30, 2007, 6:12pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-as-in-agile-web-development-with-rails/83789 "2007-01-30T18:12:20Z")

</div>

Reading Agile Web D. with Rails (2nd edition) Working with InstantRails on Windows XP Professional Sevice Pack 2 I am trying to run a migration using the command rake db:migrate from the command prompt. This is the …

---

## [How to have many controllers under one admin page?](https://www.ruby-forum.com/t/how-to-have-many-controllers-under-one-admin-page/83597)

<div class="topic-metadata">

**Author:** [@Matthieu](https://www.ruby-forum.com/u/Matthieu)\
**Replies:** 5\
**Last updated:** [January 28, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/how-to-have-many-controllers-under-one-admin-page/83597 "2007-01-28T14:27:42Z")

</div>

Hello, Since I have many controllers that require administration treatment, with the scaffold command I’m able to create one admin page for each of these controllers. How would it be possible to gather all of them un…

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

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