# Top

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

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

---

## [HELP: I can not install sqlite3 (evil gem)](https://www.ruby-forum.com/t/help-i-can-not-install-sqlite3-evil-gem/210603)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [August 11, 2011, 10:45pm UTC](https://www.ruby-forum.com/t/help-i-can-not-install-sqlite3-evil-gem/210603 "2011-08-11T22:45:34Z")

</div>

vmserver:~# gem install sqlite3 Building native extensions. This could take a while… ERROR: Error installing sqlite3: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb checking for sqlite3.h… …

---

## [Delay Loading Rails Views](https://www.ruby-forum.com/t/delay-loading-rails-views/202603)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 3, 2011, 4:40am UTC](https://www.ruby-forum.com/t/delay-loading-rails-views/202603 "2011-02-03T04:40:05Z")

</div>

Hi All, I’m having trouble with a Rails app and I can’t figure out what / where the problem is. From the logging and testing I’ve done, it looks like there is a consistent 3 second delay between the time that Rails f…

---

## [What happens between http requests?](https://www.ruby-forum.com/t/what-happens-between-http-requests/200970)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 4\
**Last updated:** [December 27, 2010, 11:13am UTC](https://www.ruby-forum.com/t/what-happens-between-http-requests/200970 "2010-12-27T11:13:48Z")

</div>

What happens in a Rails app between http requests? Is it torn down entirely and re-started at the next request? I know that’s a rather open-ended question, but the answer has implications for code such as: class User…

---

## [Preventing args other than list](https://www.ruby-forum.com/t/preventing-args-other-than-list/196320)

<div class="topic-metadata">

**Author:** [@mflive](https://www.ruby-forum.com/u/mflive)\
**Replies:** 4\
**Last updated:** [October 11, 2010, 11:41pm UTC](https://www.ruby-forum.com/t/preventing-args-other-than-list/196320 "2010-10-11T23:41:28Z")

</div>

Hi list, We’re having an upstream server that can accept many different parameters. Most query string parameters can be predefined in the backend itself but some cannot because they are unpredictable. We’d like to …

---

## [Using .sum](https://www.ruby-forum.com/t/using-sum/180329)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 4\
**Last updated:** [December 18, 2009, 7:45am UTC](https://www.ruby-forum.com/t/using-sum/180329 "2009-12-18T07:45:46Z")

</div>

I have three tables: artists, albums, songs. What I want is to find the total duration of all songs in a given album. Artist.first.albums.first.songs.collect{|x|x.duration} Of course, the above generates an array co…

---

## [Moving my app from Development to Production](https://www.ruby-forum.com/t/moving-my-app-from-development-to-production/178420)

<div class="topic-metadata">

**Author:** [@H.P.L](https://www.ruby-forum.com/u/H.P.L)\
**Replies:** 4\
**Last updated:** [November 4, 2009, 12:16pm UTC](https://www.ruby-forum.com/t/moving-my-app-from-development-to-production/178420 "2009-11-04T12:16:30Z")

</div>

I’m new to Rails, coming from Python (Django) and PHP (Zend), and have an issue trying to move my application from development to production. It’s a little mysterious to me, but I’m sure it’s something simple that I’v…

---

## [Unit Testing and Instance Vars](https://www.ruby-forum.com/t/unit-testing-and-instance-vars/172684)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 4\
**Last updated:** [July 25, 2009, 8:06pm UTC](https://www.ruby-forum.com/t/unit-testing-and-instance-vars/172684 "2009-07-25T20:06:35Z")

</div>

I find myself often wondering about some design choices that result from code which looks similar to the contrived example below. class Places attr\_reader :addresses def initialize(some\_source) @addresses = \[\] @…

---

## [Deaf Calculus](https://www.ruby-forum.com/t/deaf-calculus/169518)

<div class="topic-metadata">

**Author:** [@lynxinator](https://www.ruby-forum.com/u/lynxinator)\
**Replies:** 4\
**Last updated:** [June 4, 2009, 10:56pm UTC](https://www.ruby-forum.com/t/deaf-calculus/169518 "2009-06-04T22:56:09Z")

</div>

Hey, I am trying a variation of Deaf Grandma program that takes off of Tintin’s Character Professor Calculus. I tried to make it… But it did not work very well. Any help/advice?

---

## [Problem running rake test](https://www.ruby-forum.com/t/problem-running-rake-test/158199)

<div class="topic-metadata">

**Author:** [@safestate](https://www.ruby-forum.com/u/safestate)\
**Replies:** 4\
**Last updated:** [January 23, 2009, 12:48am UTC](https://www.ruby-forum.com/t/problem-running-rake-test/158199 "2009-01-23T00:48:01Z")

</div>

I’m using the One-click 1.8.7rc2 Ruby Windows installer, everything has been working fine up till now, when i want to start getting into testing, i got this error, any reason why? C:/Ruby/bin/ruby -Ilib;test “C:/Ruby/…

---

## [Using a method as input to another method](https://www.ruby-forum.com/t/using-a-method-as-input-to-another-method/157351)

<div class="topic-metadata">

**Author:** [@phoenixia](https://www.ruby-forum.com/u/phoenixia)\
**Replies:** 4\
**Last updated:** [January 9, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/using-a-method-as-input-to-another-method/157351 "2009-01-09T22:16:48Z")

</div>

Hi, I was wondering if it was possible to do something like the following: class A def b stuff end def c stuff end def d(x) self.x end end Then use thing.d(a) with thing an instance of A? Basically, given a…

---

## [Problem in Hash formatted output](https://www.ruby-forum.com/t/problem-in-hash-formatted-output/154426)

<div class="topic-metadata">

**Author:** [@jazzezravi](https://www.ruby-forum.com/u/jazzezravi)\
**Replies:** 4\
**Last updated:** [December 1, 2008, 5:07am UTC](https://www.ruby-forum.com/t/problem-in-hash-formatted-output/154426 "2008-12-01T05:07:29Z")

</div>

Hi All, I have an Array Like this @output=\[{“accounts”=\>\[“id”, “group\_id”, “company\_id”, “number”, “name”, “opening\_balance”, “description”, “editable”, “created\_at”, “updated\_at”, “source\_account”, “deleted\_status”,…

---

## [Simple Captcha](https://www.ruby-forum.com/t/simple-captcha/153077)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 4\
**Last updated:** [November 12, 2008, 5:38am UTC](https://www.ruby-forum.com/t/simple-captcha/153077 "2008-11-12T05:38:17Z")

</div>

Hello. Is “Simple Captcha” plugin the best way to implement Captcha (or similar functionality) in Rails? Thanks.

---

## [Production and development mode](https://www.ruby-forum.com/t/production-and-development-mode/152215)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [October 31, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/production-and-development-mode/152215 "2008-10-31T16:15:52Z")

</div>

Hi I would like to know the basic difference in running an application in development mode and production mode like ./script/server and ./script/server RAILS\_ENV=production Thanks in advance Sijo

---

## [Where the Required Things Are (#175)](https://www.ruby-forum.com/t/where-the-required-things-are-175/147714)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 4\
**Last updated:** [September 5, 2008, 12:15am UTC](https://www.ruby-forum.com/t/where-the-required-things-are-175/147714 "2008-09-05T00:15:23Z")

</div>

Great job on this quiz, everyone who submitted. I know I’ll be adding at least one of these submissions to my toolbox. Ten solutions were provided this week. I downloaded them all and tested each one in the manner req…

---

## [Nginx-0.7.13](https://www.ruby-forum.com/t/nginx-0-7-13/146916)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 4\
**Last updated:** [August 27, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/nginx-0-7-13/146916 "2008-08-27T23:00:16Z")

</div>

Changes with nginx 0.7.13 26 Aug 2008 \*) Bugfix: nginx could not be built on Linux and Solaris; the bug had appeared in 0.7.12.

---

## [Help with "find\_by\_sql" statement](https://www.ruby-forum.com/t/help-with-find-by-sql-statement/136813)

<div class="topic-metadata">

**Author:** [@Carson](https://www.ruby-forum.com/u/Carson)\
**Replies:** 4\
**Last updated:** [May 6, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/help-with-find-by-sql-statement/136813 "2008-05-06T21:27:01Z")

</div>

I’m trying to write a “find\_by\_sql” statement that selects with a WHERE clause comparing an attribute to an external value. My statement generates an error on the last line: def department # For menu display @depart…

---

## [Were to put a method](https://www.ruby-forum.com/t/were-to-put-a-method/133838)

<div class="topic-metadata">

**Author:** [@h4lfl1ng](https://www.ruby-forum.com/u/h4lfl1ng)\
**Replies:** 4\
**Last updated:** [April 10, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/were-to-put-a-method/133838 "2008-04-10T22:53:16Z")

</div>

i have this in my view, Parked at Loopia but it doesnt seem to work. im not sure what im doing wrong… it think i have the wrong syntax. i get “no block given” error on line 5 And what would be the better way to do …

---

## [Riprovo: network](https://www.ruby-forum.com/t/riprovo-network/122127)

<div class="topic-metadata">

**Author:** [@NicolSSSSBorghi](https://www.ruby-forum.com/u/NicolSSSSBorghi)\
**Replies:** 4\
**Last updated:** [December 4, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/riprovo-network/122127 "2007-12-04T22:17:55Z")

</div>

Mi sarebbe utile se mi diceste cosa mi serve sapere o se non potete assolutamente aiutarmi… vorrei costruire un network tipo slideshare http://www.slideshare.net/ o scribd http://www.scribd.com/ (entrambi sono stati …

---

## [Primary key storing strings](https://www.ruby-forum.com/t/primary-key-storing-strings/119361)

<div class="topic-metadata">

**Author:** [@Kless](https://www.ruby-forum.com/u/Kless)\
**Replies:** 4\
**Last updated:** [November 6, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/primary-key-storing-strings/119361 "2007-11-06T13:54:05Z")

</div>

Can a ‘:primary\_key’ to store strings or has to be integers? t.primary\_key :text\_code

---

## [Before\_filter at the method level](https://www.ruby-forum.com/t/before-filter-at-the-method-level/118218)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 4\
**Last updated:** [October 24, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/before-filter-at-the-method-level/118218 "2007-10-24T22:32:31Z")

</div>

I have used before\_filter in the passed at the class level but can it be used in the method level. For example, I want to refuse a non-admin type from being able to delete anything in the entire application. Is there…

---

## [Fugly hex](https://www.ruby-forum.com/t/fugly-hex/108697)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/fugly-hex/108697 "2007-09-25T23:10:53Z")

</div>

Recently I got a hard drive back from a drive recovery place after it had died a messy, violent, public death, like a Sopranos guest star. I had to restore 65,536 directories. Each directory contained some unknown (po…

---

## [Copy contents from one table to the other](https://www.ruby-forum.com/t/copy-contents-from-one-table-to-the-other/113828)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 4\
**Last updated:** [September 5, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/copy-contents-from-one-table-to-the-other/113828 "2007-09-05T15:12:19Z")

</div>

hello frnds I want to first connect to one table then fetch the desired value…store that in variable and then copy the contents of that variable to another table. Can you tell me how to do that? Thanks Dhaval P.

---

## [How to restrict deletion of ActiveRecord objects if there de](https://www.ruby-forum.com/t/how-to-restrict-deletion-of-activerecord-objects-if-there-de/110684)

<div class="topic-metadata">

**Author:** [@gneeot](https://www.ruby-forum.com/u/gneeot)\
**Replies:** 4\
**Last updated:** [July 30, 2007, 10:43am UTC](https://www.ruby-forum.com/t/how-to-restrict-deletion-of-activerecord-objects-if-there-de/110684 "2007-07-30T10:43:11Z")

</div>

Hi guys, Trying to find some way to restrict deletion of ActiveRecord objects if there dependent records. I’m thinking of using before\_destroy for it, but don’t know how to “cancel” deletion in my code in before\_dest…

---

## [OT: help with business natural language](https://www.ruby-forum.com/t/ot-help-with-business-natural-language/109916)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 4\
**Last updated:** [July 20, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/ot-help-with-business-natural-language/109916 "2007-07-20T20:03:53Z")

</div>

So today I finally had the time to sit down with racc and work on a natural language for defining recurring billing cycles. The racc part was actually pretty easy once I got a handle on how yacc works, but it’s the w…

---

## [Serious trouble on PPC with Ruby 1.8.6](https://www.ruby-forum.com/t/serious-trouble-on-ppc-with-ruby-1-8-6/92406)

<div class="topic-metadata">

**Author:** [@julik](https://www.ruby-forum.com/u/julik)\
**Replies:** 4\
**Last updated:** [May 9, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/serious-trouble-on-ppc-with-ruby-1-8-6/92406 "2007-05-09T15:16:37Z")

</div>

Hello fine folks of ruby-talk! I am taking some serious damage with the fresh ruby 1.8.6 after updating from 1.8.4 All the usual rituals were executed including flushing the /usr/local/ lib.ruby hierarchy. I rebuilt…

---

## [SOAP or XML-RPC](https://www.ruby-forum.com/t/soap-or-xml-rpc/92336)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 4\
**Last updated:** [April 18, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/soap-or-xml-rpc/92336 "2007-04-18T19:19:45Z")

</div>

I need to use a third party web service and have a choice between a SOAP or XML-RPC interface. I have never used either and was wondering what people recommend in general and which is best supported/friendly with Rai…

---

## [Link\_to\_remote not hitting controller](https://www.ruby-forum.com/t/link-to-remote-not-hitting-controller/89862)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 4\
**Last updated:** [March 23, 2007, 2:30pm UTC](https://www.ruby-forum.com/t/link-to-remote-not-hitting-controller/89862 "2007-03-23T14:30:47Z")

</div>

Hi. I have a link\_to\_remote that should call a function in controller that updates the page using rjs. The links are not hitting the controller. I click on the link and nothing happens in the log file. I suspect it …

---

## [Is mod\_fastcgi really required for Ruby/Apache 2?](https://www.ruby-forum.com/t/is-mod-fastcgi-really-required-for-ruby-apache-2/83002)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [January 23, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/is-mod-fastcgi-really-required-for-ruby-apache-2/83002 "2007-01-23T18:24:29Z")

</div>

Hi, I’m trying to install the latest version of Ruby to work with a just-newly installed Apache 2.2 module on my x86 Fedora Core 5 Linux machine. I read (http://wiki.rubyonrails.com/rails/pages/RailsOnFedora) that …

---

## [Sample rate nomenclature](https://www.ruby-forum.com/t/sample-rate-nomenclature/82136)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 4\
**Last updated:** [January 20, 2007, 12:26am UTC](https://www.ruby-forum.com/t/sample-rate-nomenclature/82136 "2007-01-20T00:26:23Z")

</div>

Hi guys, Q1: When using USRP source\_c (complex) with decimation == 8, am I getting 4 million complex samples per second? 64Mhz / 8 = 8MHz floats = 4MHz complex Q2: If I saved that data to a file and shared it with p…

---

## [RJS - What the the advantages? / Why use?](https://www.ruby-forum.com/t/rjs-what-the-the-advantages-why-use/82026)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [January 17, 2007, 4:45am UTC](https://www.ruby-forum.com/t/rjs-what-the-the-advantages-why-use/82026 "2007-01-17T04:45:45Z")

</div>

Hi, I’ve read up on RJS and understand the concept/how-to-use. It’s still not clear in my mind when and why to use RJS? Can anyone drop in a couple of bullet points re advantages + when/why would RJS make sense? …

---

## [Duda existencial :)](https://www.ruby-forum.com/t/duda-existencial/81302)

<div class="topic-metadata">

**Author:** [@Jairo\_Enrique\_Serra](https://www.ruby-forum.com/u/Jairo_Enrique_Serra)\
**Replies:** 4\
**Last updated:** [January 8, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/duda-existencial/81302 "2007-01-08T23:52:59Z")

</div>

soy nuevo por estos lados, siempre he trabajado en PHP y framworks como Prado o últimamente CakePhp. pero Rails… es otra cosa! hace mucho (desde que salio) queria probarlo, pero por trabajo y poco tiempo no podia, aho…

---

## [Time = .collect {|i| {i=\> Time.now.send(i).to\_i}}](https://www.ruby-forum.com/t/time-collect-i-i-time-now-send-i-to-i/77869)

<div class="topic-metadata">

**Author:** [@d0t1q](https://www.ruby-forum.com/u/d0t1q)\
**Replies:** 4\
**Last updated:** [December 2, 2006, 7:36am UTC](https://www.ruby-forum.com/t/time-collect-i-i-time-now-send-i-to-i/77869 "2006-12-02T07:36:51Z")

</div>

What’s the best way to make the first item below yield a hash instead of an array in one line? I’m struggling :frowning: #doesnt work time = \[“min”, “sec”\].collect {|i| {i=\> Time.now.send(i).to\_i}} puts time.type # A…

---

## [OT: form and multiple pics......pic included!](https://www.ruby-forum.com/t/ot-form-and-multiple-pics-pic-included/71378)

<div class="topic-metadata">

**Author:** [@koloa](https://www.ruby-forum.com/u/koloa)\
**Replies:** 4\
**Last updated:** [October 8, 2006, 4:10pm UTC](https://www.ruby-forum.com/t/ot-form-and-multiple-pics-pic-included/71378 "2006-10-08T16:10:23Z")

</div>

hi, i am creating a form for a recipe site and would like to make it as simple as possible. ive done some researching all day today and it seems that trying to upload multiple files on 1 form using ajax may not be the …

---

## [Code Behaviour, installing without SVN?](https://www.ruby-forum.com/t/code-behaviour-installing-without-svn/69521)

<div class="topic-metadata">

**Author:** [@djwmarks](https://www.ruby-forum.com/u/djwmarks)\
**Replies:** 4\
**Last updated:** [September 24, 2006, 4:23pm UTC](https://www.ruby-forum.com/t/code-behaviour-installing-without-svn/69521 "2006-09-24T16:23:53Z")

</div>

Hello, I’d like to know where to drop the files for this into. I can’t checkout using Subversion easily since I’m behind a Web Proxy (very annoying svn doesn’t know about the HTTP\_PROXY/http\_proxy) environment varia…

---

## [Implementation of mixins?](https://www.ruby-forum.com/t/implementation-of-mixins/96082)

<div class="topic-metadata">

**Author:** [@roggan](https://www.ruby-forum.com/u/roggan)\
**Replies:** 4\
**Last updated:** [June 25, 2006, 4:57pm UTC](https://www.ruby-forum.com/t/implementation-of-mixins/96082 "2006-06-25T16:57:55Z")

</div>

How are the mixins implemented in Ruby? are the code in the mixin module “injected” into the target class? eg: consumer --call–\> Taget or will the mixin related stuff live in some separate object and the target just…

---

## [Use join table in paginate](https://www.ruby-forum.com/t/use-join-table-in-paginate/61293)

<div class="topic-metadata">

**Author:** [@koenwarner](https://www.ruby-forum.com/u/koenwarner)\
**Replies:** 4\
**Last updated:** [May 23, 2006, 12:34am UTC](https://www.ruby-forum.com/t/use-join-table-in-paginate/61293 "2006-05-23T00:34:54Z")

</div>

How come I allways immediately run into difficult stuff when I’m trying some new programming language? Am I blind for the simplicity of Ruby/Rail, which a see must be there? Anyway, don’t try and answer this rhetoric …

---

## [Newbie needing help! How to read from database?](https://www.ruby-forum.com/t/newbie-needing-help-how-to-read-from-database/57794)

<div class="topic-metadata">

**Author:** [@tim](https://www.ruby-forum.com/u/tim)\
**Replies:** 4\
**Last updated:** [April 14, 2006, 9:16am UTC](https://www.ruby-forum.com/t/newbie-needing-help-how-to-read-from-database/57794 "2006-04-14T09:16:46Z")

</div>

I’ve read through all the articles online but most/all of it discusses the use of Scaffolding as a quick solution for reading/writing to a database. I follow all that but now I’m trying to simply get a field from a ta…

---

## [Development Environment](https://www.ruby-forum.com/t/development-environment/57232)

<div class="topic-metadata">

**Author:** [@zimro](https://www.ruby-forum.com/u/zimro)\
**Replies:** 4\
**Last updated:** [April 8, 2006, 8:50am UTC](https://www.ruby-forum.com/t/development-environment/57232 "2006-04-08T08:50:03Z")

</div>

I want to be able to code my rails apps either on my Desktop mac or my Powerbook using textmate. I want to build a Debian server that runs lighttpd, rails and mysql. Would I use samba on the server and access the file…

---

## [Controllers, models and views in plugins](https://www.ruby-forum.com/t/controllers-models-and-views-in-plugins/80217)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 4\
**Last updated:** [March 13, 2006, 6:37pm UTC](https://www.ruby-forum.com/t/controllers-models-and-views-in-plugins/80217 "2006-03-13T18:37:47Z")

</div>

Hello all, Is it possible to package controllers, models and views in a plugin? The tutorials for plugins seem rather sparse at the moment… I’ve written a form “widget” that I’ve been using as a partial that I would …

---

## [Update\_attribute with Validation?](https://www.ruby-forum.com/t/update-attribute-with-validation/54239)

<div class="topic-metadata">

**Author:** [@boram](https://www.ruby-forum.com/u/boram)\
**Replies:** 4\
**Last updated:** [February 28, 2006, 10:13am UTC](https://www.ruby-forum.com/t/update-attribute-with-validation/54239 "2006-02-28T10:13:10Z")

</div>

Does anyone know of a way to update individual attributes with validation? update\_attribute disables the validation checks in the record model, so I’m wondering if there’s a workaround for this. In my application, I w…

---

## [Moveable Type import question](https://www.ruby-forum.com/t/moveable-type-import-question/54082)

<div class="topic-metadata">

**Author:** [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Replies:** 4\
**Last updated:** [February 22, 2006, 5:36pm UTC](https://www.ruby-forum.com/t/moveable-type-import-question/54082 "2006-02-22T17:36:49Z")

</div>

Hello RoRsters’, I’ve just started my first project with ROR, and frankly it’s pretty amazing, there are many things that still haven’t “clicked” for me yet but essentially it’s all coming together. My first project …

---

## [Need Help with Globalize Plugin](https://www.ruby-forum.com/t/need-help-with-globalize-plugin/69589)

<div class="topic-metadata">

**Author:** [@donsdgr81](https://www.ruby-forum.com/u/donsdgr81)\
**Replies:** 4\
**Last updated:** [February 21, 2006, 1:04am UTC](https://www.ruby-forum.com/t/need-help-with-globalize-plugin/69589 "2006-02-21T01:04:52Z")

</div>

Hi everyone, I’ve been playing around with the Globalize plugin for some days now but I can’t seem to make it work properly with my models. I’m currently using Postgres 8.0 for the database and needed to make some mo…

---

## [Is this a bug?](https://www.ruby-forum.com/t/is-this-a-bug/95082)

<div class="topic-metadata">

**Author:** [@vivek](https://www.ruby-forum.com/u/vivek)\
**Replies:** 4\
**Last updated:** [January 12, 2006, 11:22am UTC](https://www.ruby-forum.com/t/is-this-a-bug/95082 "2006-01-12T11:22:29Z")

</div>

I have the below sample program. a=\[1,2,3,1\] b=\[1,\[2,4\],\[5,6,3\],4\] b.flatten! a.push b a.uniq! puts a The output it produces is 1 2 3 1 2 4 5 6 3 4 a.uniq! doesnt seem to work on the array created afte…

---

## [Oniguruma](https://www.ruby-forum.com/t/oniguruma/94529)

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 4\
**Last updated:** [January 6, 2006, 10:52pm UTC](https://www.ruby-forum.com/t/oniguruma/94529 "2006-01-06T22:52:12Z")

</div>

My understanding is that Oniguruma is standard in 1.9 and can be built into 1.8.x – correct? So my first two questions are: How to do a simple test that confirms whether or not Oniguruma is there? How to build t…

---

## [Many-to-Many: Where to add the children?](https://www.ruby-forum.com/t/many-to-many-where-to-add-the-children/51292)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 4\
**Last updated:** [December 29, 2005, 4:30pm UTC](https://www.ruby-forum.com/t/many-to-many-where-to-add-the-children/51292 "2005-12-29T16:30:54Z")

</div>

I have two classes Person and Job defined as follows: class Person \< ActiveRecord::Base :has\_and\_belongs\_to\_many jobs def add\_job(job\_name) job = Job.find\_by\_name(job\_name) # See if this job exists if job.nil? …

---

## [Locomotive 500 - Internal Server Error](https://www.ruby-forum.com/t/locomotive-500-internal-server-error/50687)

<div class="topic-metadata">

**Author:** [@douha](https://www.ruby-forum.com/u/douha)\
**Replies:** 4\
**Last updated:** [December 20, 2005, 9:24pm UTC](https://www.ruby-forum.com/t/locomotive-500-internal-server-error/50687 "2005-12-20T21:24:11Z")

</div>

I’m getting this in my Lighttp.error.log file when trying to run typo in Locomotive. What does this mean? 2005-12-19 16:56:57: (mod\_fastcgi.c.1532) connect failed: 9 Connection refused 61 0 /tmp/ruby-fastcgi.A5364CB4-…

---

## [Newbie questions about Rails on Windows](https://www.ruby-forum.com/t/newbie-questions-about-rails-on-windows/50337)

<div class="topic-metadata">

**Author:** [@juliangall](https://www.ruby-forum.com/u/juliangall)\
**Replies:** 4\
**Last updated:** [December 15, 2005, 2:12pm UTC](https://www.ruby-forum.com/t/newbie-questions-about-rails-on-windows/50337 "2005-12-15T14:12:16Z")

</div>

My background is Windows development using Visual Studio and I’m trying to get up to speed with Ruby on Rails, so please excuse these basic questions. I’ve downloaded InstantRails and can run the sample application - …

---

## [Has\_many or HABTM?](https://www.ruby-forum.com/t/has-many-or-habtm/48976)

<div class="topic-metadata">

**Author:** [@i8ramin](https://www.ruby-forum.com/u/i8ramin)\
**Replies:** 4\
**Last updated:** [November 28, 2005, 10:14pm UTC](https://www.ruby-forum.com/t/has-many-or-habtm/48976 "2005-11-28T22:14:29Z")

</div>

I can’t determine whether I should be using has\_many or has\_and\_belongs\_to\_many. I am creating a community type site with users. Users can add other users to their favorites or bookmark them. So each user has many fav…

---

## [Routes.rb](https://www.ruby-forum.com/t/routes-rb/193415)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 7\
**Last updated:** [August 17, 2010, 4:23pm UTC](https://www.ruby-forum.com/t/routes-rb/193415 "2010-08-17T16:23:15Z")

</div>

Hello All, In routes.rb, to create and access a new page everytime i need to write :page\_name =\> :any to my config/routes.rb. Can you guys tell me any better alternative to this? Thanks in advance.

---

## [Validating and using Kernal.System](https://www.ruby-forum.com/t/validating-and-using-kernal-system/189259)

<div class="topic-metadata">

**Author:** [@anon\_comp](https://www.ruby-forum.com/u/anon_comp)\
**Replies:** 7\
**Last updated:** [May 27, 2010, 9:55pm UTC](https://www.ruby-forum.com/t/validating-and-using-kernal-system/189259 "2010-05-27T21:55:41Z")

</div>

Ok so I have a RoR project that seems to be…unconventional lol I’m attempting to validate the name of the file and using Kernal.System to input the file in the system as a parameter. I’ve tried validates\_presence\_of, …

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

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