# Top

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

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

---

## [Declarar clase](https://www.ruby-forum.com/t/declarar-clase/145749)

<div class="topic-metadata">

**Author:** [@maite](https://www.ruby-forum.com/u/maite)\
**Replies:** 8\
**Last updated:** [August 13, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/declarar-clase/145749 "2008-08-13T19:14:10Z")

</div>

hola lista quiero declara una clase en ruby con sus metodos y todos class Nueva def uno end def dos end end y luego quiero tener un vector de esa clase pero donde declaro la clase?? dentro de mi controlador??? …

---

## [Re: ruby sdbm library reliable?](https://www.ruby-forum.com/t/re-ruby-sdbm-library-reliable/94851)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 8\
**Last updated:** [May 17, 2006, 7:00pm UTC](https://www.ruby-forum.com/t/re-ruby-sdbm-library-reliable/94851 "2006-05-17T19:00:22Z")

</div>

\-----Original Message----- From: Jamey C. \[mailto:removed\_email\_address@domain.invalid\] Sent: Tuesday, May 16, 2006 8:37 AM To: ruby-talk ML Subject: ruby sdbm library reliable? Does anyone have any recent experien…

---

## [Using "find" when you have 2 has\_many relations](https://www.ruby-forum.com/t/using-find-when-you-have-2-has-many-relations/52652)

<div class="topic-metadata">

**Author:** [@pernod](https://www.ruby-forum.com/u/pernod)\
**Replies:** 8\
**Last updated:** [January 18, 2006, 7:43am UTC](https://www.ruby-forum.com/t/using-find-when-you-have-2-has-many-relations/52652 "2006-01-18T07:43:44Z")

</div>

An Account has\_many Websites which in turn has\_many WebsiteDomains Now I can of course do this: @domains = Account.find(1).websites.find(1).website\_domains.find(:all) To get all the domains for Account with id 1 and W…

---

## [Does it possible to submit duplicated request with the proxy\_next\_upstream on](https://www.ruby-forum.com/t/does-it-possible-to-submit-duplicated-request-with-the-proxy-next-upstream-on/238322)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [January 16, 2014, 10:20am UTC](https://www.ruby-forum.com/t/does-it-possible-to-submit-duplicated-request-with-the-proxy-next-upstream-on/238322 "2014-01-16T10:20:38Z")

</div>

Hi all: I am wondering if I set: proxy\_next\_upstream error timeout; Fox example , if the requested service is a counter , I issue the request use the interface http://example.com/incr . The request is failed on my f…

---

## [Trying to create a "view object" with yield self](https://www.ruby-forum.com/t/trying-to-create-a-view-object-with-yield-self/245527)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [June 12, 2013, 12:33pm UTC](https://www.ruby-forum.com/t/trying-to-create-a-view-object-with-yield-self/245527 "2013-06-12T12:33:59Z")

</div>

Hi I’m having a problem creating a view widget inside my erb template. Please see the following gist accordion\_rails.rb · GitHub Basically I’m trying to isolate a complex piece of html markup with something like : \<%…

---

## [Integrating with BIRT Reporting Engine](https://www.ruby-forum.com/t/integrating-with-birt-reporting-engine/68129)

<div class="topic-metadata">

**Author:** [@jacques](https://www.ruby-forum.com/u/jacques)\
**Replies:** 5\
**Last updated:** [May 20, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/integrating-with-birt-reporting-engine/68129 "2010-05-20T16:20:38Z")

</div>

Greetings, We are working at integrating with BIRT to produce our reports. Has anyone been involved with this so far? Interested in joining our efforts? Thanks

---

## [FasterCSV - varying headers](https://www.ruby-forum.com/t/fastercsv-varying-headers/176497)

<div class="topic-metadata">

**Author:** [@bungoman](https://www.ruby-forum.com/u/bungoman)\
**Replies:** 5\
**Last updated:** [October 3, 2009, 4:45am UTC](https://www.ruby-forum.com/t/fastercsv-varying-headers/176497 "2009-10-03T04:45:11Z")

</div>

Hello, Quick warning: I am very much a ruby newbie and am extremely new to programming in general. I’m attempting to build a little program that operates on a large csv file (potentially 100,000+ lines), but the cha…

---

## [Why does default scope break the #new method?](https://www.ruby-forum.com/t/why-does-default-scope-break-the-new-method/163014)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 5\
**Last updated:** [March 16, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/why-does-default-scope-break-the-new-method/163014 "2009-03-16T19:09:53Z")

</div>

class Event \< ActiveRecord::Base default\_scope :conditions =\> “id = 1” end Event.new undefined method \`1=’ for #Event:0xb68ce02c

---

## [After bootstrap, ./ltmain.sh' not found](https://www.ruby-forum.com/t/after-bootstrap-ltmain-sh-not-found/158087)

<div class="topic-metadata">

**Author:** [@fmalem](https://www.ruby-forum.com/u/fmalem)\
**Replies:** 5\
**Last updated:** [January 20, 2009, 7:31am UTC](https://www.ruby-forum.com/t/after-bootstrap-ltmain-sh-not-found/158087 "2009-01-20T07:31:59Z")

</div>

Hi, I came on strange message/error today when I tried to compile gr-howto-write-a-block. When I run ./bootstrap I got the following error: configure.ac:25: required file \`./ltmain.sh’ not found My system is Ubuntu…

---

## [Markaby or erb?](https://www.ruby-forum.com/t/markaby-or-erb/58705)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 5\
**Last updated:** [April 25, 2006, 6:23pm UTC](https://www.ruby-forum.com/t/markaby-or-erb/58705 "2006-04-25T18:23:41Z")

</div>

Guys, We’re embarking on a new dev project, and I’m curious…why would one choose markaby over erb? I for one am no fan of the erb syntax, but aside from that it’s similar to other technologies I’ve used in the past: …

---

## [Formatted output for numbers with comma's?](https://www.ruby-forum.com/t/formatted-output-for-numbers-with-commas/54789)

<div class="topic-metadata">

**Author:** [@Wink\_Saville](https://www.ruby-forum.com/u/Wink_Saville)\
**Replies:** 5\
**Last updated:** [March 20, 2006, 1:11am UTC](https://www.ruby-forum.com/t/formatted-output-for-numbers-with-commas/54789 "2006-03-20T01:11:29Z")

</div>

I was looking for a routine to convert a Number to a string with comma’s, is there a routine in the library for that? Wink

---

## [Net::FTP and UTF-8 encoding](https://www.ruby-forum.com/t/net-ftp-and-utf-8-encoding/223989)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [October 25, 2012, 6:43pm UTC](https://www.ruby-forum.com/t/net-ftp-and-utf-8-encoding/223989 "2012-10-25T18:43:35Z")

</div>

Hey there, I have a list of files with utf-8 characters in the name. Net::FTP handles them well, the content is just as I expected. But the problem comes with the filename I expect on the server side. When I expect i…

---

## [Thin server hangs after running for some time](https://www.ruby-forum.com/t/thin-server-hangs-after-running-for-some-time/220085)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [June 23, 2012, 1:24pm UTC](https://www.ruby-forum.com/t/thin-server-hangs-after-running-for-some-time/220085 "2012-06-23T13:24:49Z")

</div>

Has anyone been plagued by / solved this hanging issue? Thin server recently started hanging - Deployment - Ruby-Forum I get random hangs after hours or days of operation - (Win32, rails-2.3.12, thin 1.2.11) - the ser…

---

## [Problems with installing gems](https://www.ruby-forum.com/t/problems-with-installing-gems/217925)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 16, 2012, 9:01pm UTC](https://www.ruby-forum.com/t/problems-with-installing-gems/217925 "2012-03-16T21:01:35Z")

</div>

Hi! I’d like to installed gem with sudo gem install rails By default, the rails gem should go into /usr/lib/ruby/gems/1.9.1, but it goes to /root/,gem: \[ram@thingol:~\]sudo gem install rails --no-rdoc Password: WAR…

---

## [Rspec output on windows](https://www.ruby-forum.com/t/rspec-output-on-windows/215816)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 16, 2012, 10:13pm UTC](https://www.ruby-forum.com/t/rspec-output-on-windows/215816 "2012-01-16T22:13:36Z")

</div>

I have rails 3.1.3 and rspec 2.8.0 on windows 7 (32bit) installed. When running rspec I receive the following output: ←\[32m.←\[0m←\[32m.←\[0m Finished in 0.33 seconds ←\[32m2 examples, 0 failures←\[0m I have no glue how …

---

## [Rails + Firebird 2.1.x](https://www.ruby-forum.com/t/rails-firebird-2-1-x/162934)

<div class="topic-metadata">

**Author:** [@Fidel\_V](https://www.ruby-forum.com/u/Fidel_V)\
**Replies:** 2\
**Last updated:** [August 12, 2010, 10:33pm UTC](https://www.ruby-forum.com/t/rails-firebird-2-1-x/162934 "2010-08-12T22:33:25Z")

</div>

Hi all, I have played with JRuby on Rails in the past and managed to make it work with Firebird. Although migrations did not work, I managed to do everything manually and it worked. Now, I am working with Ruby on Rai…

---

## ["No block given" error -- spurious?](https://www.ruby-forum.com/t/no-block-given-error-spurious/180660)

<div class="topic-metadata">

**Author:** [@rjlyders](https://www.ruby-forum.com/u/rjlyders)\
**Replies:** 2\
**Last updated:** [December 25, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/no-block-given-error-spurious/180660 "2009-12-25T17:16:44Z")

</div>

The code below, found at http://github.com/eregon/RPCFN4/blob/master/solutions/benoit\_daloze.rb (with the last two lines added for testing it) produced the error: Polynomials.rb:15:in \`each\_with\_index’: no block give…

---

## [What is Ruby equivalent of Python's ' if \_\_name\_\_ == "\_\_main\_\_" '](https://www.ruby-forum.com/t/what-is-ruby-equivalent-of-pythons-if-name-main/151539)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 2\
**Last updated:** [October 22, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/what-is-ruby-equivalent-of-pythons-if-name-main/151539 "2008-10-22T17:46:36Z")

</div>

In Python, I can use the test indicated in the subject line to determine if a file is being executed directly, as opposed to being loaded indirectly as the result of the execution of another file. I haven’t been able …

---

## [Setting default value in text\_field/password\_field](https://www.ruby-forum.com/t/setting-default-value-in-text-field-password-field/114917)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 2\
**Last updated:** [September 18, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/setting-default-value-in-text-field-password-field/114917 "2007-09-18T22:19:52Z")

</div>

I am trying to set a default value in a text\_field form. I know how to do this in html, but is there a way to do this with form\_for Here is my code \<% form\_for :user do |f| -%\> First Name \<%= f.text\_field :firstna…

---

## [Update\_all Not Incrementing lock\_version](https://www.ruby-forum.com/t/update-all-not-incrementing-lock-version/97428)

<div class="topic-metadata">

**Author:** [@dstocks](https://www.ruby-forum.com/u/dstocks)\
**Replies:** 2\
**Last updated:** [July 7, 2006, 9:07pm UTC](https://www.ruby-forum.com/t/update-all-not-incrementing-lock-version/97428 "2006-07-07T21:07:05Z")

</div>

Shouldn’t update\_all be updating lock\_version? As you can see from my console session below, it is upating the record (changed running attribute to true and returned 1 to show 1 recored was updated). But it did not …

---

## [Inconsistent Array#slice behavior?](https://www.ruby-forum.com/t/inconsistent-array-slice-behavior/227132)

<div class="topic-metadata">

**Author:** [@kurt0314](https://www.ruby-forum.com/u/kurt0314)\
**Replies:** 7\
**Last updated:** [March 5, 2013, 6:54pm UTC](https://www.ruby-forum.com/t/inconsistent-array-slice-behavior/227132 "2013-03-05T18:54:09Z")

</div>

Given x = \[\], x\[0, 2\] =\> \[\] x\[0…2\] =\> \[\] x\[-3,2\] =\> nil Documentation says that out-of-range indices produce a nil result, but 0 s/b out-of-range for an empty array, shouldn’t it? And 2 is definitely out-of-range.

---

## [Where is the methods method defined?](https://www.ruby-forum.com/t/where-is-the-methods-method-defined/225552)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [January 15, 2013, 11:33am UTC](https://www.ruby-forum.com/t/where-is-the-methods-method-defined/225552 "2013-01-15T11:33:25Z")

</div>

Hi, just curious where can I find definition of methods method ? irb\> BasicObject.method(:methods).owner =\> Kernel irb\> BasicObject.ancestors =\> \[BasicObject\] # ?? it does not inherit from Kernel class ?? irb\> …

---

## [Linking failure in stylesheet\_link\_tag in production mode with asset pipeline enabled](https://www.ruby-forum.com/t/linking-failure-in-stylesheet-link-tag-in-production-mode-with-asset-pipeline-enabled/211471)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [September 5, 2011, 9:42am UTC](https://www.ruby-forum.com/t/linking-failure-in-stylesheet-link-tag-in-production-mode-with-asset-pipeline-enabled/211471 "2011-09-05T09:42:12Z")

</div>

Hey, in my application.html.erb, I have this line: \<%= stylesheet\_link\_tag 'application' %\> which should compile through the asset pipeline and link to the application.css (which does a require\_tree .). In developmen…

---

## [Spreadsheet 0.6.0 Released](https://www.ruby-forum.com/t/spreadsheet-0-6-0-released/150806)

<div class="topic-metadata">

**Author:** [@spreadsheet](https://www.ruby-forum.com/u/spreadsheet)\
**Replies:** 7\
**Last updated:** [August 4, 2011, 3:09pm UTC](https://www.ruby-forum.com/t/spreadsheet-0-6-0-released/150806 "2011-08-04T15:09:23Z")

</div>

spreadsheet version 0.6.0 has been released! http://spreadsheet.rubyforge.org The Spreadsheet Library is designed to read and write Spreadsheet Documents. As of version 0.6.0, only Microsoft Excel compatible spread…

---

## [ActiveRecord et Expressions RÃ©guliÃ¨res S QL](https://www.ruby-forum.com/t/activerecord-et-expressions-ra-gulia-res-s-ql/131046)

<div class="topic-metadata">

**Author:** [@gers32](https://www.ruby-forum.com/u/gers32)\
**Replies:** 7\
**Last updated:** [March 7, 2008, 9:41am UTC](https://www.ruby-forum.com/t/activerecord-et-expressions-ra-gulia-res-s-ql/131046 "2008-03-07T09:41:06Z")

</div>

Bonjour, J’ai le code suivant : @mes\_trucs = MonTruc.find( :all, :select =\> "ID, CODE", :conditions =\> conditions\_list) conditions\_list est une liste contenant les éléments suivants : \[0\] code like ? and co…

---

## [RadRails vs. Textmate](https://www.ruby-forum.com/t/radrails-vs-textmate/106113)

<div class="topic-metadata">

**Author:** [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Replies:** 7\
**Last updated:** [June 6, 2007, 6:54pm UTC](https://www.ruby-forum.com/t/radrails-vs-textmate/106113 "2007-06-06T18:54:17Z")

</div>

Is there anyone out there can give me a comparison between RadRails/ Aptana and Textmate? I have been using skEdit for all of my general coding stuff, but I am now looking into getting a new editor for my Ruby/Rails w…

---

## [Link\_to and url\_for in ActionMailer](https://www.ruby-forum.com/t/link-to-and-url-for-in-actionmailer/77502)

<div class="topic-metadata">

**Author:** [@reggieb](https://www.ruby-forum.com/u/reggieb)\
**Replies:** 1\
**Last updated:** [November 28, 2006, 3:57pm UTC](https://www.ruby-forum.com/t/link-to-and-url-for-in-actionmailer/77502 "2006-11-28T15:57:14Z")

</div>

I am new to ActionMailer and having a problem. I want to be able to send a notification e-mail when a new item is added to a list. Sending an e-mail to the right people on creation is working fine. However, I want to…

---

## [Rubyforge releasing](https://www.ruby-forum.com/t/rubyforge-releasing/65616)

<div class="topic-metadata">

**Author:** [@Tobias\_L](https://www.ruby-forum.com/u/Tobias_L)\
**Replies:** 7\
**Last updated:** [February 14, 2006, 1:10am UTC](https://www.ruby-forum.com/t/rubyforge-releasing/65616 "2006-02-14T01:10:17Z")

</div>

Hey everyone, I’m looking for a good way to automate releasing updates to my libraries to rubyforge. I used to use Florian G.’ rake task but it recently broke like so: (in /Users/tobi/Code/Ruby/shopify/vendor/paypal) …

---

## [RubySpecs](https://www.ruby-forum.com/t/rubyspecs/213386)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [November 1, 2011, 1:12am UTC](https://www.ruby-forum.com/t/rubyspecs/213386 "2011-11-01T01:12:56Z")

</div>

I’ve just run mspec under the Languages\\Ruby\\Tests\\mspec\\rubyspec\\core folder against MRI 1.9.2p0 (which is checked into the ironlanguages-main git repo), and it crashes with a segfault in putc\_spec.rb I then tried ru…

---

## [Mixing Jruby and Java in a Java Threadpool](https://www.ruby-forum.com/t/mixing-jruby-and-java-in-a-java-threadpool/210710)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [August 15, 2011, 9:13pm UTC](https://www.ruby-forum.com/t/mixing-jruby-and-java-in-a-java-threadpool/210710 "2011-08-15T21:13:54Z")

</div>

Hi guys, I’m new to the list. I did quite a lot of Googling, but didn’t find any specific references to this topic. I have a number of simple Java servers which can invoke a series of Java classes on each other. Each…

---

## [Math object in Ruby](https://www.ruby-forum.com/t/math-object-in-ruby/199545)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [November 23, 2010, 8:22pm UTC](https://www.ruby-forum.com/t/math-object-in-ruby/199545 "2010-11-23T20:22:04Z")

</div>

In IRB, or saved as a program from Scite, put in something like: puts(MATH::PI) response is always " Uninitialized constant MATH(NameError) How can I tell if I have the MATH module in my installation? If I don’t have…

---

## [WEBrick won't start after engines installation](https://www.ruby-forum.com/t/webrick-wont-start-after-engines-installation/55498)

<div class="topic-metadata">

**Author:** [@JJJJJJ](https://www.ruby-forum.com/u/JJJJJJ)\
**Replies:** 3\
**Last updated:** [April 5, 2006, 10:46am UTC](https://www.ruby-forum.com/t/webrick-wont-start-after-engines-installation/55498 "2006-04-05T10:46:16Z")

</div>

I installed the engines and datebox\_engine -plugins as advised in the readme-files and everything went well. But now when I now try to start the WEBrick server, it says “\`const\_missing’: uninitialized constant Engines…

---

## [CR/LF in data read from a socket](https://www.ruby-forum.com/t/cr-lf-in-data-read-from-a-socket/53063)

<div class="topic-metadata">

**Author:** [@mac](https://www.ruby-forum.com/u/mac)\
**Replies:** 3\
**Last updated:** [January 26, 2006, 6:44am UTC](https://www.ruby-forum.com/t/cr-lf-in-data-read-from-a-socket/53063 "2006-01-26T06:44:36Z")

</div>

Hello, I am trying to write a client/server program in an effort to learn Ruby. I have been playing around with Ruby for about 2 months and I really love it. As I developed my program (DICOM tool kit) I am faced wit…

---

## [Is it possible to include the username in an attachment file\_name? Using Paperclip, Rails 3., Devise](https://www.ruby-forum.com/t/is-it-possible-to-include-the-username-in-an-attachment-file-name-using-paperclip-rails-3-devise/236768)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [October 2, 2013, 1:05am UTC](https://www.ruby-forum.com/t/is-it-possible-to-include-the-username-in-an-attachment-file-name-using-paperclip-rails-3-devise/236768 "2013-10-02T01:05:04Z")

</div>

Hello, I’m new to Ruby, Rails, Devise and Paperclip and I’m trying to change a filename when I upload it to include the user’s nickname after a \_ however, I keep getting filename.extension\_(missing user name) and thi…

---

## [Best way to protect pages with custom auth-system?](https://www.ruby-forum.com/t/best-way-to-protect-pages-with-custom-auth-system/197589)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 4\
**Last updated:** [November 1, 2010, 10:57pm UTC](https://www.ruby-forum.com/t/best-way-to-protect-pages-with-custom-auth-system/197589 "2010-11-01T22:57:02Z")

</div>

I have a custom auth-system based on authlogic (based largely on reader extension). I have two roles: regular users and moderators. I also have two extra pages types, one is for moderators only, the other is for eith…

---

## [\[Rails 3\] How to test routes urls in console](https://www.ruby-forum.com/t/rails-3-how-to-test-routes-urls-in-console/193157)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 4\
**Last updated:** [August 13, 2010, 12:04pm UTC](https://www.ruby-forum.com/t/rails-3-how-to-test-routes-urls-in-console/193157 "2010-08-13T12:04:44Z")

</div>

I tried require ‘url\_writer’ but this is not the trick what should be required/included to test the routes urls ? thanks erwin

---

## [How to open Pdf or doc file in firefox](https://www.ruby-forum.com/t/how-to-open-pdf-or-doc-file-in-firefox/185744)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 4\
**Last updated:** [March 25, 2010, 4:43pm UTC](https://www.ruby-forum.com/t/how-to-open-pdf-or-doc-file-in-firefox/185744 "2010-03-25T16:43:15Z")

</div>

Hello champs, Currently i have given a link to my document as like:- ‘/controller/action/holidaylist.xls’ and i have placed this file in my own created directory ‘ABC’ at RAILS\_ROOT only. And in my controller, i have…

---

## [WebDAV Support](https://www.ruby-forum.com/t/webdav-support/146442)

<div class="topic-metadata">

**Author:** [@Max\_Hawkins](https://www.ruby-forum.com/u/Max_Hawkins)\
**Replies:** 4\
**Last updated:** [August 21, 2008, 10:49am UTC](https://www.ruby-forum.com/t/webdav-support/146442 "2008-08-21T10:49:02Z")

</div>

I’ve been trying to use nginx’s ngx\_http\_dav\_module to synchronize some data from my home machine, and have discovered that it doesn’t support the PROPFIND method that’s required for my application to work. Is anyone …

---

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

<div class="topic-metadata">

**Author:** [@skiz](https://www.ruby-forum.com/u/skiz)\
**Replies:** 4\
**Last updated:** [August 14, 2008, 6:18am UTC](https://www.ruby-forum.com/t/problem-with-daemonize/145108 "2008-08-14T06:18:59Z")

</div>

Hi, I am new to working with mongrel (and rails in general) and I am experiencing a problem with mongrel. I have a rails application that for one view parses some information from our SVN server. I have to call the…

---

## [Single Table Inheritance Association Problem](https://www.ruby-forum.com/t/single-table-inheritance-association-problem/102713)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 4\
**Last updated:** [January 7, 2008, 12:36am UTC](https://www.ruby-forum.com/t/single-table-inheritance-association-problem/102713 "2008-01-07T00:36:54Z")

</div>

Hi there, I’m using STI in a new application, and something is terribly wrong with has\_many associations. Right, so I have number of subclasses that inherit from one concrete base class. Each sub class can possibly h…

---

## [Using dynamic method calling with attr\_writer methods](https://www.ruby-forum.com/t/using-dynamic-method-calling-with-attr-writer-methods/103747)

<div class="topic-metadata">

**Author:** [@daisagah](https://www.ruby-forum.com/u/daisagah)\
**Replies:** 4\
**Last updated:** [May 10, 2007, 12:41am UTC](https://www.ruby-forum.com/t/using-dynamic-method-calling-with-attr-writer-methods/103747 "2007-05-10T00:41:06Z")

</div>

I’m a total Ruby newbie looking for help. I’m writing an application where I need to dynamical assign object variables via attr\_writer object methods. My code is something like this: class Test \< ParentClass attr\_re…

---

## [What's the diff between puts y and puts "#{y}" in class\_eval](https://www.ruby-forum.com/t/whats-the-diff-between-puts-y-and-puts-y-in-class-eval/127320)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 6\
**Last updated:** [January 29, 2008, 11:18pm UTC](https://www.ruby-forum.com/t/whats-the-diff-between-puts-y-and-puts-y-in-class-eval/127320 "2008-01-29T23:18:09Z")

</div>

Look at the code. y = " another hi" class Wes end Wes.class\_eval \<\<-END def hello puts “#{y}” puts y # I get wrong number of arguments error end END While puts “#{y}” works puts y fails. And I am not sure what’…

---

## [Quick way to split up an array of objects into groups?](https://www.ruby-forum.com/t/quick-way-to-split-up-an-array-of-objects-into-groups/126689)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 6\
**Last updated:** [January 21, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/quick-way-to-split-up-an-array-of-objects-into-groups/126689 "2008-01-21T15:40:32Z")

</div>

I have a collection of objects, which i want to separate into groups based on a particular property (to be specific, two attributes - that is if obj.foo and obj.bar are both the same for two objects they go into an ar…

---

## [Typo 4.0.1](https://www.ruby-forum.com/t/typo-4-0-1/64644)

<div class="topic-metadata">

**Author:** [@slembcke](https://www.ruby-forum.com/u/slembcke)\
**Replies:** 6\
**Last updated:** [September 4, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/typo-4-0-1/64644 "2006-09-04T14:45:20Z")

</div>

Typo 4.0.1 is out. This is a bugfix release, with a number of bugs fixed since 4.0.0. This should be used with Rails 1.1.5, as earlier releases have critical security issues. See either Typo 4.0.1 :: scottstuff.ne…

---

## [Has\_many and belongs\_to question... undefined method error](https://www.ruby-forum.com/t/has-many-and-belongs-to-question-undefined-method-error/113919)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 1\
**Last updated:** [September 6, 2007, 5:56am UTC](https://www.ruby-forum.com/t/has-many-and-belongs-to-question-undefined-method-error/113919 "2007-09-06T05:56:51Z")

</div>

I get this weird error message in the console when I try and navigate my relationship via Pool.gms.each()… Here’s some cose. class Gm \< ActiveRecord::Base belongs\_to :pools has\_many :teams has\_many :players, :throu…

---

## [What is difference between belongs\_to and has\_one in Rails?](https://www.ruby-forum.com/t/what-is-difference-between-belongs-to-and-has-one-in-rails/230695)

<div class="topic-metadata">

**Author:** [@jaimin26783](https://www.ruby-forum.com/u/jaimin26783)\
**Replies:** 2\
**Last updated:** [July 8, 2014, 5:51pm UTC](https://www.ruby-forum.com/t/what-is-difference-between-belongs-to-and-has-one-in-rails/230695 "2014-07-08T17:51:20Z")

</div>

What is a difference between belongs\_to and has\_one? How can I decide belongs\_to use to X(assume) model and has\_one use to Y(assume) model? Kind regards.

---

## [Error: #\<NameError: undefined local variable or method](https://www.ruby-forum.com/t/error-nameerror-undefined-local-variable-or-method/237826)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [December 4, 2013, 8:02pm UTC](https://www.ruby-forum.com/t/error-nameerror-undefined-local-variable-or-method/237826 "2013-12-04T20:02:53Z")

</div>

Hello, can anyone explain to me why I get error msg.: Error: #\<NameError: undefined local variable or method \`field\_build’ for Visual::Plugin\_A:Module\> on this code: require(“visual\_visual\_mod.rb”) require(“sketchup.…

---

## [Dynamic reverse proxy configuration](https://www.ruby-forum.com/t/dynamic-reverse-proxy-configuration/216928)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 19, 2012, 7:17am UTC](https://www.ruby-forum.com/t/dynamic-reverse-proxy-configuration/216928 "2012-02-19T07:17:45Z")

</div>

Hi, I am currently trying to develop a module that could allow Nginx act as a reverse proxy to a cluster of nodes using Zookeeper. I would like to ask if it is possible to develop such a module. I found a question on…

---

## [Condition variables and thread scheduling](https://www.ruby-forum.com/t/condition-variables-and-thread-scheduling/199786)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 29, 2010, 12:37pm UTC](https://www.ruby-forum.com/t/condition-variables-and-thread-scheduling/199786 "2010-11-29T12:37:00Z")

</div>

I’m trying to understand how condition variables are supposed to work; specifically, I’ve got this code: a.rb require ‘monitor’ def try a = “” a.extend(MonitorMixin) cvar = a.new\_cond t1 = Thread.start do a.synch…

---

## [Getting essid via ioctl](https://www.ruby-forum.com/t/getting-essid-via-ioctl/175789)

<div class="topic-metadata">

**Author:** [@corck](https://www.ruby-forum.com/u/corck)\
**Replies:** 2\
**Last updated:** [September 23, 2009, 11:28am UTC](https://www.ruby-forum.com/t/getting-essid-via-ioctl/175789 "2009-09-23T11:28:42Z")

</div>

Hello. To avoid relying on the wireless tools I want to get the essid directly from the device with ioctl, in C this wouldn’t be a problem, but in Ruby it’s quite different. The problem is following struct from wirel…

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

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