# Top

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

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

---

## [Using Rails config /load path/etc from external app](https://www.ruby-forum.com/t/using-rails-config-load-path-etc-from-external-app/81586)

<div class="topic-metadata">

**Author:** [@brez](https://www.ruby-forum.com/u/brez)\
**Replies:** 2\
**Last updated:** [January 10, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/using-rails-config-load-path-etc-from-external-app/81586 "2007-01-10T20:13:59Z")

</div>

Kind of an off the wall question but I want to use the config / load path \[for models specifically\] in an external app that essentially loads the database for my rails app \[there’s transformations, processing involved…

---

## [Possible Bug when Creating Indexes](https://www.ruby-forum.com/t/possible-bug-when-creating-indexes/80914)

<div class="topic-metadata">

**Author:** [@henry74](https://www.ruby-forum.com/u/henry74)\
**Replies:** 2\
**Last updated:** [January 8, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/possible-bug-when-creating-indexes/80914 "2007-01-08T21:29:45Z")

</div>

I’m running: ferret (0.10.9) ruby 1.8.5 (2006-08-25) \[i386-mswin32\] on Windows XP(SP2) When I create an index as follows: field\_infos = FieldInfos.new(:store =\> :yes, :term\_vector =\> :no, :index =\> :yes) field\_inf…

---

## [RESTful routes - nested AND direct?](https://www.ruby-forum.com/t/restful-routes-nested-and-direct/81354)

<div class="topic-metadata">

**Author:** [@cjnkns](https://www.ruby-forum.com/u/cjnkns)\
**Replies:** 2\
**Last updated:** [January 8, 2007, 7:46am UTC](https://www.ruby-forum.com/t/restful-routes-nested-and-direct/81354 "2007-01-08T07:46:33Z")

</div>

I’m switching over to RESTful routing and was looking forward to using the nested routing to make things a lot more convenient. However I’ve found that I don’t seem to be able to use both nested routes AND “direct” RE…

---

## [Class name conflict](https://www.ruby-forum.com/t/class-name-conflict/71382)

<div class="topic-metadata">

**Author:** [@jigar](https://www.ruby-forum.com/u/jigar)\
**Replies:** 2\
**Last updated:** [October 8, 2006, 2:58pm UTC](https://www.ruby-forum.com/t/class-name-conflict/71382 "2006-10-08T14:58:12Z")

</div>

I have a model with name Module class Module \< ActiveRecord::Base set\_table\_name “modules” belongs\_to :tabs … end Some how I am getting error : “undefined method \`table\_name’ for Module:Class” I assume this is h…

---

## [How to pass const char \*vect\[\] to C via Ruby/DL?](https://www.ruby-forum.com/t/how-to-pass-const-char-vect-to-c-via-ruby-dl/62270)

<div class="topic-metadata">

**Author:** [@Andreas\_Haas](https://www.ruby-forum.com/u/Andreas_Haas)\
**Replies:** 2\
**Last updated:** [June 2, 2006, 2:56pm UTC](https://www.ruby-forum.com/t/how-to-pass-const-char-vect-to-c-via-ruby-dl/62270 "2006-06-02T14:56:35Z")

</div>

Hi all, I’m having problems to understand how to build-up “const char \*vect\[\]” data for passing to a C function that I wish to call via Ruby/DL: ----------------- int setv(const char \*ids\[\]) { while (\*ids) { print…

---

## [\[ANN\] MASC = A New Way to Use Textmate Snippets](https://www.ruby-forum.com/t/ann-masc-a-new-way-to-use-textmate-snippets/58897)

<div class="topic-metadata">

**Author:** [@Duane\_J](https://www.ruby-forum.com/u/Duane_J)\
**Replies:** 2\
**Last updated:** [April 27, 2006, 1:47am UTC](https://www.ruby-forum.com/t/ann-masc-a-new-way-to-use-textmate-snippets/58897 "2006-04-27T01:47:00Z")

</div>

Just thought I’d announce this on the Rails list since I know several of you use Textmate: there’s a new feature I’m calling “Multiple Arbitrary Simultaneous Carets” or MASC for short, which is available in my persona…

---

## [DATA.readlines in an inner file](https://www.ruby-forum.com/t/data-readlines-in-an-inner-file/55759)

<div class="topic-metadata">

**Author:** [@agorilla](https://www.ruby-forum.com/u/agorilla)\
**Replies:** 2\
**Last updated:** [March 23, 2006, 9:05pm UTC](https://www.ruby-forum.com/t/data-readlines-in-an-inner-file/55759 "2006-03-23T21:05:53Z")

</div>

Is there any way to use DATA.readlines to read the data (below END) in a file that’s been required/included? I want the read code to be inside the included/required file.

---

## [Problem with multiple collection\_select](https://www.ruby-forum.com/t/problem-with-multiple-collection-select/89618)

<div class="topic-metadata">

**Author:** [@Stan\_Shore](https://www.ruby-forum.com/u/Stan_Shore)\
**Replies:** 2\
**Last updated:** [January 6, 2006, 11:01pm UTC](https://www.ruby-forum.com/t/problem-with-multiple-collection-select/89618 "2006-01-06T23:01:13Z")

</div>

I am trying to allow the user to select more than one value from a selection list. Here is the code: \<%= collection\_select(:transition, :complete\_tasks, @permissions, :id, :path, “”, {:size =\> “10”, :multiple =\> true…

---

## [Boolean Fields](https://www.ruby-forum.com/t/boolean-fields/96019)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 2\
**Last updated:** [November 18, 2005, 2:20pm UTC](https://www.ruby-forum.com/t/boolean-fields/96019 "2005-11-18T14:20:52Z")

</div>

Does anyone have experience with using boolean fields (Postgres here, but I assume it’s the same on MySQL)? Is there any reason the scaffold generator explicitly writes out the whole tags rather than use select help…

---

## [Modules and models](https://www.ruby-forum.com/t/modules-and-models/47607)

<div class="topic-metadata">

**Author:** [@silvano.stralla](https://www.ruby-forum.com/u/silvano.stralla)\
**Replies:** 2\
**Last updated:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/modules-and-models/47607 "2005-11-12T12:49:45Z")

</div>

Hello! I have a question on using modules with models. If I do, for example, “script/generate controller Section::Users” Rails creates /controllers/section/users\_controller.rb which contains: class Section::UsersCont…

---

## [Ruby beginner -- question regarding a challenge problem I came across](https://www.ruby-forum.com/t/ruby-beginner-question-regarding-a-challenge-problem-i-came-across/243842)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [January 16, 2016, 10:16pm UTC](https://www.ruby-forum.com/t/ruby-beginner-question-regarding-a-challenge-problem-i-came-across/243842 "2016-01-16T22:16:13Z")

</div>

Please take a look at attached picture. I’m having trouble understanding sum = 0 (num + 1).times do |x| sum = sum + x Why did he set sum = 0. Why did he do (num + 1).times do |x|? And Why did he do sum = sum + x? T…

---

## [Pipe data from GRC through shell command (like gr-pipe in 3.6)?](https://www.ruby-forum.com/t/pipe-data-from-grc-through-shell-command-like-gr-pipe-in-3-6/233472)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [December 17, 2014, 1:32am UTC](https://www.ruby-forum.com/t/pipe-data-from-grc-through-shell-command-like-gr-pipe-in-3-6/233472 "2014-12-17T01:32:28Z")

</div>

I want to pipe data from GRC “through” a command running in the linux shell. I found gr-pipe on github, but it seems to be for 3.6 only. Until now I have used file sinks / sources and FIFOs, but this is inconvenient a…

---

## [\[ruby-trunk - misc #9981\] Net::SMTP#send\_message が大量の write(2) を発行す](https://www.ruby-forum.com/t/ruby-trunk-misc-9981-net-smtp-send-message-write-2/230895)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 11, 2014, 4:13pm UTC](https://www.ruby-forum.com/t/ruby-trunk-misc-9981-net-smtp-send-message-write-2/230895 "2014-07-11T16:13:07Z")

</div>

Issue #9981 has been updated by Hiroshi SHIBATA. どなたか SMTP にお詳しい方はいらっしゃいませんか. misc #9981: Net::SMTP#send\_message が大量の write(2) を発行する Author: Masahiro T. Status: Open Priority: Normal Assignee: Category: Target vers…

---

## [Error in rubyracer installation](https://www.ruby-forum.com/t/error-in-rubyracer-installation/228905)

<div class="topic-metadata">

**Author:** [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Replies:** 1\
**Last updated:** [May 12, 2013, 4:16pm UTC](https://www.ruby-forum.com/t/error-in-rubyracer-installation/228905 "2013-05-12T16:16:28Z")

</div>

My OS : Windows 7. I am actually working with my friends with Github, but 2 days before ,one of my friend has inputed Therubyracer and pushed it to Github. After that i was trying to run the program as normally and th…

---

## [How to show different markers for current location and nearby locations in gmaps4rails](https://www.ruby-forum.com/t/how-to-show-different-markers-for-current-location-and-nearby-locations-in-gmaps4rails/225592)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [January 17, 2013, 9:47am UTC](https://www.ruby-forum.com/t/how-to-show-different-markers-for-current-location-and-nearby-locations-in-gmaps4rails/225592 "2013-01-17T09:47:02Z")

</div>

Hai guys, Iam using gmaps4rails to show gmaps in my application.iam getting the map pointa right but iam unable to differentiate the current location and nerby locations in my map.my idea is to use different markers …

---

## [Turning on the profiler when running in embedded mode](https://www.ruby-forum.com/t/turning-on-the-profiler-when-running-in-embedded-mode/221849)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [August 2, 2012, 2:41pm UTC](https://www.ruby-forum.com/t/turning-on-the-profiler-when-running-in-embedded-mode/221849 "2012-08-02T14:41:51Z")

</div>

Hi all. I see that JRuby has added a built-in profiler. I can see that adding --profile.graph works when running JRuby standalone, but I can’t seem to find the equivalent for running in embedded mode. Is there a way…

---

## [Problems with TLS SNI Server Name Indication when using IE9](https://www.ruby-forum.com/t/problems-with-tls-sni-server-name-indication-when-using-ie9/218175)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 23, 2012, 1:24pm UTC](https://www.ruby-forum.com/t/problems-with-tls-sni-server-name-indication-when-using-ie9/218175 "2012-03-23T13:24:41Z")

</div>

Hi there, For those successfully using TLS SNi for https servers. My IE9 (on Windows7 64 bit) fails to trigger the correct nginx virtual https server name and SSL certificate (It ignores all except the default -1st …

---

## [Looking for way to test for an unsaved record in Rails 3](https://www.ruby-forum.com/t/looking-for-way-to-test-for-an-unsaved-record-in-rails-3/210247)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [August 3, 2011, 7:37am UTC](https://www.ruby-forum.com/t/looking-for-way-to-test-for-an-unsaved-record-in-rails-3/210247 "2011-08-03T07:37:17Z")

</div>

I need to do an html delete if the record isn’t saved, so in Rails 2, all I had to do was: \<% if person\_form.object.new\_record? %\> \<%= link\_to\_function “Delete”, “delete\_row()” %\> \<% else %\> … object doesn’t seem t…

---

## [Ruby 1.9.2-p136 is released](https://www.ruby-forum.com/t/ruby-1-9-2-p136-is-released/200935)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [December 25, 2010, 5:53pm UTC](https://www.ruby-forum.com/t/ruby-1-9-2-p136-is-released/200935 "2010-12-25T17:53:25Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ruby is released on Christmas. So here you are. Ruby 1.9.2-p136 has been released. This is the second release of Ruby 1.9.2. It fixes many bugs found in 1.9.2-p0. See C…

---

## [How to use proxy\_set\_header set Cookie](https://www.ruby-forum.com/t/how-to-use-proxy-set-header-set-cookie/191305)

<div class="topic-metadata">

**Author:** [@yaoxinming](https://www.ruby-forum.com/u/yaoxinming)\
**Replies:** 1\
**Last updated:** [July 10, 2010, 2:47pm UTC](https://www.ruby-forum.com/t/how-to-use-proxy-set-header-set-cookie/191305 "2010-07-10T14:47:58Z")

</div>

I user a nginx to proxy a java web server,and want to add a cookie when proxy the url,my config : location /el { proxy\_set\_header Cookie “mysession=$arg\_ccvalue”; proxy\_pass http://172.16.1.30:8080/trance; } b…

---

## [Nfc 2.0.0 Released](https://www.ruby-forum.com/t/nfc-2-0-0-released/173412)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 1\
**Last updated:** [August 9, 2009, 11:05pm UTC](https://www.ruby-forum.com/t/nfc-2-0-0-released/173412 "2009-08-09T23:05:34Z")

</div>

nfc version 2.0.0 has been released! http://seattlerb.rubyforge.org NFC is a ruby wrapper for the Near Field Communication library. The Near Field Communication library works with many USB RFID readers, so this ge…

---

## [Dbi](https://www.ruby-forum.com/t/dbi/159795)

<div class="topic-metadata">

**Author:** [@henriklarsen](https://www.ruby-forum.com/u/henriklarsen)\
**Replies:** 1\
**Last updated:** [February 9, 2009, 12:26pm UTC](https://www.ruby-forum.com/t/dbi/159795 "2009-02-09T12:26:37Z")

</div>

Hi everyone, I have a problem connecting my application to a database. I think this is a ruby problem though Im running ruby on rails, but let me explain. The thing is that I want to execute queries upon several diffe…

---

## [Hpricot query](https://www.ruby-forum.com/t/hpricot-query/147122)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 7\
**Last updated:** [August 28, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/hpricot-query/147122 "2008-08-28T18:07:25Z")

</div>

Hi all, I have a question about Hpricot: I’m trying to parse an XML document (a google calendar feed), but I have problems when I try to get attributes of a tag with a namespace (ie: a colon). Here’s my code for this…

---

## [Problem with array](https://www.ruby-forum.com/t/problem-with-array/144496)

<div class="topic-metadata">

**Author:** [@andrewdon](https://www.ruby-forum.com/u/andrewdon)\
**Replies:** 7\
**Last updated:** [July 30, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/problem-with-array/144496 "2008-07-30T21:08:01Z")

</div>

I have a list of 3 “report\_admins” in my database, and when I send an email I need to email to go to all 3 admins, So in the controller I put… @report\_admins = ReportAdmin.find(:all) Then I told ActionMailer this… @…

---

## [Showing another controllers action](https://www.ruby-forum.com/t/showing-another-controllers-action/142725)

<div class="topic-metadata">

**Author:** [@jsamildanach](https://www.ruby-forum.com/u/jsamildanach)\
**Replies:** 7\
**Last updated:** [July 11, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/showing-another-controllers-action/142725 "2008-07-11T18:35:38Z")

</div>

If I am in controller A and I want to show the index of controller B, how would I do that?

---

## [Attributes not being santised](https://www.ruby-forum.com/t/attributes-not-being-santised/134729)

<div class="topic-metadata">

**Author:** [@Farrel](https://www.ruby-forum.com/u/Farrel)\
**Replies:** 7\
**Last updated:** [April 15, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/attributes-not-being-santised/134729 "2008-04-15T12:16:19Z")

</div>

I’m using a postgres database and have run into problems where attributes on a model are not sanitised correctly before being saved. The following code: comment = Comment.new( :item =\> item ) comment.comment = “dog’s…

---

## [Unit-Test fÃ¼r Modell mit \_attributes setter](https://www.ruby-forum.com/t/unit-test-fa-r-modell-mit-attributes-setter/123875)

<div class="topic-metadata">

**Author:** [@rbjl](https://www.ruby-forum.com/u/rbjl)\
**Replies:** 1\
**Last updated:** [December 23, 2007, 2:21pm UTC](https://www.ruby-forum.com/t/unit-test-fa-r-modell-mit-attributes-setter/123875 "2007-12-23T14:21:45Z")

</div>

ja hallo erstmal,… derzeit stehe ich vor dem Problemen, einen unit-Test für eine Klasse schreiben zu müssen, die einen Attribute-Setter für eine fields\_for Umgebung verwendet. (Analog zu project.rb aus #75 Complex Fo…

---

## [Job System user authentications problems](https://www.ruby-forum.com/t/job-system-user-authentications-problems/123048)

<div class="topic-metadata">

**Author:** [@Waleed\_H](https://www.ruby-forum.com/u/Waleed_H)\
**Replies:** 7\
**Last updated:** [December 13, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/job-system-user-authentications-problems/123048 "2007-12-13T21:15:31Z")

</div>

Hi All, I have created sample job application which contain employers area, admin area and I am using Mysql database. I have created job post area or form via scaffold then I created authenticated area for employers …

---

## [Savage Beast plugin](https://www.ruby-forum.com/t/savage-beast-plugin/119612)

<div class="topic-metadata">

**Author:** [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Replies:** 7\
**Last updated:** [November 8, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/savage-beast-plugin/119612 "2007-11-08T16:49:48Z")

</div>

Does anyone have a copy of the Savage Beast plugin? I’m trying to setup a project using it, but the entire site for http://nnovation.ca seems to be down since August. Anything would be greatly appreciated. Thank you…

---

## [Book about design pattern](https://www.ruby-forum.com/t/book-about-design-pattern/118693)

<div class="topic-metadata">

**Author:** [@coolgeng\_coolgeng](https://www.ruby-forum.com/u/coolgeng_coolgeng)\
**Replies:** 7\
**Last updated:** [October 30, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/book-about-design-pattern/118693 "2007-10-30T14:05:55Z")

</div>

Dear all, I have some base knowledge about ruby on rails. Is there some perfect book about design pattern? Thanks

---

## [A 'require' question](https://www.ruby-forum.com/t/a-require-question/81279)

<div class="topic-metadata">

**Author:** [@bbiker](https://www.ruby-forum.com/u/bbiker)\
**Replies:** 7\
**Last updated:** [September 25, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/a-require-question/81279 "2007-09-25T22:50:40Z")

</div>

When you have multiple versions of a gem, “require ‘gemxxx’” loads in the latest version. How can you specify a specific version (or some other constraint)? The ri documentation for require is of no help. Kernel#req…

---

## [Can't Marshal.dump a Java object (from using Rjb)](https://www.ruby-forum.com/t/cant-marshal-dump-a-java-object-from-using-rjb/88048)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [March 7, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/cant-marshal-dump-a-java-object-from-using-rjb/88048 "2007-03-07T22:05:00Z")

</div>

All, I have a Ruby object that actually encapsulates a Java object - I got it by using Rjb to talk to a Java library. When I attempt to marshal it, I get the following error: “can’t dump anonymous class” If Rjb retu…

---

## [Downloading files from database](https://www.ruby-forum.com/t/downloading-files-from-database/73560)

<div class="topic-metadata">

**Author:** [@adamonduty](https://www.ruby-forum.com/u/adamonduty)\
**Replies:** 7\
**Last updated:** [November 27, 2006, 7:56pm UTC](https://www.ruby-forum.com/t/downloading-files-from-database/73560 "2006-11-27T19:56:19Z")

</div>

hallo everybody, i got a weird problem with some code i wrote. it’s a function to save files to the database and later download them again. the weird thing is, that on my home machine everything is working correctly,…

---

## [Missing models after generating an Engine](https://www.ruby-forum.com/t/missing-models-after-generating-an-engine/100756)

<div class="topic-metadata">

**Author:** [@fbeausoleil](https://www.ruby-forum.com/u/fbeausoleil)\
**Replies:** 1\
**Last updated:** [August 3, 2006, 2:24pm UTC](https://www.ruby-forum.com/t/missing-models-after-generating-an-engine/100756 "2006-08-03T14:24:43Z")

</div>

Hi all ! I am extracting chunks of code into engines from an existing app. One model I’m extracting is Recipient. I followed the LoginEngine convention: app/models/recipient.rb: class Recipient \< AR::Base include …

---

## [Cannot compile Fox toolkit on cygwin](https://www.ruby-forum.com/t/cannot-compile-fox-toolkit-on-cygwin/95070)

<div class="topic-metadata">

**Author:** [@uncutstone](https://www.ruby-forum.com/u/uncutstone)\
**Replies:** 1\
**Last updated:** [May 21, 2006, 5:58pm UTC](https://www.ruby-forum.com/t/cannot-compile-fox-toolkit-on-cygwin/95070 "2006-05-21T17:58:33Z")

</div>

Here is the info about the enviroment: cygwin version 2.427 window 98 Fox-1.4.6 I did: ./configure --disable-shared make then I got: FXApp.cpp:3293: warning: unused variable const FXchar\*d' fxpriv.h: In functionF…

---

## [Add Objects to personal List](https://www.ruby-forum.com/t/add-objects-to-personal-list/229508)

<div class="topic-metadata">

**Author:** [@sirjay](https://www.ruby-forum.com/u/sirjay)\
**Replies:** 5\
**Last updated:** [February 9, 2013, 2:38pm UTC](https://www.ruby-forum.com/t/add-objects-to-personal-list/229508 "2013-02-09T14:38:36Z")

</div>

Hey there! I’m developing a Game Database where every User can Add Titles to the list, for everyone to see (like imdb). But Also I want to add game titles to a personal list. How Do I do that? So far everything is wo…

---

## [Need help to get output](https://www.ruby-forum.com/t/need-help-to-get-output/222611)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [September 4, 2012, 12:50am UTC](https://www.ruby-forum.com/t/need-help-to-get-output/222611 "2012-09-04T00:50:33Z")

</div>

Hi I am quite new to ruby and i need to get couple of output with bellow Result i need something like member0 Slot 0 Memory utilization 30 member0 Slot 1 Memory utilization 30 member1 Slot 0 M…

---

## [Different between these two array method](https://www.ruby-forum.com/t/different-between-these-two-array-method/221139)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [July 2, 2012, 11:48am UTC](https://www.ruby-forum.com/t/different-between-these-two-array-method/221139 "2012-07-02T11:48:54Z")

</div>

Dear friends, What is different between these two array method. First Array Method arr = ps\_array\["1"\] arr += ps\_array\["2"\] arr += ps\_array\["3"\] Second Array Method arr = \[ps\_array\["1"\],ps\_array\["2"\],ps\_arr…

---

## [ERB or Haml?](https://www.ruby-forum.com/t/erb-or-haml/212496)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [October 5, 2011, 5:07pm UTC](https://www.ruby-forum.com/t/erb-or-haml/212496 "2011-10-05T17:07:36Z")

</div>

ERB or Haml? Vote here: https://groups.google.com/forum/#!topic/columbusrb/drKGNJFX5pQ

---

## [Read .csv file. Cant obtain data](https://www.ruby-forum.com/t/read-csv-file-cant-obtain-data/201635)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [January 12, 2011, 1:35pm UTC](https://www.ruby-forum.com/t/read-csv-file-cant-obtain-data/201635 "2011-01-12T13:35:22Z")

</div>

Here is the code i use: #!/usr/bin/ruby require ‘rubygems’ require ‘csv’ ctr = 0 @data = \[\] CSV.foreach(‘C:/Users/nizam/test\_q.csv’) do |row| @data \<\< row puts “#{row\[0\]} | #{row\[1\]}” #unless row\[1\] =~ /^\[x\] ct…

---

## [Multiple versions on a server?](https://www.ruby-forum.com/t/multiple-versions-on-a-server/199771)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 5\
**Last updated:** [November 29, 2010, 10:17am UTC](https://www.ruby-forum.com/t/multiple-versions-on-a-server/199771 "2010-11-29T10:17:18Z")

</div>

Hey guys, I’m wondering if it’s possible to run multiple Ruby versions at the same time in production mode. I got some older Rails apps that need to run in Ruby 1.8.7 and some newer ones requiring 1.9.1. How can I ru…

---

## [How do you access attributes in form templates?](https://www.ruby-forum.com/t/how-do-you-access-attributes-in-form-templates/190034)

<div class="topic-metadata">

**Author:** [@dee](https://www.ruby-forum.com/u/dee)\
**Replies:** 5\
**Last updated:** [June 17, 2010, 4:34pm UTC](https://www.ruby-forum.com/t/how-do-you-access-attributes-in-form-templates/190034 "2010-06-17T16:34:43Z")

</div>

I have a Survey-Response application, where surveys can be created with an arbitrary number of questions, and users can respond to an arbitrary number of surveys. A Survey has\_many Questions and has\_many Responses. Bo…

---

## [Has\_many comments, belongs to post](https://www.ruby-forum.com/t/has-many-comments-belongs-to-post/186262)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 5\
**Last updated:** [April 4, 2010, 10:07am UTC](https://www.ruby-forum.com/t/has-many-comments-belongs-to-post/186262 "2010-04-04T10:07:01Z")

</div>

I made a posts scaffold, and a comments scaffold Now i want to link the two of them together by – Post– has\_many :comments and comments- belongs\_to :post After that, I have no idea what to do in the controller or f…

---

## [Asynchronous network access with Rack?](https://www.ruby-forum.com/t/asynchronous-network-access-with-rack/184809)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 5\
**Last updated:** [March 9, 2010, 10:46am UTC](https://www.ruby-forum.com/t/asynchronous-network-access-with-rack/184809 "2010-03-09T10:46:24Z")

</div>

I’ve read that “threading is considered harmful” for Ruby web apps. Well, I’m writing a Sinatra app which will build a page based on the responses of several servers (Net::HTTP.get). I want to do these .gets in parall…

---

## [Unwanted call to validates\_associated](https://www.ruby-forum.com/t/unwanted-call-to-validates-associated/177986)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 5\
**Last updated:** [October 28, 2009, 11:45am UTC](https://www.ruby-forum.com/t/unwanted-call-to-validates-associated/177986 "2009-10-28T11:45:30Z")

</div>

In my schema, a question has\_many :answers. When the validations are run on a question, and one of the answers is not valid, then i get “Answers is not valid” coming out of errors.full\_messages. I don’t want this, i…

---

## [Receiving Authentication Error](https://www.ruby-forum.com/t/receiving-authentication-error/173187)

<div class="topic-metadata">

**Author:** [@monocat](https://www.ruby-forum.com/u/monocat)\
**Replies:** 5\
**Last updated:** [August 6, 2009, 11:52am UTC](https://www.ruby-forum.com/t/receiving-authentication-error/173187 "2009-08-06T11:52:43Z")

</div>

Hi. A newbie. I installed/upgraded all the proper (at least that I know of) apps needed to run ruby on rails on a mac, but keep receiving mysql errors. The default page works fine, but as soon as I try a simple “hello…

---

## [XMLRPC calling question](https://www.ruby-forum.com/t/xmlrpc-calling-question/161172)

<div class="topic-metadata">

**Author:** [@Don\_F](https://www.ruby-forum.com/u/Don_F)\
**Replies:** 5\
**Last updated:** [February 24, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/xmlrpc-calling-question/161172 "2009-02-24T17:27:09Z")

</div>

I have a mashup I need to d with a site that uses xmlrpc. I am trying to understand the the call method. I have the following items that need to be passed to the remote site. methodName and the following structure …

---

## [Difference between Foo = Class.new and class Foo](https://www.ruby-forum.com/t/difference-between-foo-class-new-and-class-foo/150350)

<div class="topic-metadata">

**Author:** [@bdimcheff](https://www.ruby-forum.com/u/bdimcheff)\
**Replies:** 5\
**Last updated:** [October 7, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/difference-between-foo-class-new-and-class-foo/150350 "2008-10-07T18:04:23Z")

</div>

I’m playing around with classes and discovered that class Foo … end and Foo = Class.new do … end seem to behave slightly differently. I assumed that “class Foo” was just a shortcut that got translated into “Foo…

---

## [Testing tutorials needed](https://www.ruby-forum.com/t/testing-tutorials-needed/146541)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 5\
**Last updated:** [August 22, 2008, 6:42pm UTC](https://www.ruby-forum.com/t/testing-tutorials-needed/146541 "2008-08-22T18:42:43Z")

</div>

Hi Could anyone points me to some good links covering Testing in rails.I am just beginner in testing and I know rails provides all the tools for unit,functional and integration testing…Since i learned only them theor…

---

## [Help with RoR partial views](https://www.ruby-forum.com/t/help-with-ror-partial-views/146311)

<div class="topic-metadata">

**Author:** [@CrazyMenConnected](https://www.ruby-forum.com/u/CrazyMenConnected)\
**Replies:** 5\
**Last updated:** [August 20, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/help-with-ror-partial-views/146311 "2008-08-20T18:29:39Z")

</div>

Hi, and thank you for reading this. First of all let me explain that i am a developer learning Ruby and RubyOnRails for future projects, so i am basically a noob that is in need of some help. :slight\_smile: I created…

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

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