# Top

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

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

---

## [Restful authentication (routes, resources etc)](https://www.ruby-forum.com/t/restful-authentication-routes-resources-etc/105006)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 4\
**Last updated:** [May 24, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/restful-authentication-routes-resources-etc/105006 "2007-05-24T22:01:16Z")

</div>

Can anyone explain how restful authentication works? I have the plugin working to an extent. The only thing I can’t do is logout. I’m assuming there are additional steps involved with adding methods to the users an…

---

## [Creating a tempfile that should be used by 2 controllers](https://www.ruby-forum.com/t/creating-a-tempfile-that-should-be-used-by-2-controllers/104866)

<div class="topic-metadata">

**Author:** [@fred\_o](https://www.ruby-forum.com/u/fred_o)\
**Replies:** 4\
**Last updated:** [May 24, 2007, 9:23am UTC](https://www.ruby-forum.com/t/creating-a-tempfile-that-should-be-used-by-2-controllers/104866 "2007-05-24T09:23:08Z")

</div>

Hi, To summarize I have an application with two pages: one is a form and a controller is attached to it. Crontoller generates a file given the information entered in the form; the other is a download-page and also ha…

---

## [Polymorphism & REST](https://www.ruby-forum.com/t/polymorphism-rest/86523)

<div class="topic-metadata">

**Author:** [@dean](https://www.ruby-forum.com/u/dean)\
**Replies:** 4\
**Last updated:** [February 23, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/polymorphism-rest/86523 "2007-02-23T21:55:56Z")

</div>

I have a polymorphic model: class Note \< ActiveRecord::Base belongs\_to :notable, :polymorphic =\> true end And some models that use notes: class User \< ActiveRecord::Base has\_many :notes, :as =\> :notable end class…

---

## [Assert\_equal fails on BigDecimal with Oracle in Rails 1.2 RC](https://www.ruby-forum.com/t/assert-equal-fails-on-bigdecimal-with-oracle-in-rails-1-2-rc/81418)

<div class="topic-metadata">

**Author:** [@lori](https://www.ruby-forum.com/u/lori)\
**Replies:** 4\
**Last updated:** [January 16, 2007, 2:09am UTC](https://www.ruby-forum.com/t/assert-equal-fails-on-bigdecimal-with-oracle-in-rails-1-2-rc/81418 "2007-01-16T02:09:41Z")

</div>

This is an example of one of several test failures I get, when using Rails 1.2 RC2 with an Oracle database setup. test\_tubular\_access(WellTest) \[./test/unit/well\_test.rb:37\]: \<1455.0\> expected but was \<#BigDecimal:7…

---

## [Generare file testo su client](https://www.ruby-forum.com/t/generare-file-testo-su-client/75821)

<div class="topic-metadata">

**Author:** [@sij](https://www.ruby-forum.com/u/sij)\
**Replies:** 4\
**Last updated:** [November 14, 2006, 8:02pm UTC](https://www.ruby-forum.com/t/generare-file-testo-su-client/75821 "2006-11-14T20:02:54Z")

</div>

Con il seguente codice: def genera\_file @file\_items = FileItem.find(:first, :conditions =\> “user\_id = ‘#{session\[:user\_id\]}’”) mese = @file\_items.riferimento @file\_items = FileItem.find(:all, :conditions =\> “user\_i…

---

## [Imposible configurar Rails para que use Tab en vez de espaci](https://www.ruby-forum.com/t/imposible-configurar-rails-para-que-use-tab-en-vez-de-espaci/73751)

<div class="topic-metadata">

**Author:** [@ISSSSaki](https://www.ruby-forum.com/u/ISSSSaki)\
**Replies:** 4\
**Last updated:** [October 27, 2006, 3:03pm UTC](https://www.ruby-forum.com/t/imposible-configurar-rails-para-que-use-tab-en-vez-de-espaci/73751 "2006-10-27T15:03:35Z")

</div>

Hola, estoy haciendo un proyecto RoR con un amigo y tenemos el problema de que Ã©l usa Rails mientras que yo Quanta. La idea es usar tabuladores (que no varios espacios) para indentar el cÃ³digo. Con Quanta y su edi…

---

## [Google Web Toolkit (GWT) - as a rails developers should I co](https://www.ruby-forum.com/t/google-web-toolkit-gwt-as-a-rails-developers-should-i-co/73635)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [October 27, 2006, 10:53am UTC](https://www.ruby-forum.com/t/google-web-toolkit-gwt-as-a-rails-developers-should-i-co/73635 "2006-10-27T10:53:16Z")

</div>

Hi, Should a Rails developer consider using GWT as a core component, or is the concept that rails uses prototype so rails developers should focus on use of prototype? Tks

---

## [Creating a select box](https://www.ruby-forum.com/t/creating-a-select-box/94184)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 4\
**Last updated:** [April 25, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/creating-a-select-box/94184 "2006-04-25T14:18:26Z")

</div>

Hi trying to create a select box in \_form.rhtml. I have a table called organisations that contains fileds, 2 being ‘id’ and ‘name’ these are the fields I need to bring over to the clients \_form.rhtml. whats the best…

---

## [PDF::SimpleTable performance issues](https://www.ruby-forum.com/t/pdf-simpletable-performance-issues/96852)

<div class="topic-metadata">

**Author:** [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Replies:** 4\
**Last updated:** [January 25, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/pdf-simpletable-performance-issues/96852 "2006-01-25T14:46:29Z")

</div>

Hello, I am having performance issues ending with a ‘time out’ from Apache when I try to generate a PDF file using pdf-writer. It seems to happen at the render\_on(pdf) function call ; the table I am trying to draw ha…

---

## [Please help on gem packaging](https://www.ruby-forum.com/t/please-help-on-gem-packaging/75207)

<div class="topic-metadata">

**Author:** [@Mohammad\_K](https://www.ruby-forum.com/u/Mohammad_K)\
**Replies:** 4\
**Last updated:** [December 30, 2005, 3:05am UTC](https://www.ruby-forum.com/t/please-help-on-gem-packaging/75207 "2005-12-30T03:05:39Z")

</div>

Hello, First let me show you my gemspec file, ######################### require ‘rubygems’ SPEC = Gem::Specification.new do | s | # Quick fix for Ruby 1.8.3 / YAML bug #if (RUBY\_VERSION == ‘1.8.3’) # def spe…

---

## [Category / product association](https://www.ruby-forum.com/t/category-product-association/260413)

<div class="topic-metadata">

**Author:** [@merlin2049er](https://www.ruby-forum.com/u/merlin2049er)\
**Replies:** 1\
**Last updated:** [October 23, 2020, 2:43pm UTC](https://www.ruby-forum.com/t/category-product-association/260413 "2020-10-23T14:43:40Z")

</div>

I have a product model with a category id in it and a category model. They are linked together by this id. It had been working great, on my category show page I would basically say there are X products in this category…

---

## [How to Asset Pre-compile for Production operation? - Rails 4.2.5](https://www.ruby-forum.com/t/how-to-asset-pre-compile-for-production-operation-rails-4-2-5/244465)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [April 15, 2016, 1:38pm UTC](https://www.ruby-forum.com/t/how-to-asset-pre-compile-for-production-operation-rails-4-2-5/244465 "2016-04-15T13:38:23Z")

</div>

Quick query… I’ve used the excellent “Getting Started with Rails” tutorial to build the demo app, Weblog. Has turned out to be a useful tool on our small Lan. I am using it daily to capture stuff I want to referen…

---

## [Reverse proxy, proxy\_pass](https://www.ruby-forum.com/t/reverse-proxy-proxy-pass/243790)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [January 8, 2016, 7:03pm UTC](https://www.ruby-forum.com/t/reverse-proxy-proxy-pass/243790 "2016-01-08T19:03:31Z")

</div>

Hi there, Here is a part of my nginx config file: location /test/ { proxy\_pass http://localhost:1024/; } If I have it as above the GET /test/xxxx request will be sent to port 1024 as /xxxx and it also decodes the …

---

## [Nginx-1.9.2 fatal code 2!](https://www.ruby-forum.com/t/nginx-1-9-2-fatal-code-2/242518)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [June 30, 2015, 2:47pm UTC](https://www.ruby-forum.com/t/nginx-1-9-2-fatal-code-2/242518 "2015-06-30T14:47:54Z")

</div>

Hi, We’ve just compiled latest nginx-1.9.2 on Debian wheezy 7 in order to utilize aio threads directive for our storage but nginx started to crash since we enabled aio threads on it. Following is the compiled options …

---

## [Ricerca sviluppatore esperto a Torino Ruby On Rails (Urgente)](https://www.ruby-forum.com/t/ricerca-sviluppatore-esperto-a-torino-ruby-on-rails-urgente/240331)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [April 8, 2014, 9:00pm UTC](https://www.ruby-forum.com/t/ricerca-sviluppatore-esperto-a-torino-ruby-on-rails-urgente/240331 "2014-04-08T21:00:17Z")

</div>

Ciao a tutti, stiamo cercando uno sviluppatore esperto in Ruby On Rails a Torino per un progetto gi avviato con una deadline a breve scadenza 1/2 mesi. Il profilo richiesto dovrebbe avere competenze in uno dei due seg…

---

## [How to distinguish if nginx generated a 504 error or upstream returned it?](https://www.ruby-forum.com/t/how-to-distinguish-if-nginx-generated-a-504-error-or-upstream-returned-it/246091)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 21, 2013, 12:44pm UTC](https://www.ruby-forum.com/t/how-to-distinguish-if-nginx-generated-a-504-error-or-upstream-returned-it/246091 "2013-08-21T12:44:16Z")

</div>

Hello ! I run nginx as a reverse proxy and send requests to an upstream server, the problem is according to my logs sometimes i start seeing this: \[499\] \[-\] \[0\] \[11602\] \[xx.126.55.81\] \[GET /weblogin/ HTTP/1.1\] or \[5…

---

## [Sockets en sitio web](https://www.ruby-forum.com/t/sockets-en-sitio-web/227271)

<div class="topic-metadata">

**Author:** [@pantulis](https://www.ruby-forum.com/u/pantulis)\
**Replies:** 1\
**Last updated:** [June 26, 2013, 11:47pm UTC](https://www.ruby-forum.com/t/sockets-en-sitio-web/227271 "2013-06-26T23:47:49Z")

</div>

Hola amigos, soy nuevo en esto de los sockets y lo que quiero hacer, es mantener un socket escuchando todo el tiempo esperando un mensaje, para esto utilizo TCPServer el cual esta esperando algún cliente se conecte, t…

---

## [Simple question](https://www.ruby-forum.com/t/simple-question/224196)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [November 5, 2012, 3:17pm UTC](https://www.ruby-forum.com/t/simple-question/224196 "2012-11-05T15:17:33Z")

</div>

I have just picked up ruby and am trying to teach my self. so this question is probably easy but its giving me fits. class Test def round puts “the object is round” end def random $radus=rand(10)+1 \<—G…

---

## [Session variable is empty after get request in rails3](https://www.ruby-forum.com/t/session-variable-is-empty-after-get-request-in-rails3/219163)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [April 22, 2012, 12:21pm UTC](https://www.ruby-forum.com/t/session-variable-is-empty-after-get-request-in-rails3/219163 "2012-04-22T12:21:06Z")

</div>

i have one page, b.html.erb, when i load that page,that have one text filed and button. when i click on that button, button class = sub123 (Here an ajax Get request will happen), after processing another div(that bu…

---

## [Rails 3.0.1 Install on Mac OS 10.5.8](https://www.ruby-forum.com/t/rails-3-0-1-install-on-mac-os-10-5-8/198720)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 7\
**Last updated:** [November 6, 2010, 3:22am UTC](https://www.ruby-forum.com/t/rails-3-0-1-install-on-mac-os-10-5-8/198720 "2010-11-06T03:22:48Z")

</div>

Hello all, I’m a RoR newbie! I have installed RVM and have Ruby 1.8.7 and 1.9.2 installed. I am following the steps from the book on RailsTutorial.org and have gotten tripped up on the Installing Rails section. I ins…

---

## [Retain Form Values on reset](https://www.ruby-forum.com/t/retain-form-values-on-reset/184875)

<div class="topic-metadata">

**Author:** [@Ashwin\_V](https://www.ruby-forum.com/u/Ashwin_V)\
**Replies:** 1\
**Last updated:** [March 9, 2010, 9:02pm UTC](https://www.ruby-forum.com/t/retain-form-values-on-reset/184875 "2010-03-09T21:02:04Z")

</div>

I have a Login page created with 4 fields and a submit button for an application i am developing. Username : Email address : Password : Confirm Password : i am validating each field. so if the username is missing …

---

## [Asynchronous Calls](https://www.ruby-forum.com/t/asynchronous-calls/182051)

<div class="topic-metadata">

**Author:** [@Randall\_Sutton](https://www.ruby-forum.com/u/Randall_Sutton)\
**Replies:** 1\
**Last updated:** [January 22, 2010, 6:27am UTC](https://www.ruby-forum.com/t/asynchronous-calls/182051 "2010-01-22T06:27:44Z")

</div>

Is there a way to setup asychronous calls in IronRuby. I’ve used things like WebClient.download\_string\_async, but I’m wondering if I can setup an async using just IronRuby. For example: @data.get\_settings do |settin…

---

## [Noob question .each problem](https://www.ruby-forum.com/t/noob-question-each-problem/181004)

<div class="topic-metadata">

**Author:** [@radu\_puspana](https://www.ruby-forum.com/u/radu_puspana)\
**Replies:** 7\
**Last updated:** [January 4, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/noob-question-each-problem/181004 "2010-01-04T18:56:15Z")

</div>

First, A Happy New Year to you all Second : this is my login action form the admin controller: def login if request.post? user = User.authenticate(params\[:name\], params\[:password\]) if user if user.banned\_status ==…

---

## [Database relationship](https://www.ruby-forum.com/t/database-relationship/179203)

<div class="topic-metadata">

**Author:** [@lorenz](https://www.ruby-forum.com/u/lorenz)\
**Replies:** 7\
**Last updated:** [November 20, 2009, 1:53pm UTC](https://www.ruby-forum.com/t/database-relationship/179203 "2009-11-20T13:53:04Z")

</div>

Ciau a tutti, avrei un problema con la relazione has\_and\_belongs\_to\_many per relazionare “molti a molti” due modelli (artists e events). Il mio problema sussiste nell’inserimento degli id nella tabella ponte “artists\_…

---

## [Auto-indexing associated models](https://www.ruby-forum.com/t/auto-indexing-associated-models/167153)

<div class="topic-metadata">

**Author:** [@inari](https://www.ruby-forum.com/u/inari)\
**Replies:** 1\
**Last updated:** [August 10, 2009, 11:14am UTC](https://www.ruby-forum.com/t/auto-indexing-associated-models/167153 "2009-08-10T11:14:42Z")

</div>

I have one central model for which I return search results. However, I have a few fields in associated models that I would like to search as well. By adding methods to the central model, I can easily search for them…

---

## [Help for code understanding](https://www.ruby-forum.com/t/help-for-code-understanding/171928)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 7\
**Last updated:** [July 11, 2009, 11:49pm UTC](https://www.ruby-forum.com/t/help-for-code-understanding/171928 "2009-07-11T23:49:24Z")

</div>

Hi all, I find a method in a source code as follows: def seq self.class.new(self) end What does the code do, especially for class.new()? Thank you, Li

---

## [Regular Expression question](https://www.ruby-forum.com/t/regular-expression-question/161612)

<div class="topic-metadata">

**Author:** [@northband](https://www.ruby-forum.com/u/northband)\
**Replies:** 7\
**Last updated:** [March 1, 2009, 12:30am UTC](https://www.ruby-forum.com/t/regular-expression-question/161612 "2009-03-01T00:30:40Z")

</div>

Hi - I would like to use gsub() to strip decimals with trailing zeros from a string. My string looks like this: 19.0 " / 482.600 mm I would like to end up with this: 19 " / 482.6 mm Anyone have a regular expression th…

---

## [Linux ps reports mongrel as \[ruby18\]](https://www.ruby-forum.com/t/linux-ps-reports-mongrel-as-ruby18/160609)

<div class="topic-metadata">

**Author:** [@devtheo](https://www.ruby-forum.com/u/devtheo)\
**Replies:** 1\
**Last updated:** [February 20, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/linux-ps-reports-mongrel-as-ruby18/160609 "2009-02-20T14:41:36Z")

</div>

I’m running two sets of mongrels using mongrel 1.1.4, one for production one for staging. When executing ‘ps’ from a linux shell, the production mongrels report as expected, however the staging processes are listed as …

---

## [2 apps with 1 one database](https://www.ruby-forum.com/t/2-apps-with-1-one-database/152177)

<div class="topic-metadata">

**Author:** [@jef](https://www.ruby-forum.com/u/jef)\
**Replies:** 7\
**Last updated:** [October 31, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/2-apps-with-1-one-database/152177 "2008-10-31T15:59:26Z")

</div>

Hi; I am developping a web app and I’ve wrote some admin code (parsing web site, sending massmail etc…) which don’t need to be deployed. So I would like this code to be part of a second developement app. But there’s …

---

## [How to convert to Julian DateTime](https://www.ruby-forum.com/t/how-to-convert-to-julian-datetime/126112)

<div class="topic-metadata">

**Author:** [@dharshi](https://www.ruby-forum.com/u/dharshi)\
**Replies:** 1\
**Last updated:** [January 15, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/how-to-convert-to-julian-datetime/126112 "2008-01-15T18:16:24Z")

</div>

Please help me with this, I want to convert a dateTime to Julian date format… and vice versa…

---

## [Script/server with options](https://www.ruby-forum.com/t/script-server-with-options/114555)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [September 14, 2007, 10:48pm UTC](https://www.ruby-forum.com/t/script-server-with-options/114555 "2007-09-14T22:48:57Z")

</div>

I have hacked a script that I found at http://www.koders.com/ruby into a generalized webrick startup script. The script is attached to this post and the help text is reproduced below. “script/server” runs webrick on …

---

## [Hype.rb](https://www.ruby-forum.com/t/hype-rb/109179)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 7\
**Last updated:** [July 12, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/hype-rb/109179 "2007-07-12T18:38:45Z")

</div>

NAME hype.rb SYNOPSIS if you can’t figure it out you don’t need to know HISTORY hack two: bug fixes. thx marcel. hack one: initial crime -a

---

## [Xmlrpc authentication](https://www.ruby-forum.com/t/xmlrpc-authentication/68898)

<div class="topic-metadata">

**Author:** [@m94asr](https://www.ruby-forum.com/u/m94asr)\
**Replies:** 1\
**Last updated:** [September 17, 2006, 1:09am UTC](https://www.ruby-forum.com/t/xmlrpc-authentication/68898 "2006-09-17T01:09:10Z")

</div>

Hi all, what is the recommended way to do user authentication for xmlrpc ruby on rails webservices? Thanks, -Armin

---

## [Ext/tk/tkutil](https://www.ruby-forum.com/t/ext-tk-tkutil/67496)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [September 5, 2006, 12:17pm UTC](https://www.ruby-forum.com/t/ext-tk-tkutil/67496 "2006-09-05T12:17:57Z")

</div>

e$B$J$+$@$G$9!#e(B 1.9e$B$Ge(Bext/tk/tkutile$B$,%3%s%Q%$%k%(%i!\<$K$J$j$^$9!#$H$j$"$($:5!3#e(B e$BE\*$KJQ49$7$?%Q%C%A$G$9!#e(B e$B$A$J$\_$K!“e(Brb\_str\_set\_len()e$B$O$”$k$h$&$G$9$,!"e(Brb\_ary\_set\_len()e$B$Oe(B e$BDI2C$5$…

---

## [Quick metaprogramming question: collecting arguments across](https://www.ruby-forum.com/t/quick-metaprogramming-question-collecting-arguments-across/97435)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 7\
**Last updated:** [July 7, 2006, 5:07pm UTC](https://www.ruby-forum.com/t/quick-metaprogramming-question-collecting-arguments-across/97435 "2006-07-07T17:07:13Z")

</div>

Hi all, Quick question: is there a better way to write Foo.contains below? Forcing the lexical scoping like this feels wrong. class Foo def self.contains \*o @contents ||= \[\] @contents += o contents = @contents de…

---

## [Vendor/rails seems to be being ignored in preference to gem?](https://www.ruby-forum.com/t/vendor-rails-seems-to-be-being-ignored-in-preference-to-gem/59395)

<div class="topic-metadata">

**Author:** [@rjlyders](https://www.ruby-forum.com/u/rjlyders)\
**Replies:** 7\
**Last updated:** [May 5, 2006, 5:41pm UTC](https://www.ruby-forum.com/t/vendor-rails-seems-to-be-being-ignored-in-preference-to-gem/59395 "2006-05-05T17:41:08Z")

</div>

I have edge rails in /vendor/rails on DreamHost, but when running dispatch.fcgi I get the following error in my logs: \[02/May/2006:08:52:32 :: 29365\] terminated gracefully \[02/May/2006:08:53:53 :: 19526\] starting \[02…

---

## [Ruby port for Nokia 770 Wireless Internet Tablet](https://www.ruby-forum.com/t/ruby-port-for-nokia-770-wireless-internet-tablet/67246)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [February 21, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/ruby-port-for-nokia-770-wireless-internet-tablet/67246 "2006-02-21T19:58:54Z")

</div>

Greetings Fellow Ruby Enthusiasts, I recently purchased a Nokia 770 wireless Internet Tablet (http://europe.nokia.com/nokia/0,,75023,00.html) and a few days ago I successfully ported Ruby 1.8.4 to it. For those of yo…

---

## [Form validation/errors not working](https://www.ruby-forum.com/t/form-validation-errors-not-working/173599)

<div class="topic-metadata">

**Author:** [@archangel77](https://www.ruby-forum.com/u/archangel77)\
**Replies:** 8\
**Last updated:** [August 12, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/form-validation-errors-not-working/173599 "2009-08-12T21:18:34Z")

</div>

Hello. I’m trying to create a form. It has only a username and a password field. The validation methods, such as validates\_presence\_of, aren’t working. Does anyone know why? class UsersController \< ApplicationContro…

---

## [Bang is not work!](https://www.ruby-forum.com/t/bang-is-not-work/160597)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 8\
**Last updated:** [February 18, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/bang-is-not-work/160597 "2009-02-18T19:55:45Z")

</div>

OS is CentOs 4.7 $ ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) \[i686-linux\] $ cat ruby\_test #!/usr/local/bin/ruby puts ‘hello’ $ ls -l -rwxr-xr-x 1 gmc gmc 94 2ì›” 17 19:11 ruby\_test $ ruby\_test -bash: …

---

## [Install multiple versions of Rails on OSX](https://www.ruby-forum.com/t/install-multiple-versions-of-rails-on-osx/137249)

<div class="topic-metadata">

**Author:** [@Justin\_Kozuch](https://www.ruby-forum.com/u/Justin_Kozuch)\
**Replies:** 8\
**Last updated:** [May 10, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/install-multiple-versions-of-rails-on-osx/137249 "2008-05-10T23:38:42Z")

</div>

Hi, I am currently running Rails 2.0.2 on my machine, but for the purposes of a AWDR 2nd Edition, I also need to run Rails 1.8.6. I looked around for a bit to find articles on how to do this, but I’m coming up short. …

---

## [Use of self reflection to determine possible actions](https://www.ruby-forum.com/t/use-of-self-reflection-to-determine-possible-actions/123443)

<div class="topic-metadata">

**Author:** [@crispy](https://www.ruby-forum.com/u/crispy)\
**Replies:** 8\
**Last updated:** [December 28, 2007, 10:14pm UTC](https://www.ruby-forum.com/t/use-of-self-reflection-to-determine-possible-actions/123443 "2007-12-28T22:14:30Z")

</div>

Is there a way to use either Ruby or Rail’s self reflection to return a list of actions a given controller can respond to? I found the “methods” method, but it appears to return everything, including all of the super …

---

## [Lost on what's next](https://www.ruby-forum.com/t/lost-on-whats-next/122976)

<div class="topic-metadata">

**Author:** [@geoffw](https://www.ruby-forum.com/u/geoffw)\
**Replies:** 8\
**Last updated:** [December 13, 2007, 6:07am UTC](https://www.ruby-forum.com/t/lost-on-whats-next/122976 "2007-12-13T06:07:57Z")

</div>

I’ve finished reading the Agile Web D. with Rails and the Intro to Ruby books. I followed the examples, learned how to create the basics but… I’m not sure what to do next. The books only cover the bare basics, and al…

---

## [What's wrong with these calculations?](https://www.ruby-forum.com/t/whats-wrong-with-these-calculations/122190)

<div class="topic-metadata">

**Author:** [@Ivo\_D](https://www.ruby-forum.com/u/Ivo_D)\
**Replies:** 8\
**Last updated:** [December 5, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/whats-wrong-with-these-calculations/122190 "2007-12-05T15:32:30Z")

</div>

Hi I thought, why search for two hours being totally frustrated if I can just ask… why does this happen: 73.07-63.00 =\> 10.07 # ok, normal! 73.07-64.00 =\> 9.06999999999999 # why oh why? What should I do abo…

---

## [Conducting Regular Expressions on a text file](https://www.ruby-forum.com/t/conducting-regular-expressions-on-a-text-file/113143)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 8\
**Last updated:** [August 29, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/conducting-regular-expressions-on-a-text-file/113143 "2007-08-29T17:31:02Z")

</div>

I’m trying to find and replacace the string “placeholder” in a text file. Any idea how I could get the following code to work? file = File.open('/folder/template.txt', 'r+') file.gsub!(/placeholder/, "word") Thanks, P…

---

## [MultiThreading in C++](https://www.ruby-forum.com/t/multithreading-in-c/84679)

<div class="topic-metadata">

**Author:** [@ktxn1020](https://www.ruby-forum.com/u/ktxn1020)\
**Replies:** 8\
**Last updated:** [February 7, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/multithreading-in-c/84679 "2007-02-07T17:30:03Z")

</div>

Hi, I am pretty new to multithreaded programming. I have a question with a hope someone can help me out. I want to find distances between points using thread (Win MFC) For instance distance from: p1 to p2, p3, p4, p…

---

## [Looking for Information on POST vs. GET](https://www.ruby-forum.com/t/looking-for-information-on-post-vs-get/66858)

<div class="topic-metadata">

**Author:** [@sw0rdfish](https://www.ruby-forum.com/u/sw0rdfish)\
**Replies:** 8\
**Last updated:** [September 6, 2006, 3:20am UTC](https://www.ruby-forum.com/t/looking-for-information-on-post-vs-get/66858 "2006-09-06T03:20:57Z")

</div>

I’m sorta new to this stuff, so I was wondering if anyone was familliar with a write up of POST vs. GET and how to use it with Rails? I haven’t had much exprience with it, so if it’s as simple as addng a line of cod…

---

## [Firtst and only element of array (noob level)](https://www.ruby-forum.com/t/firtst-and-only-element-of-array-noob-level/229733)

<div class="topic-metadata">

**Author:** [@liqid98](https://www.ruby-forum.com/u/liqid98)\
**Replies:** 6\
**Last updated:** [February 11, 2013, 2:51pm UTC](https://www.ruby-forum.com/t/firtst-and-only-element-of-array-noob-level/229733 "2013-02-11T14:51:41Z")

</div>

Hello people, Lets say i have arr = \[100\] and i = 100 Now i do calculation: i \* arr\[0\] ==\> 10000 # works ok but i \* arr ==\> Error Why arr != arr\[0\] with only one element in the array? And is there a way to ‘fre…

---

## [Setup Issues](https://www.ruby-forum.com/t/setup-issues/226585)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [January 11, 2013, 5:04pm UTC](https://www.ruby-forum.com/t/setup-issues/226585 "2013-01-11T17:04:12Z")

</div>

Hi…I’m excited to finally be checking out Rails but am have a terrible time getting the whole framework setup. I have 2 options, a windows based environment (XP3) or a Linux based environment (Ubuntu server 12.0.4) an…

---

## [Help on session in Ruby](https://www.ruby-forum.com/t/help-on-session-in-ruby/215951)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [January 23, 2012, 10:56pm UTC](https://www.ruby-forum.com/t/help-on-session-in-ruby/215951 "2012-01-23T22:56:51Z")

</div>

hi all, i have one issue after entering username and password on login popup and clicking login button the user is logged in but i have to refresh the url i have check the log but nothing is there,i have set the ses…

---

## [Regex Problem](https://www.ruby-forum.com/t/regex-problem/211645)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [September 9, 2011, 5:25pm UTC](https://www.ruby-forum.com/t/regex-problem/211645 "2011-09-09T17:25:38Z")

</div>

Hello all, I am trying to match this pattern: \>1\_9\_1912\_F3 Here is my stab at it: if f3\_entry =~ /(\>\_\_\*\_F3)/ f3\_out.puts f3\_entry end Obviously, it doesn’t work. I need to match whatever is between those underscor…

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

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