# Top

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

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

---

## [Detect suspicious activity with nginx](https://www.ruby-forum.com/t/detect-suspicious-activity-with-nginx/210506)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [August 13, 2011, 1:38am UTC](https://www.ruby-forum.com/t/detect-suspicious-activity-with-nginx/210506 "2011-08-13T01:38:37Z")

</div>

Hi guys We are looking for a way to detect suspicious activity on high-traffic websites. Parsing log files is not good option here, our current nginx config generates around 90G of logs for around 412K http requests e…

---

## [Error\_page for 413 not working on remote machine, but works on localhost](https://www.ruby-forum.com/t/error-page-for-413-not-working-on-remote-machine-but-works-on-localhost/208439)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [June 22, 2011, 7:44am UTC](https://www.ruby-forum.com/t/error-page-for-413-not-working-on-remote-machine-but-works-on-localhost/208439 "2011-06-22T07:44:37Z")

</div>

Hi all, I am trying to setup an error\_page for 413 (Too large uploads). It works perfectly fine on localhost, where it doesn’t work on my remote staging machine. There is no change in the configuration file (except f…

---

## [Removing items from "proxy\_cache"](https://www.ruby-forum.com/t/removing-items-from-proxy-cache/207966)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [June 7, 2011, 6:06pm UTC](https://www.ruby-forum.com/t/removing-items-from-proxy-cache/207966 "2011-06-07T18:06:24Z")

</div>

Been trying to find info about this, but the best I could find is some python binary to use in the SSH shell. I’m looking for a programmatic way – ideally in PHP – to manually invalidate certain items from the proxy c…

---

## [Multiple server\_name entries not working](https://www.ruby-forum.com/t/multiple-server-name-entries-not-working/207659)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [May 31, 2011, 1:51pm UTC](https://www.ruby-forum.com/t/multiple-server-name-entries-not-working/207659 "2011-05-31T13:51:07Z")

</div>

Nginx 1.0.3 I have a virtual host file with a simple config: server { listen 8080; server\_name domain.com www.domain.com; root /var/www/html/dm2011/pub; access\_log /var/log/nginx/access.log main; location …

---

## [Control characters in ruby](https://www.ruby-forum.com/t/control-characters-in-ruby/206014)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [April 21, 2011, 12:25am UTC](https://www.ruby-forum.com/t/control-characters-in-ruby/206014 "2011-04-21T00:25:50Z")

</div>

Hello all, I wanted to know how to accept control characters such as ESC, F1, F2 from a command line in Ruby. I’m working on Opensuse (11.1) Linux. – Cheers & Regards, Arun K. M S Systems Engineer, AVK systems, I…

---

## [Installing Ruby on Rails on ubuntu server](https://www.ruby-forum.com/t/installing-ruby-on-rails-on-ubuntu-server/196250)

<div class="topic-metadata">

**Author:** [@julianomoreira](https://www.ruby-forum.com/u/julianomoreira)\
**Replies:** 3\
**Last updated:** [October 11, 2010, 4:43pm UTC](https://www.ruby-forum.com/t/installing-ruby-on-rails-on-ubuntu-server/196250 "2010-10-11T16:43:02Z")

</div>

Hi, I’m a newbie in the Rubo on Rails world. I’m trying to install ruby on rails on a ubuntu server I have at home. The installation seems to be successful except that I’m getting this error when I go to public folder …

---

## [Selecting a variable number of individual items](https://www.ruby-forum.com/t/selecting-a-variable-number-of-individual-items/194340)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 3\
**Last updated:** [September 2, 2010, 10:12pm UTC](https://www.ruby-forum.com/t/selecting-a-variable-number-of-individual-items/194340 "2010-09-02T22:12:51Z")

</div>

I have a select field where I want to select a variable number of individual items. How would I set up a def to handle this? for example, one time I would select apples. Another time I would select pears, plums and gr…

---

## [Question of dual transmitter/receiver](https://www.ruby-forum.com/t/question-of-dual-transmitter-receiver/192126)

<div class="topic-metadata">

**Author:** [@YouheiFujii](https://www.ruby-forum.com/u/YouheiFujii)\
**Replies:** 3\
**Last updated:** [July 26, 2010, 4:00pm UTC](https://www.ruby-forum.com/t/question-of-dual-transmitter-receiver/192126 "2010-07-26T16:00:37Z")

</div>

Hi all, I’d like to ask some questions about dual transmitter/receiver on USRP1. I want to make dual transmitter/receiver by remodeling benchmark\_tx/rx.py. In detail, I want to use two daughterboard (two FLEX400) o…

---

## [Can't install gem](https://www.ruby-forum.com/t/cant-install-gem/191816)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 3\
**Last updated:** [July 19, 2010, 1:08pm UTC](https://www.ruby-forum.com/t/cant-install-gem/191816 "2010-07-19T13:08:22Z")

</div>

Hi guys, I did this a million times locally (OS X) and on a remote box (debian) but on a new box (debian too) I can’t install a local gem: \[deploy@vs7489 tmp\]$ jruby -s gem install scrubyt-0.9.10.gem Error opening s…

---

## [Ngx\_drizzle v0.0.8 and ngx\_rds\_json v0.05](https://www.ruby-forum.com/t/ngx-drizzle-v0-0-8-and-ngx-rds-json-v0-05/187057)

<div class="topic-metadata">

**Author:** [@agentzh](https://www.ruby-forum.com/u/agentzh)\
**Replies:** 3\
**Last updated:** [April 16, 2010, 11:34am UTC](https://www.ruby-forum.com/t/ngx-drizzle-v0-0-8-and-ngx-rds-json-v0-05/187057 "2010-04-16T11:34:22Z")

</div>

Hi, folks! On behalf of the ngx\_dbd team, I’m happy to announce the new releases of the ngx\_drizzle and ngx\_rds\_json modules. Here’s a brief list of (major) changes since their last releases: Fixed a nasty bug in n…

---

## [Files in lib directory not loading](https://www.ruby-forum.com/t/files-in-lib-directory-not-loading/185650)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 6, 2010, 10:28pm UTC](https://www.ruby-forum.com/t/files-in-lib-directory-not-loading/185650 "2010-04-06T22:28:10Z")

</div>

Hi there I’m trying to install this rack application: http://fuelyourcoding.com/set-rails-logging-on-fire/ However, my rails3 setup is not picking up my lib file: app/lib/rack/firebug\_logger.rb which contains: modu…

---

## [Block for continuous production of samples](https://www.ruby-forum.com/t/block-for-continuous-production-of-samples/184136)

<div class="topic-metadata">

**Author:** [@Daniele\_B](https://www.ruby-forum.com/u/Daniele_B)\
**Replies:** 3\
**Last updated:** [March 3, 2010, 4:58am UTC](https://www.ruby-forum.com/t/block-for-continuous-production-of-samples/184136 "2010-03-03T04:58:25Z")

</div>

Good morning, I need to implement a double 802.15.4-802.11b transmitter that transmits packets in asynchronous (or aperiodical) mode. I realized a simple program where the output of the two trasmitters are added toge…

---

## [Pretty URL's](https://www.ruby-forum.com/t/pretty-urls/183880)

<div class="topic-metadata">

**Author:** [@d2kagw](https://www.ruby-forum.com/u/d2kagw)\
**Replies:** 3\
**Last updated:** [February 23, 2010, 9:35am UTC](https://www.ruby-forum.com/t/pretty-urls/183880 "2010-02-23T09:35:19Z")

</div>

So I should start out saying that this is my first project in rails and I am really digging it. What I want to accomplish is the ability to use a dash in my URL’s. I have done some poking around but have not come up …

---

## [Rubygems: bad urls](https://www.ruby-forum.com/t/rubygems-bad-urls/181595)

<div class="topic-metadata">

**Author:** [@willwach](https://www.ruby-forum.com/u/willwach)\
**Replies:** 3\
**Last updated:** [January 15, 2010, 5:39am UTC](https://www.ruby-forum.com/t/rubygems-bad-urls/181595 "2010-01-15T05:39:08Z")

</div>

I patched ruby gems successfully so that it outputs ruby packages so that I can feed them into the Nix package manager system (www.nixos.org). One item of the generated output looks like this: jeremymcanally\_pending\_…

---

## [Walk with Nokogiri through whole DOM?](https://www.ruby-forum.com/t/walk-with-nokogiri-through-whole-dom/177107)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 3\
**Last updated:** [October 12, 2009, 5:29pm UTC](https://www.ruby-forum.com/t/walk-with-nokogiri-through-whole-dom/177107 "2009-10-12T17:29:35Z")

</div>

Hi all I want to walk with Nokogiri through the whole DOM of an HTML document and want to do some stuff to the elements; then save the whole DOM again (with the changes applied). I need something like that: dom.each…

---

## [Convert 2D array to cute text table with | pipes?](https://www.ruby-forum.com/t/convert-2d-array-to-cute-text-table-with-pipes/169348)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 3\
**Last updated:** [June 3, 2009, 2:26pm UTC](https://www.ruby-forum.com/t/convert-2d-array-to-cute-text-table-with-pipes/169348 "2009-06-03T14:26:02Z")

</div>

Ruboids: I have only started googling I will report back here what I find or write. Does anyone have a code snippet which reads a 2D array and outputs a cute formatted text table, like this? | concept | …

---

## [Using the mongrel\_cluster init.d script with camping apps?](https://www.ruby-forum.com/t/using-the-mongrel-cluster-init-d-script-with-camping-apps/168423)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 0\
**Last updated:** [May 20, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/using-the-mongrel-cluster-init-d-script-with-camping-apps/168423 "2009-05-20T18:18:18Z")

</div>

Can the init.d file (mongrel\_cluster-1.0.5/resources/mongrel\_cluster) be used to launch Camping apps as well? It looks like it just gets the yaml files from the conf directory and starts up the mongrels using those. A…

---

## [\[Bug:1.8\] Tempfile and extended Enumerable](https://www.ruby-forum.com/t/bug-1-8-tempfile-and-extended-enumerable/167510)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 3\
**Last updated:** [May 9, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/bug-1-8-tempfile-and-extended-enumerable/167510 "2009-05-09T16:30:04Z")

</div>

1.8.8dev e$B$G!"0J2\<$N$h$&$K!"e(BEnumerable e$B$Ke(B each2 e$B$rDj5A$7!“e(B Tempfile e$B$re(B each2 e$B$G7+$jJV$=$&$H$9$k$H!”%V%m%C%/$,8F$P$l$^$;e(B e$B$s!#e(B % cat tst.rb require ‘tempfile’ module Enumerable def…

---

## [Manually dc offset useful](https://www.ruby-forum.com/t/manually-dc-offset-useful/164365)

<div class="topic-metadata">

**Author:** [@feldmaus](https://www.ruby-forum.com/u/feldmaus)\
**Replies:** 3\
**Last updated:** [April 1, 2009, 3:10pm UTC](https://www.ruby-forum.com/t/manually-dc-offset-useful/164365 "2009-04-01T15:10:46Z")

</div>

Hi All, At this time i am thinking is the dc offset, which i tried to set up for my db LFRX, useful ? Or is it useful to disable the automatically dc offset loop ? The dc offset changes every time depending on the te…

---

## [Help with code](https://www.ruby-forum.com/t/help-with-code/163988)

<div class="topic-metadata">

**Author:** [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Replies:** 3\
**Last updated:** [March 26, 2009, 7:07pm UTC](https://www.ruby-forum.com/t/help-with-code/163988 "2009-03-26T19:07:52Z")

</div>

Hi everybody, first at ll sorry if my english is not the best. I’m trying to implement this javascript in my aplication: ItÂ´s a simple start rating implemented with javascript. ThereÂ´s no problem because I put it …

---

## [YAHosting inquiry (yet another hosting inquiry)](https://www.ruby-forum.com/t/yahosting-inquiry-yet-another-hosting-inquiry/163861)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 3\
**Last updated:** [March 25, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/yahosting-inquiry-yet-another-hosting-inquiry/163861 "2009-03-25T16:15:34Z")

</div>

i have read some of the posts here, but it seems like they may be a little dated, so i am posting this to the forum… i have a client who needs to have one smaller application hosted. initially, we set them up with a g…

---

## [Question on routes and default routes](https://www.ruby-forum.com/t/question-on-routes-and-default-routes/162910)

<div class="topic-metadata">

**Author:** [@techwiz18](https://www.ruby-forum.com/u/techwiz18)\
**Replies:** 3\
**Last updated:** [March 16, 2009, 12:20pm UTC](https://www.ruby-forum.com/t/question-on-routes-and-default-routes/162910 "2009-03-16T12:20:02Z")

</div>

Say I have a destroy action configured as the following map.foo ‘/foos/:id’, :controller =\> ‘foos’, :action =\> ‘show’, :conditions =\> { :method =\> :get } map.foo ‘/foos/:id’, :controller =\> ‘foos’, :action =\> ‘destroy…

---

## [Which behaves correctly, Hpricot or Nokogiri?](https://www.ruby-forum.com/t/which-behaves-correctly-hpricot-or-nokogiri/159197)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 3\
**Last updated:** [February 2, 2009, 9:01pm UTC](https://www.ruby-forum.com/t/which-behaves-correctly-hpricot-or-nokogiri/159197 "2009-02-02T21:01:14Z")

</div>

I’ve been considering switching to Nokogiri instead of Hpricot, mostly 'cause Mechanize has switched. However, the two actually behave quite differently. The Nokogiri objects don’t simulate standard container behavi…

---

## [Gr-howto-write-a-block seems broken, anybody working on it](https://www.ruby-forum.com/t/gr-howto-write-a-block-seems-broken-anybody-working-on-it/155169)

<div class="topic-metadata">

**Author:** [@Martin\_DvH](https://www.ruby-forum.com/u/Martin_DvH)\
**Replies:** 3\
**Last updated:** [December 9, 2008, 12:07am UTC](https://www.ruby-forum.com/t/gr-howto-write-a-block-seems-broken-anybody-working-on-it/155169 "2008-12-09T00:07:56Z")

</div>

Hi, gr-howto-write-a-block seems broken. When I try to bootstrap ./configure make Making all in lib make\[3\]: Entering directory \`/pub/projects/gnuradio/svn/trunk/gr-howto-write-a-block/src/lib’ /usr/bin/swig -c++…

---

## [Problema auto\_complete](https://www.ruby-forum.com/t/problema-auto-complete/153244)

<div class="topic-metadata">

**Author:** [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Replies:** 3\
**Last updated:** [November 14, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/problema-auto-complete/153244 "2008-11-14T16:54:40Z")

</div>

Hola, estoy intentando incorporar el plugin auto\_complete a mi aplicacion. Encontre un tutorial bastante interesante para novatos que me sirvio mucho, dejo el link por si alguien esta interesado: http://railsforum.com…

---

## [Code Review: Copy4](https://www.ruby-forum.com/t/code-review-copy4/150666)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 3\
**Last updated:** [October 13, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/code-review-copy4/150666 "2008-10-13T19:36:42Z")

</div>

tfpt review “/shelveset:Copy4;REDMOND\\tomat” Implements initialize\_copy for built-in classes. Removes assertion in Proc, it was wrong. Improves and fixes Kernel#send. Implements default protocol for to\_ary conversion…

---

## [ActiveRecord find in order for an array parameter](https://www.ruby-forum.com/t/activerecord-find-in-order-for-an-array-parameter/149254)

<div class="topic-metadata">

**Author:** [@wheels](https://www.ruby-forum.com/u/wheels)\
**Replies:** 3\
**Last updated:** [September 23, 2008, 8:03am UTC](https://www.ruby-forum.com/t/activerecord-find-in-order-for-an-array-parameter/149254 "2008-09-23T08:03:56Z")

</div>

How can i make ActiveRecord find in order for an array parameter? Ex. for Test.find(\[1, 2, 3, 4, 5\]) it should return test.id=1 as the first entry. Right, it just returns in a random order. thanks

---

## [Testunit: run single test](https://www.ruby-forum.com/t/testunit-run-single-test/145018)

<div class="topic-metadata">

**Author:** [@ruud\_grosmann](https://www.ruby-forum.com/u/ruud_grosmann)\
**Replies:** 3\
**Last updated:** [August 5, 2008, 11:57am UTC](https://www.ruby-forum.com/t/testunit-run-single-test/145018 "2008-08-05T11:57:28Z")

</div>

hello, I’d like to be able to run one or two testroutines from a Test::Unit::TestCase-object. Is that possible? For example: in test.rb: class TC\_fe \< Test::Unit::TestCase def test\_plus assert\_equal( 1+5, 6) end…

---

## [Parameters](https://www.ruby-forum.com/t/parameters/144785)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 8\
**Last updated:** [August 4, 2008, 8:17pm UTC](https://www.ruby-forum.com/t/parameters/144785 "2008-08-04T20:17:40Z")

</div>

\<% for post in @posts %\> \<%= link\_to\_remote “Edit”, :url =\> { :controller =\> “threads”, :action =\> :new\_req }, :with =\> “‘description=#{post.description}’” \<% end %\> When I make a post with the form and enter a desc…

---

## [\[newbie prob\] Errno::ECONNREFUSED in SayController#hello](https://www.ruby-forum.com/t/newbie-prob-errno-econnrefused-in-saycontroller-hello/144239)

<div class="topic-metadata">

**Author:** [@luckyzenn](https://www.ruby-forum.com/u/luckyzenn)\
**Replies:** 3\
**Last updated:** [July 27, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/newbie-prob-errno-econnrefused-in-saycontroller-hello/144239 "2008-07-27T20:45:43Z")

</div>

hello! i created a controller named ‘Say’ and added an action ‘hello’ into it. now i just wanted to call it with localhost:3000/say/hello but i get this error msg: Errno::ECONNREFUSED in SayController#hello here is …

---

## [Have you used the Rails SaaS kit?](https://www.ruby-forum.com/t/have-you-used-the-rails-saas-kit/138447)

<div class="topic-metadata">

**Author:** [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Replies:** 3\
**Last updated:** [May 26, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/have-you-used-the-rails-saas-kit/138447 "2008-05-26T14:31:43Z")

</div>

Have any of you actually bought & used the Rails SaaS kit? I am considering getting it to skip building out the admin & billing parts but I wanna get feedback from someone who has actually used it. Would you recommend…

---

## [Where to set a variable so it's loaded only once and available for all controllers?](https://www.ruby-forum.com/t/where-to-set-a-variable-so-its-loaded-only-once-and-available-for-all-controllers/131627)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 3\
**Last updated:** [March 21, 2008, 1:57am UTC](https://www.ruby-forum.com/t/where-to-set-a-variable-so-its-loaded-only-once-and-available-for-all-controllers/131627 "2008-03-21T01:57:41Z")

</div>

Hi, I’m using GeoIP that loads database file with countries when the GeoIP object is created. Where should I initialize this object, so it would be loaded only once (not for every request) and available for all contr…

---

## [AplicaciÃ³n ignora configuraciÃ³n YAML](https://www.ruby-forum.com/t/aplicacia-n-ignora-configuracia-n-yaml/131215)

<div class="topic-metadata">

**Author:** [@powerpuff-kuma](https://www.ruby-forum.com/u/powerpuff-kuma)\
**Replies:** 3\
**Last updated:** [March 7, 2008, 12:07am UTC](https://www.ruby-forum.com/t/aplicacia-n-ignora-configuracia-n-yaml/131215 "2008-03-07T00:07:45Z")

</div>

Hola foro: Estoy aprendiendo rails con el libro “Agile Web development with Rails” y como s epodran imaginar estoy un poco pegado con el scaffold. Estuve revisando otro hilo con respecto a esto (Rails2 y el generador…

---

## [Ruby screenshot?](https://www.ruby-forum.com/t/ruby-screenshot/130360)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 3\
**Last updated:** [February 27, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/ruby-screenshot/130360 "2008-02-27T22:57:03Z")

</div>

Is there any way I an take a screenshot and paste it to Word through Ruby. Here is hwat I have got. require ‘win32ole’ word = WIN32OLE.new(‘Word.Application’) #word.Visible = true document = word.Documents.Open(‘c:\\…

---

## [Doing error checking before saving my object to db?](https://www.ruby-forum.com/t/doing-error-checking-before-saving-my-object-to-db/129043)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [February 14, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/doing-error-checking-before-saving-my-object-to-db/129043 "2008-02-14T12:16:50Z")

</div>

Hi, I have two models – order and line\_item (with attributes item\_number and description) where an order has many line\_items. In my order controller, I have this action after a user has submitted his order: def …

---

## [Update quantity](https://www.ruby-forum.com/t/update-quantity/117842)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 3\
**Last updated:** [October 22, 2007, 6:02am UTC](https://www.ruby-forum.com/t/update-quantity/117842 "2007-10-22T06:02:55Z")

</div>

Hi, I added a field to my cart that allows you to update the quantity of the item but when I try to update the quantity I get an error: NoMethodError in CartController#update undefined method \`update\_attribute’ for #A…

---

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

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 3\
**Last updated:** [August 2, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/form-for-et-activeresource/108104 "2007-08-02T22:54:19Z")

</div>

Salut à tous, J’ai un model Profile en ARes. Dans mon application ARes, j’ai un formulaire de base qui me permet de créer des profiles ainsi: \<% form\_for(:profile, :url =\> profiles\_path) do |f| %\> First name …

---

## [Newbie question, writing to a file](https://www.ruby-forum.com/t/newbie-question-writing-to-a-file/110311)

<div class="topic-metadata">

**Author:** [@Jenny\_P](https://www.ruby-forum.com/u/Jenny_P)\
**Replies:** 3\
**Last updated:** [July 25, 2007, 8:41am UTC](https://www.ruby-forum.com/t/newbie-question-writing-to-a-file/110311 "2007-07-25T08:41:28Z")

</div>

I’m reading Learn To Program, which is based around Ruby code, and it has directions on how to write to a named file. It looks like following these directions, I want to do something like this, where “string” is the t…

---

## [Problem installing extension](https://www.ruby-forum.com/t/problem-installing-extension/103808)

<div class="topic-metadata">

**Author:** [@commander](https://www.ruby-forum.com/u/commander)\
**Replies:** 3\
**Last updated:** [May 12, 2007, 12:45pm UTC](https://www.ruby-forum.com/t/problem-installing-extension/103808 "2007-05-12T12:45:19Z")

</div>

Hi, I have just updated my radiant gem to the latest version. Then I created a new application which works fine so far. Then I installed the Gallery Extension from http://darcs.bigchieflabs.com/radiant/ extensions/ga…

---

## [Simple if then question?](https://www.ruby-forum.com/t/simple-if-then-question/93184)

<div class="topic-metadata">

**Author:** [@NeoWip](https://www.ruby-forum.com/u/NeoWip)\
**Replies:** 3\
**Last updated:** [April 28, 2007, 11:36pm UTC](https://www.ruby-forum.com/t/simple-if-then-question/93184 "2007-04-28T23:36:53Z")

</div>

I need to do a if field value = 1 then method but I cannot seem to find the right way /sytax for it. I have a rule table which contains a selector\_id field. If set to 1 then do A else do B. No matter what type of syn…

---

## [Ruby\_afrique](https://www.ruby-forum.com/t/ruby-afrique/91516)

<div class="topic-metadata">

**Author:** [@yaya](https://www.ruby-forum.com/u/yaya)\
**Replies:** 8\
**Last updated:** [April 11, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/ruby-afrique/91516 "2007-04-11T21:19:49Z")

</div>

Hello I discover ruby since a week and paste now all my time learning this interessant language. I feel like to translate some important doc or books (Ruby cookbook, ruby way) from english to french Looking for team…

---

## [Cygwin + TempFile + Dir.chdir = failure](https://www.ruby-forum.com/t/cygwin-tempfile-dir-chdir-failure/89586)

<div class="topic-metadata">

**Author:** [@vulpes](https://www.ruby-forum.com/u/vulpes)\
**Replies:** 3\
**Last updated:** [March 21, 2007, 6:11pm UTC](https://www.ruby-forum.com/t/cygwin-tempfile-dir-chdir-failure/89586 "2007-03-21T18:11:00Z")

</div>

I’m running ruby 1.8.5-3 for Cygwin under Win XP Pro SP 2. Here’s some code: require ‘tempfile’ Dir.chdir("./aDir") do Tempfile.open(“johndoe”, “.”) do |f| # Can be even empty end end With this code, the temporar…

---

## [Theming Tk with tile](https://www.ruby-forum.com/t/theming-tk-with-tile/88363)

<div class="topic-metadata">

**Author:** [@Sy\_Ali](https://www.ruby-forum.com/u/Sy_Ali)\
**Replies:** 3\
**Last updated:** [March 11, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/theming-tk-with-tile/88363 "2007-03-11T16:30:57Z")

</div>

I have a dream: My own GUI applications looking like other applications. I went hunting around for theming for Tk, and bumped into Tile\[1\]. Tk being legendarily ugly, tile represents a great new hope that with tile …

---

## [Help with customising the IRB prompt](https://www.ruby-forum.com/t/help-with-customising-the-irb-prompt/85933)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 3\
**Last updated:** [February 18, 2007, 4:43pm UTC](https://www.ruby-forum.com/t/help-with-customising-the-irb-prompt/85933 "2007-02-18T16:43:42Z")

</div>

Hi, I’m new to this newsgroup, so I’m not sure if this is the right place to ask. Ok, so what I’m trying to do is customise the IRB prompt in a rather complicated way: I want to print %i\*2 (or even just %i) spaces at …

---

## [How to populate a 2D array data into Excel using WIN32OLE](https://www.ruby-forum.com/t/how-to-populate-a-2d-array-data-into-excel-using-win32ole/78234)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 3\
**Last updated:** [December 4, 2006, 3:01pm UTC](https://www.ruby-forum.com/t/how-to-populate-a-2d-array-data-into-excel-using-win32ole/78234 "2006-12-04T15:01:19Z")

</div>

Hi all, I process a raw data file into a 2D array. The only way I can think of to populate it into Excel is to use the following lines, which is obviously not a good way: worksheet.Range(“A1:L1”).Value= f\_2D\_array\[0…

---

## [Bizarre mysql issue](https://www.ruby-forum.com/t/bizarre-mysql-issue/74390)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 8\
**Last updated:** [November 7, 2006, 11:06am UTC](https://www.ruby-forum.com/t/bizarre-mysql-issue/74390 "2006-11-07T11:06:32Z")

</div>

I am making an account confirmation system. Unfortunately, for some odd reason, the email’s authcode differs from mysql’s auth code. The email’s auth code is 84560046651013854756231785743141, yet mysql’s auth code is …

---

## [ActiveRecord and Oracle Views](https://www.ruby-forum.com/t/activerecord-and-oracle-views/72785)

<div class="topic-metadata">

**Author:** [@nate](https://www.ruby-forum.com/u/nate)\
**Replies:** 3\
**Last updated:** [October 19, 2006, 11:17pm UTC](https://www.ruby-forum.com/t/activerecord-and-oracle-views/72785 "2006-10-19T23:17:41Z")

</div>

Hi all, so I’m developing an app in Rails (first time, have been using Ruby a while), and I’m running into an issue with ActiveRecord. It doesn’t seem to like Oracle views. We have a large application where most stuff…

---

## [Dynamic fields and inheritance](https://www.ruby-forum.com/t/dynamic-fields-and-inheritance/71719)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 3\
**Last updated:** [October 17, 2006, 9:59am UTC](https://www.ruby-forum.com/t/dynamic-fields-and-inheritance/71719 "2006-10-17T09:59:31Z")

</div>

I have a model that allows subclasses to dynamically define fields. The following code is a short test case that illustrates the problem I’m having: class Product \< ActiveRecord::Base acts\_as\_ferret :fields =\> \[:name…

---

## [Adding dependant objects to an Index?](https://www.ruby-forum.com/t/adding-dependant-objects-to-an-index/70741)

<div class="topic-metadata">

**Author:** [@chubbard](https://www.ruby-forum.com/u/chubbard)\
**Replies:** 3\
**Last updated:** [October 4, 2006, 12:10pm UTC](https://www.ruby-forum.com/t/adding-dependant-objects-to-an-index/70741 "2006-10-04T12:10:11Z")

</div>

I have design question and I’m wondering what’s the best way to solve it. I’m trying to index HTML content where I have a single model object call it Article that is an acts\_as\_ferret model, and an article consists o…

---

## [Why Ruby on Rails?](https://www.ruby-forum.com/t/why-ruby-on-rails/67536)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 8\
**Last updated:** [September 5, 2006, 4:04am UTC](https://www.ruby-forum.com/t/why-ruby-on-rails/67536 "2006-09-05T04:04:49Z")

</div>

Before the question(s), let me stress that I don’t have ANY biases in any direction on this subject. I’ve been learning RoR and am very impressed by it; this is just a request to learn - not any type of flame bait. I…

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

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