# Top

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

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

---

## [Stub an AR Model Instance Method](https://www.ruby-forum.com/t/stub-an-ar-model-instance-method/208194)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [June 19, 2011, 3:12pm UTC](https://www.ruby-forum.com/t/stub-an-ar-model-instance-method/208194 "2011-06-19T15:12:37Z")

</div>

Obviously, I’m missing something very simple, can someone please explain how to stub an instance of an AR model method. This does not work: @widget = Widget.first # Widget has an instance method called ‘next\_seriel\_n…

---

## [Rails 3 / RSpec 2 use\_transactional\_fixtures and after\_commit](https://www.ruby-forum.com/t/rails-3-rspec-2-use-transactional-fixtures-and-after-commit/201795)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [April 20, 2011, 5:30pm UTC](https://www.ruby-forum.com/t/rails-3-rspec-2-use-transactional-fixtures-and-after-commit/201795 "2011-04-20T17:30:31Z")

</div>

We’re migrating a Rails 2.3.x application to Rails 3 and RSpec 2.x. In Rails 2.3.x we were using https://github.com/freelancing-god/after\_commit to provide after\_commit functionality (now provided by Rails 3). The pl…

---

## [Line breaks in YAML](https://www.ruby-forum.com/t/line-breaks-in-yaml/127398)

<div class="topic-metadata">

**Author:** [@keith](https://www.ruby-forum.com/u/keith)\
**Replies:** 4\
**Last updated:** [January 29, 2008, 12:07am UTC](https://www.ruby-forum.com/t/line-breaks-in-yaml/127398 "2008-01-29T00:07:15Z")

</div>

Sorry for all the YAML questions today! Here is my YAML file- foo: this is a test to see if ruby recognizes line breaks Here is my Ruby- Loading development environment (Rails 2.0.2) require ‘yaml’ =\> \[\] te…

---

## [Simple UI workflow for small ruby tasks](https://www.ruby-forum.com/t/simple-ui-workflow-for-small-ruby-tasks/241507)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 7\
**Last updated:** [April 13, 2015, 12:43pm UTC](https://www.ruby-forum.com/t/simple-ui-workflow-for-small-ruby-tasks/241507 "2015-04-13T12:43:25Z")

</div>

I have a set of small ruby tasks(completely automated), which I need to run one after another after success of last task. I can run those through a simple script, but I want other folks to be able to run these via UI. …

---

## [1.9.2 irb and readline problem on ubuntu](https://www.ruby-forum.com/t/1-9-2-irb-and-readline-problem-on-ubuntu/197455)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 7\
**Last updated:** [February 9, 2011, 3:01am UTC](https://www.ruby-forum.com/t/1-9-2-irb-and-readline-problem-on-ubuntu/197455 "2011-02-09T03:01:17Z")

</div>

All, Does anyone have an issue with 1.9.2 irb and readline where the arrow buttons and tab don’t work? I have tried many things and even remove readline6 from the picture still does not work. I’ve done this during t…

---

## [Looking for a job in Paris](https://www.ruby-forum.com/t/looking-for-a-job-in-paris/147418)

<div class="topic-metadata">

**Author:** [@oleganza](https://www.ruby-forum.com/u/oleganza)\
**Replies:** 7\
**Last updated:** [September 20, 2008, 12:51pm UTC](https://www.ruby-forum.com/t/looking-for-a-job-in-paris/147418 "2008-09-20T12:51:09Z")

</div>

Hello! My name is Oleg A. (22, St. Petersburg, Russia). I’m a Ruby hacker, who have fallen in love with une femme parisienne and wishes to spend more time in Paris, than wherever else. I have strong experience in dif…

---

## [Algoritmo - Basico](https://www.ruby-forum.com/t/algoritmo-basico/142905)

<div class="topic-metadata">

**Author:** [@lmcdougal](https://www.ruby-forum.com/u/lmcdougal)\
**Replies:** 7\
**Last updated:** [July 14, 2008, 10:16am UTC](https://www.ruby-forum.com/t/algoritmo-basico/142905 "2008-07-14T10:16:48Z")

</div>

Buen dia a todos, estoy haciendo un Algoritmo para el calculo de unos caracteres de control, se que es algo basico, pero si alguien tiene alguna sugerencia, se lo agradeceria: 1.- Los Caracteres del nombre de una pers…

---

## [Administrative Functions: Best Practices?](https://www.ruby-forum.com/t/administrative-functions-best-practices/115899)

<div class="topic-metadata">

**Author:** [@sebacipo](https://www.ruby-forum.com/u/sebacipo)\
**Replies:** 7\
**Last updated:** [October 2, 2007, 12:42am UTC](https://www.ruby-forum.com/t/administrative-functions-best-practices/115899 "2007-10-02T00:42:32Z")

</div>

I haven’t come across an obvious best way to write my administrative functions. Some candidates are: Put the admin functions amongst the standard authenticated user functionality of the site, following the REST appr…

---

## [ODBC adapter connection help please](https://www.ruby-forum.com/t/odbc-adapter-connection-help-please/79508)

<div class="topic-metadata">

**Author:** [@ldk2005](https://www.ruby-forum.com/u/ldk2005)\
**Replies:** 7\
**Last updated:** [March 11, 2006, 3:53am UTC](https://www.ruby-forum.com/t/odbc-adapter-connection-help-please/79508 "2006-03-11T03:53:31Z")

</div>

Does anyone have any experience getting ODBC to work? I could really use some help here. I’m having trouble accessing a db2 database via odbc using rails. It’s an external database, that I import data from. I hav…

---

## [Convert xml to csv in ruby and write it to a text file](https://www.ruby-forum.com/t/convert-xml-to-csv-in-ruby-and-write-it-to-a-text-file/206340)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [April 28, 2011, 4:03pm UTC](https://www.ruby-forum.com/t/convert-xml-to-csv-in-ruby-and-write-it-to-a-text-file/206340 "2011-04-28T16:03:55Z")

</div>

Hello guys ! I’m new in Ruby…Hope you can help because i’m trying a lot and just can’t see where is the problem… I have this xml, and not only this, i want just for any xml file that i might put : \<?xml version="1.0"…

---

## [Looking for RoR job (remotely/part-time/full-time)](https://www.ruby-forum.com/t/looking-for-ror-job-remotely-part-time-full-time/234032)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [May 13, 2020, 7:48pm UTC](https://www.ruby-forum.com/t/looking-for-ror-job-remotely-part-time-full-time/234032 "2020-05-13T19:48:28Z")

</div>

Hi guys, I am looking for a job as a Ruby On Rails developer - remotely, as a part-time or full-time. My knowledge - 3 years programming in Ruby On Rails, further - knowledge of: MongoDB,MySQL, PostgreSQL, SQLite R…

---

## [Gzip compression won't disable](https://www.ruby-forum.com/t/gzip-compression-wont-disable/246094)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [August 22, 2013, 4:39am UTC](https://www.ruby-forum.com/t/gzip-compression-wont-disable/246094 "2013-08-22T04:39:22Z")

</div>

Hey all, I’m running nginx 1.2.6 from a packaged install on Ubuntu 13.04. I’m at a total loss as to how this is happening but I simply cannot disable gzip compression for my server no matter what I try. Setting gzip …

---

## [Split textarea content into array](https://www.ruby-forum.com/t/split-textarea-content-into-array/161897)

<div class="topic-metadata">

**Author:** [@sudhi](https://www.ruby-forum.com/u/sudhi)\
**Replies:** 2\
**Last updated:** [March 4, 2009, 4:04am UTC](https://www.ruby-forum.com/t/split-textarea-content-into-array/161897 "2009-03-04T04:04:44Z")

</div>

Hi, I am a newbie to rails and have a problem to solve. I have textarea which provides as input Line1 Line2 Line3 I want this content to be split into an array using “\\r\\n” as the seperators. I tried to do the sp…

---

## [Using a Button to render partial](https://www.ruby-forum.com/t/using-a-button-to-render-partial/57861)

<div class="topic-metadata">

**Author:** [@d6veteran](https://www.ruby-forum.com/u/d6veteran)\
**Replies:** 2\
**Last updated:** [April 16, 2006, 7:20am UTC](https://www.ruby-forum.com/t/using-a-button-to-render-partial/57861 "2006-04-16T07:20:51Z")

</div>

Is there a way to render a partial using a button? Basically in a content div I want the user to launch a new sub content item in the same div by clicking a button. Any help appreciated. Loving rails more and more e…

---

## [Increasing Memory Usage](https://www.ruby-forum.com/t/increasing-memory-usage/226120)

<div class="topic-metadata">

**Author:** [@mode](https://www.ruby-forum.com/u/mode)\
**Replies:** 6\
**Last updated:** [December 15, 2010, 10:58am UTC](https://www.ruby-forum.com/t/increasing-memory-usage/226120 "2010-12-15T10:58:06Z")

</div>

Hi, I’m currently running a very simple rails (2.3.8) app using ironruby 1.0. At the moment I’m only running the app in development mode using Webrick but I have some concerns about the amount of memory being used b…

---

## [GIO: How to deal with blocks as async callbacks](https://www.ruby-forum.com/t/gio-how-to-deal-with-blocks-as-async-callbacks/164000)

<div class="topic-metadata">

**Author:** [@Nikolai\_W](https://www.ruby-forum.com/u/Nikolai_W)\
**Replies:** 5\
**Last updated:** [March 28, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/gio-how-to-deal-with-blocks-as-async-callbacks/164000 "2009-03-28T19:22:32Z")

</div>

OK, so if the user passes a block to an \*\_async method it gets called when the GAsyncReadyCallback is called. However, if any errors are reported from the \*\_finish function they get raised. My question is how to dea…

---

## [Rspec Self Class Method Access](https://www.ruby-forum.com/t/rspec-self-class-method-access/232330)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 3, 2014, 12:35am UTC](https://www.ruby-forum.com/t/rspec-self-class-method-access/232330 "2014-10-03T00:35:53Z")

</div>

I have a class that have self methods. Class X \< ActiveRecord::Base self.do\_something { puts ‘do something’ } end The model spec uses Factory Girl so an instance is created on the class. When run rspec, do\_something…

---

## [Hosting ruby application of IIS 7](https://www.ruby-forum.com/t/hosting-ruby-application-of-iis-7/245618)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [September 6, 2013, 11:29pm UTC](https://www.ruby-forum.com/t/hosting-ruby-application-of-iis-7/245618 "2013-09-06T23:29:05Z")

</div>

Hi all, I am new to ruby programming. I have just started creating a simple ruby application using ruby on rails. I have installed ruby 1.8.7-p371 and DevKit successfully. I am able to run the application using http:…

---

## [Form remote only if new record](https://www.ruby-forum.com/t/form-remote-only-if-new-record/214005)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [November 18, 2011, 6:29pm UTC](https://www.ruby-forum.com/t/form-remote-only-if-new-record/214005 "2011-11-18T18:29:19Z")

</div>

I want submit a form via ajax only if i have a new record, so I’ve set: (I’m using simple\_form) = simple\_form\_for @document, :html =\> { :multipart =\> true }, :remote =\> @document.new\_record? ? true : false, do |f| =…

---

## [100% CPU Usage (on all 8 cores)](https://www.ruby-forum.com/t/100-cpu-usage-on-all-8-cores/204702)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [March 19, 2011, 9:52pm UTC](https://www.ruby-forum.com/t/100-cpu-usage-on-all-8-cores/204702 "2011-03-19T21:52:06Z")

</div>

I have installed NGinX and struggled getting the server to work. It apparantly converts the httpd.conf and ports them to nginx vhosts. As many would know, the server upon starting would error out and die. I have sorte…

---

## [Random name generator!](https://www.ruby-forum.com/t/random-name-generator/134451)

<div class="topic-metadata">

**Author:** [@probability](https://www.ruby-forum.com/u/probability)\
**Replies:** 3\
**Last updated:** [April 11, 2008, 11:11pm UTC](https://www.ruby-forum.com/t/random-name-generator/134451 "2008-04-11T23:11:00Z")

</div>

Hello to all; I’m testing out different ways to output randomly generated names. I’ve toyed with some basic algorithms but recently I’ve become hooked on the idea of using a Markov chain in the process to generate nam…

---

## [\[ADV\] Deploying Rails Applications Beta Book Release](https://www.ruby-forum.com/t/adv-deploying-rails-applications-beta-book-release/112334)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 8\
**Last updated:** [August 21, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/adv-deploying-rails-applications-beta-book-release/112334 "2007-08-21T20:11:31Z")

</div>

Hello Friends- I’m happy to announce the beta release of my book for the Pragmatic Programmers, Deploying Rails Applications, A Step by Step Guide. It’s been in the works for a long time and has been rewritten multipl…

---

## [Loading the contents of a CSV file to a database](https://www.ruby-forum.com/t/loading-the-contents-of-a-csv-file-to-a-database/55472)

<div class="topic-metadata">

**Author:** [@tobycatlin](https://www.ruby-forum.com/u/tobycatlin)\
**Replies:** 8\
**Last updated:** [March 22, 2006, 4:17pm UTC](https://www.ruby-forum.com/t/loading-the-contents-of-a-csv-file-to-a-database/55472 "2006-03-22T16:17:39Z")

</div>

Hello Everybody, I picked up on the buzz about RoR and wanted to see what the fuss is about. So far i am very impressed but have hit a bit of a wall with a little play app i am writting. I want to iterate through a …

---

## [Method doesn't check if tic-tac-toe game won, only returns first combo](https://www.ruby-forum.com/t/method-doesnt-check-if-tic-tac-toe-game-won-only-returns-first-combo/244007)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [February 5, 2016, 2:07pm UTC](https://www.ruby-forum.com/t/method-doesnt-check-if-tic-tac-toe-game-won-only-returns-first-combo/244007 "2016-02-05T14:07:08Z")

</div>

WIN Create a WIN method that accepts a board as an argument and returns false/nil if there is no win combination present in the board and returns the winning combination indexes as an array if there is a win. To clar…

---

## [Ruby module to get df -h output](https://www.ruby-forum.com/t/ruby-module-to-get-df-h-output/222559)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [September 3, 2012, 9:50am UTC](https://www.ruby-forum.com/t/ruby-module-to-get-df-h-output/222559 "2012-09-03T09:50:57Z")

</div>

Hi i can get mount information by using df -h but wondering, if is there is any ruby module which will go through the LInux mount information basically i want to see df -h Filesystem Size Used Avail Us…

---

## [Dynamically Restarting a Rails App?](https://www.ruby-forum.com/t/dynamically-restarting-a-rails-app/173018)

<div class="topic-metadata">

**Author:** [@anthonybaker](https://www.ruby-forum.com/u/anthonybaker)\
**Replies:** 4\
**Last updated:** [August 1, 2009, 11:09am UTC](https://www.ruby-forum.com/t/dynamically-restarting-a-rails-app/173018 "2009-08-01T11:09:14Z")

</div>

Hello all, Is there a way to restart a Rails app from a controller? I’m trying to make it so that, in the backend, administrators can add plugins/themes/ etc. to the running application without the need to actually go…

---

## [Help understanding EVERYTHING](https://www.ruby-forum.com/t/help-understanding-everything/158956)

<div class="topic-metadata">

**Author:** [@rubina](https://www.ruby-forum.com/u/rubina)\
**Replies:** 4\
**Last updated:** [January 31, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/help-understanding-everything/158956 "2009-01-31T17:58:52Z")

</div>

Team, I am trying to learn a GUI for Ruby and I picked wxRuby. The problem is that I am kind of slow learning this and I now feel frustrated after trying for about at least 7 hours. I am trying to design a simple Sud…

---

## [Memory Leak with Certain Script Exceptions](https://www.ruby-forum.com/t/memory-leak-with-certain-script-exceptions/142289)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 4\
**Last updated:** [July 7, 2008, 10:23am UTC](https://www.ruby-forum.com/t/memory-leak-with-certain-script-exceptions/142289 "2008-07-07T10:23:13Z")

</div>

Hi, I use the IronRuby scripting engine in a long running server process and came across an issue where the memory utilisation of the process started steadily rising in line with a memory leak. The server process is …

---

## [Response.should be\_success -- what does this prove?](https://www.ruby-forum.com/t/response-should-be-success-what-does-this-prove/169576)

<div class="topic-metadata">

**Author:** [@biot023](https://www.ruby-forum.com/u/biot023)\
**Replies:** 2\
**Last updated:** [June 5, 2009, 10:28pm UTC](https://www.ruby-forum.com/t/response-should-be-success-what-does-this-prove/169576 "2009-06-05T22:28:40Z")

</div>

Hi – if my controller action already ensures that the correct template is being rendered, what use is speccing that it should also be successful? I do it, but just because I saw someone else do it ages ago. Is there …

---

## [Open-uri 414 Request-URI Too Large](https://www.ruby-forum.com/t/open-uri-414-request-uri-too-large/164693)

<div class="topic-metadata">

**Author:** [@jay99](https://www.ruby-forum.com/u/jay99)\
**Replies:** 2\
**Last updated:** [April 4, 2009, 2:11pm UTC](https://www.ruby-forum.com/t/open-uri-414-request-uri-too-large/164693 "2009-04-04T14:11:03Z")

</div>

I am hitting a wall. This is my first attempt at ruby programming and I am sure my code leaves a lot to be desired…be gentle. I have a csv file I am loading into an array, it contains static pieces of a url that i bui…

---

## [Error at "bison parse.y" when compiling Ruby with MinGW](https://www.ruby-forum.com/t/error-at-bison-parse-y-when-compiling-ruby-with-mingw/71455)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [October 9, 2006, 5:00am UTC](https://www.ruby-forum.com/t/error-at-bison-parse-y-when-compiling-ruby-with-mingw/71455 "2006-10-09T05:00:51Z")

</div>

I’m trying to build Ruby from source with MinGW (Windows XP SP 2), and it bombs at bison: sh configure --prefix=c:\\my\_ruby --enable-shared i386-mingw32 … lots 'o stuff make gcc -g -O2 -DRUBY\_EXPORT -I. -I. -c…

---

## [Backend Ruby Developer in Berlin, Germany](https://www.ruby-forum.com/t/backend-ruby-developer-in-berlin-germany/251006)

<div class="topic-metadata">

**Author:** [@manevich](https://www.ruby-forum.com/u/manevich)\
**Replies:** 1\
**Last updated:** [November 13, 2018, 6:44am UTC](https://www.ruby-forum.com/t/backend-ruby-developer-in-berlin-germany/251006 "2018-11-13T06:44:25Z")

</div>

Hi all, there’s an amazing Backend Ruby Dev job opportunity available @ a Berlin-based travel tech startup. The role is on-site, but the company provides relocation assistance. Required qualification: experience develo…

---

## [Valiar campo null en el controller](https://www.ruby-forum.com/t/valiar-campo-null-en-el-controller/157608)

<div class="topic-metadata">

**Author:** [@vylycyn](https://www.ruby-forum.com/u/vylycyn)\
**Replies:** 7\
**Last updated:** [January 13, 2009, 10:52pm UTC](https://www.ruby-forum.com/t/valiar-campo-null-en-el-controller/157608 "2009-01-13T22:52:58Z")

</div>

Buenas. ya he buscado bastante y no logro como controlar que en mi controller no se dispare el siguiente error(1), cuando no he llenado una fecha en un formulario new la fecha la lleno con el plugin calendar\_date\_sel…

---

## [Nginx proxying do not locally save/buffer uploaded files?](https://www.ruby-forum.com/t/nginx-proxying-do-not-locally-save-buffer-uploaded-files/206567)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [May 9, 2011, 8:34am UTC](https://www.ruby-forum.com/t/nginx-proxying-do-not-locally-save-buffer-uploaded-files/206567 "2011-05-09T08:34:23Z")

</div>

Hello, I’m running nginx as a proxy in front of some backend servers, and while uploading files (HTTP PUT) nginx seems to buffer the files to local disk. This is not a possible method for this setup, because some of…

---

## [Ruby 1.9.2-p0: segmenfault in multithreading when using a custom C extension](https://www.ruby-forum.com/t/ruby-1-9-2-p0-segmenfault-in-multithreading-when-using-a-custom-c-extension/201625)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [January 12, 2011, 10:36am UTC](https://www.ruby-forum.com/t/ruby-1-9-2-p0-segmenfault-in-multithreading-when-using-a-custom-c-extension/201625 "2011-01-12T10:36:02Z")

</div>

Hi, I’ve coded a SIP protocol parser (very close to the Ragel HTTP parser) as a Ruby C extension. It works nice (even with very high traffic)… until now when I’ve tryed to add multithread logic to handle the parser SI…

---

## [Qt-Ruby implementation of the "Address Book Example"](https://www.ruby-forum.com/t/qt-ruby-implementation-of-the-address-book-example/199413)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 6\
**Last updated:** [November 21, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/qt-ruby-implementation-of-the-address-book-example/199413 "2010-11-21T17:43:25Z")

</div>

Hello, I’m trying to implement the “Address Book Example” with Qt-Ruby. http://doc.qt.nokia.com/4.7-snapshot/itemviews-addressbook.html The problem that I face is that in the AddressWidget class, there are two “addEn…

---

## [Error on running unity test: "no such file to load -- 'active\_record/version'"](https://www.ruby-forum.com/t/error-on-running-unity-test-no-such-file-to-load-active-record-version/196059)

<div class="topic-metadata">

**Author:** [@FabrSSS\_cio\_Dias](https://www.ruby-forum.com/u/FabrSSS_cio_Dias)\
**Replies:** 6\
**Last updated:** [October 6, 2010, 8:31pm UTC](https://www.ruby-forum.com/t/error-on-running-unity-test-no-such-file-to-load-active-record-version/196059 "2010-10-06T20:31:07Z")

</div>

Hi folks! I’ve been experimenting an error messagem when I try to run unity test in any model of my project. Here it is: /home/fabricio/shopcell/config/environment.rb:1:in require': no such file to load -- active\_rec…

---

## [Wrong number of arguments (0 for 1) in callback method](https://www.ruby-forum.com/t/wrong-number-of-arguments-0-for-1-in-callback-method/178904)

<div class="topic-metadata">

**Author:** [@kalpesh13131](https://www.ruby-forum.com/u/kalpesh13131)\
**Replies:** 6\
**Last updated:** [November 13, 2009, 12:10pm UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-0-for-1-in-callback-method/178904 "2009-11-13T12:10:45Z")

</div>

I was creating this simple rail application. my controller method looks like this: def create() @simple = Simple.new(params\[:simple\]) ##params coming from view @simple.save end And my model class “Simple” as below: …

---

## [BDD / cucumber thought - chaining 'Then' steps with Which](https://www.ruby-forum.com/t/bdd-cucumber-thought-chaining-then-steps-with-which/149576)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 6\
**Last updated:** [September 26, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/bdd-cucumber-thought-chaining-then-steps-with-which/149576 "2008-09-26T17:05:58Z")

</div>

Going back to the debate about keeping state between steps, I found myself with the mild urge to be able to write this today: Given there is a user And the user has 20 friends Then I should see a thumbnail of each of…

---

## [Using Array as Super Class Question](https://www.ruby-forum.com/t/using-array-as-super-class-question/253394)

<div class="topic-metadata">

**Author:** [@bryanso](https://www.ruby-forum.com/u/bryanso)\
**Replies:** 3\
**Last updated:** [December 2, 2019, 4:00pm UTC](https://www.ruby-forum.com/t/using-array-as-super-class-question/253394 "2019-12-02T16:00:06Z")

</div>

I think a Deck of cards can be modeled by an Array. So let’s say I do this: class Deck \< Array def initialize super (1..52).to\_a end end The problem I am having is this. I really like to use the inher…

---

## [Update\_attributes question](https://www.ruby-forum.com/t/update-attributes-question/234805)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 18, 2014, 11:04am UTC](https://www.ruby-forum.com/t/update-attributes-question/234805 "2014-07-18T11:04:16Z")

</div>

Can anyone help with this (I’m a novice). I am trying to update several attributes in the History table from inside another controller (Drill controller) if !(History.where(“user\_id = ? AND question\_id = ?”, current\_…

---

## [Error: Rewrite or internal redirection cycle after some time](https://www.ruby-forum.com/t/error-rewrite-or-internal-redirection-cycle-after-some-time/222918)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [September 20, 2012, 9:48am UTC](https://www.ruby-forum.com/t/error-rewrite-or-internal-redirection-cycle-after-some-time/222918 "2012-09-20T09:48:53Z")

</div>

My nginx configuration works fine, but suddenly after some time (mostly days) he begins to answer 3x and the error occurs in the log below for all requests: 2012/09/13 17:15:35 \[error\] 26027#0: \*4923 rewrite or inter…

---

## [Help with OAuth unitialized constant OAuth::VERSION](https://www.ruby-forum.com/t/help-with-oauth-unitialized-constant-oauth-version/193541)

<div class="topic-metadata">

**Author:** [@shortnose](https://www.ruby-forum.com/u/shortnose)\
**Replies:** 3\
**Last updated:** [January 18, 2011, 3:53am UTC](https://www.ruby-forum.com/t/help-with-oauth-unitialized-constant-oauth-version/193541 "2011-01-18T03:53:31Z")

</div>

I am trying to authenticate to Etsy.com’s web server using OAuth. I am getting this error: /var/lib/gems/1.8/gems/oauth-0.4.2/lib/oauth/client/helper.rb:64:in amend\_user\_agent\_header': uninitialized constant OAuth::VE…

---

## [Pasar parametros a un f.collection\_select](https://www.ruby-forum.com/t/pasar-parametros-a-un-f-collection-select/198267)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [November 4, 2010, 11:46pm UTC](https://www.ruby-forum.com/t/pasar-parametros-a-un-f-collection-select/198267 "2010-11-04T23:46:42Z")

</div>

Buenas tardes tengo un formulario el cual en un combo me despliega los departamentos que tengo en la base el cual lo hace perfecto, pero quiero ahora que cuando seleccione el departamento me indique solo los municipio…

---

## [Fire and forget requests](https://www.ruby-forum.com/t/fire-and-forget-requests/211257)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [August 31, 2011, 11:43am UTC](https://www.ruby-forum.com/t/fire-and-forget-requests/211257 "2011-08-31T11:43:19Z")

</div>

Hi, We have a very specific use case and are trying to find a solution for it. We started looking at nginx as a possibility for handling this use case as we already use nginx for some of our other webserver duties. …

---

## [Warbler Tomcat Jruby Rack Timeout Problem](https://www.ruby-forum.com/t/warbler-tomcat-jruby-rack-timeout-problem/203037)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [February 13, 2011, 6:32pm UTC](https://www.ruby-forum.com/t/warbler-tomcat-jruby-rack-timeout-problem/203037 "2011-02-13T18:32:17Z")

</div>

I have an app running in tomcat from a war created with warbler running with the following: Apache Tomcat/6.0.24 rack-1.2.1 rack-mount-0.6.13 rails-3.0.4 My webxml looks like: rails.env production …

---

## [Nginx + proxy\_store + flv/mp4](https://www.ruby-forum.com/t/nginx-proxy-store-flv-mp4/176742)

<div class="topic-metadata">

**Author:** [@benjinx](https://www.ruby-forum.com/u/benjinx)\
**Replies:** 5\
**Last updated:** [October 6, 2009, 12:23am UTC](https://www.ruby-forum.com/t/nginx-proxy-store-flv-mp4/176742 "2009-10-06T00:23:04Z")

</div>

I’m trying to set up sort of an origin/edge config for nginx to stream mp4s and flvs. I’m using proxy\_store to cache flvs/mp4s from the origin on the frontends. I also want to enable seeking in those files using the …

---

## [Misma aplicaciÃ³n , firefox -\> no hay error, safari -\> error](https://www.ruby-forum.com/t/misma-aplicacia-n-firefox-no-hay-error-safari-error/142820)

<div class="topic-metadata">

**Author:** [@dvancoevorden](https://www.ruby-forum.com/u/dvancoevorden)\
**Replies:** 5\
**Last updated:** [July 11, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/misma-aplicacia-n-firefox-no-hay-error-safari-error/142820 "2008-07-11T21:42:02Z")

</div>

Estoy desarrollando una aplicaciÃ³n para ir aprendiendo el lenguaje ruby y el entorno rails, probando el plugin restful\_authentication , desarrollÃ© lo que serÃ­a el entorno de login, menu de admin y de usuario normal…

---

## [Corrupt index immediately after rebuild](https://www.ruby-forum.com/t/corrupt-index-immediately-after-rebuild/82206)

<div class="topic-metadata">

**Author:** [@Joe\_Mestople](https://www.ruby-forum.com/u/Joe_Mestople)\
**Replies:** 5\
**Last updated:** [January 18, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/corrupt-index-immediately-after-rebuild/82206 "2007-01-18T20:32:22Z")

</div>

Hello, I’m usin gferret and I’ve just attempted to build an index that contains 15,968,046 documents. I’ve rebuild the index from scratch, but when I try to search for some items I get this error: IOError: IO Error …

---

## [Http digest auth client?](https://www.ruby-forum.com/t/http-digest-auth-client/199504)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 23, 2010, 1:14am UTC](https://www.ruby-forum.com/t/http-digest-auth-client/199504 "2010-11-23T01:14:32Z")

</div>

Is there any mature library in ruby to make an HTTP request with http digest auth? Net::HTTP doesn’t seem to do it, it does basic auth only (basic auth is so insecure it ought never to be used). I can’t seem to find …

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

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