# Top

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

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

---

## [Has\_many :through failing to save changes](https://www.ruby-forum.com/t/has-many-through-failing-to-save-changes/71392)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 7\
**Last updated:** [December 14, 2006, 8:43am UTC](https://www.ruby-forum.com/t/has-many-through-failing-to-save-changes/71392 "2006-12-14T08:43:52Z")

</div>

Hi all, I’m messing around with has\_many, and has\_many :through (on edge rails), using a join model. Branches and Projects join through ProjectsAtBranches. If I do @branch.projects, I can see the associated projects,…

---

## [RAD ( Rapid Application Development)](https://www.ruby-forum.com/t/rad-rapid-application-development/69621)

<div class="topic-metadata">

**Author:** [@gugui](https://www.ruby-forum.com/u/gugui)\
**Replies:** 7\
**Last updated:** [September 22, 2006, 5:15pm UTC](https://www.ruby-forum.com/t/rad-rapid-application-development/69621 "2006-09-22T17:15:39Z")

</div>

Hi all ! is there a tool like a Glade, Delphi, Qt3 Design to work with Ruby ? thanks !

---

## [Newbie Q: "user" variable in every view?](https://www.ruby-forum.com/t/newbie-q-user-variable-in-every-view/64356)

<div class="topic-metadata">

**Author:** [@wmerydith](https://www.ruby-forum.com/u/wmerydith)\
**Replies:** 7\
**Last updated:** [June 28, 2006, 7:05am UTC](https://www.ruby-forum.com/t/newbie-q-user-variable-in-every-view/64356 "2006-06-28T07:05:25Z")

</div>

Newbie to RoR – as a long time Java Struts/etc. guy it is an awesome tool! I have implemented some basic login/session stuff with the help of a great tutorial, props to the author ( http://www.aidanf.net/rails\_user\_…

---

## [Support for Comet?](https://www.ruby-forum.com/t/support-for-comet/57793)

<div class="topic-metadata">

**Author:** [@subimage](https://www.ruby-forum.com/u/subimage)\
**Replies:** 7\
**Last updated:** [April 16, 2006, 6:12am UTC](https://www.ruby-forum.com/t/support-for-comet/57793 "2006-04-16T06:12:04Z")

</div>

So someone finally named server-push through HTTP-keepalive “Comet” It’s also been implemented in a very nice Java/Javascript library called DWR. Has there been any discussion by “the core” about adding this to Rail…

---

## [Curriculum for Teaching Ruby to C++ Professionals](https://www.ruby-forum.com/t/curriculum-for-teaching-ruby-to-c-professionals/74067)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 7\
**Last updated:** [February 28, 2006, 6:24am UTC](https://www.ruby-forum.com/t/curriculum-for-teaching-ruby-to-c-professionals/74067 "2006-02-28T06:24:28Z")

</div>

Hi Rubyists, I’m a game programmer by profession. I’m setting up a little “Learn Ruby” course for the rest of the programmers at work. Ruby may be useful for internal tools for us, but it’s not embeddable because of …

---

## [Generating HTML instead of XHTML](https://www.ruby-forum.com/t/generating-html-instead-of-xhtml/73191)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 7\
**Last updated:** [February 26, 2006, 4:37pm UTC](https://www.ruby-forum.com/t/generating-html-instead-of-xhtml/73191 "2006-02-26T16:37:24Z")

</div>

After reading http://www.hixie.ch/advocacy/xhtml and having some headaches with IE, I wonder whether helpers can be configured to generate HTML instead of XHTML. – fxn

---

## [Use of SET command in find\_by\_sql](https://www.ruby-forum.com/t/use-of-set-command-in-find-by-sql/50828)

<div class="topic-metadata">

**Author:** [@steveoco](https://www.ruby-forum.com/u/steveoco)\
**Replies:** 7\
**Last updated:** [December 21, 2005, 8:30pm UTC](https://www.ruby-forum.com/t/use-of-set-command-in-find-by-sql/50828 "2005-12-21T20:30:26Z")

</div>

Hi, I’m trying to execute something like this method in a model: def self.sql\_for\_rankings() sql = "SET @counter:=0;" sql \<\< " SET @counter:=0; SELECT \*, @counter:=@counter+1 AS rank …

---

## [Please give some tutorial about Testing in Rails with Rspec and TDD](https://www.ruby-forum.com/t/please-give-some-tutorial-about-testing-in-rails-with-rspec-and-tdd/235160)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 6\
**Last updated:** [June 3, 2013, 6:32pm UTC](https://www.ruby-forum.com/t/please-give-some-tutorial-about-testing-in-rails-with-rspec-and-tdd/235160 "2013-06-03T18:32:52Z")

</div>

Hi I’m doing with Test in Rails with Rspec and TDD I try to search some Link in Internet but I want somebody can give me instruction about Rspec and TDD. Thanks…

---

## [How to make a model or a model decorator aware of its controller in Rails?](https://www.ruby-forum.com/t/how-to-make-a-model-or-a-model-decorator-aware-of-its-controller-in-rails/223441)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [October 12, 2012, 9:27am UTC](https://www.ruby-forum.com/t/how-to-make-a-model-or-a-model-decorator-aware-of-its-controller-in-rails/223441 "2012-10-12T09:27:16Z")

</div>

Is a decorator, like Draper, a good place to store the controller and routes associated with a given model? I would like to be able to pass one or several model objects to a generic view, and have the view automatica…

---

## [Mod\_aclr2](https://www.ruby-forum.com/t/mod-aclr2/215639)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [January 13, 2012, 1:55pm UTC](https://www.ruby-forum.com/t/mod-aclr2/215639 "2012-01-13T13:55:42Z")

</div>

Hello! Ever wondered how to set up NGINX as a local proxy for Apache 2.x with minimum efforts? Check out this module: Feedback is welcome!

---

## [Rake db:create fails](https://www.ruby-forum.com/t/rake-db-create-fails/205989)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [April 22, 2011, 4:46pm UTC](https://www.ruby-forum.com/t/rake-db-create-fails/205989 "2011-04-22T16:46:34Z")

</div>

Hello folks, I´m here trying to find the way to solve my problem. When i try to run rake db:create or rake db:create:all the process stops and the databases are not created. I change the directives, putting --trace …

---

## [Find block in a long string](https://www.ruby-forum.com/t/find-block-in-a-long-string/197724)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 6\
**Last updated:** [October 19, 2010, 7:51pm UTC](https://www.ruby-forum.com/t/find-block-in-a-long-string/197724 "2010-10-19T19:51:15Z")

</div>

Hi, I am parsing a rss feed and i am try to extract a specific element from an attribute. The attribute looks like this, and I would like to extract the location from it. “\<p\>\\n \<strong\>Location:\</strong\> Columbus, …

---

## [Should contain vs. =~](https://www.ruby-forum.com/t/should-contain-vs/194500)

<div class="topic-metadata">

**Author:** [@Brennon\_B](https://www.ruby-forum.com/u/Brennon_B)\
**Replies:** 6\
**Last updated:** [September 6, 2010, 4:51pm UTC](https://www.ruby-forum.com/t/should-contain-vs/194500 "2010-09-06T16:51:47Z")

</div>

I’m developing another view test. Relevant example: it “should show the item’s url” do rendered.should contain(“http://www.example.com”) end I’m calling render in a before block. I have other similar examples on t…

---

## [Come passare un parametro aggiuntivo in una link\_to?](https://www.ruby-forum.com/t/come-passare-un-parametro-aggiuntivo-in-una-link-to/191105)

<div class="topic-metadata">

**Author:** [@pezzuya](https://www.ruby-forum.com/u/pezzuya)\
**Replies:** 6\
**Last updated:** [July 6, 2010, 4:01pm UTC](https://www.ruby-forum.com/t/come-passare-un-parametro-aggiuntivo-in-una-link-to/191105 "2010-07-06T16:01:56Z")

</div>

Ci ero riuscito e guardando gli esempi in rete mi ricordavo anche di averlo fatto correttamente, fatto stÃ che con la seguente istruzione: \<%= link\_to image\_tag(‘delete.gif’),{ :controller =\> “users”, :method =\> :del…

---

## [Boids, a use case](https://www.ruby-forum.com/t/boids-a-use-case/185537)

<div class="topic-metadata">

**Author:** [@thunk](https://www.ruby-forum.com/u/thunk)\
**Replies:** 6\
**Last updated:** [March 22, 2010, 2:27pm UTC](https://www.ruby-forum.com/t/boids-a-use-case/185537 "2010-03-22T14:27:31Z")

</div>

Guys, My graphical ControlPanel is written in Wee for the web and without that there is only a bunch of “boring” text in my current development environment. The output is rather domain dependent because that is what …

---

## [Writing to database row based on column name with FasterCSV](https://www.ruby-forum.com/t/writing-to-database-row-based-on-column-name-with-fastercsv/182790)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 6\
**Last updated:** [February 2, 2010, 9:27pm UTC](https://www.ruby-forum.com/t/writing-to-database-row-based-on-column-name-with-fastercsv/182790 "2010-02-02T21:27:21Z")

</div>

Hello all, I’ve added a couple new columns to a database table. I was trying to add default data as the .csv file is being read into the table. I’m not sure on how to do this. import\_irb\_file - def import\_irb\_file …

---

## [How to: Put multiple IDs into the params (when using a link)](https://www.ruby-forum.com/t/how-to-put-multiple-ids-into-the-params-when-using-a-link/179681)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 6\
**Last updated:** [December 2, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/how-to-put-multiple-ids-into-the-params-when-using-a-link/179681 "2009-12-02T15:39:36Z")

</div>

Hi there, I’m getting the error: No route matches { :controller =\> “user/agentsubdomains”, :action =\> “destroy\_double”, :subdomain\_id =\> 7, :agent\_id =\> 11 } Is it not possible to put as many “whatever\_ids” as I wa…

---

## [\[BUG: trunk\] GC mark bug](https://www.ruby-forum.com/t/bug-trunk-gc-mark-bug/177053)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 6\
**Last updated:** [October 16, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/bug-trunk-gc-mark-bug/177053 "2009-10-16T15:41:28Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!0J2\<$N$h$&$K!$e(BGC.stress = true e$B$H$7$Fe(B fileutils e$B$re(B require e$B$9$k$He(B SEGV e$B$7$^$9!%B?J,!$e(Bmark e$B%\_%9$J$s$8$c$J$$$+$H;W$$$^$9!%$h$/$o$+$i$J$$$N$G!$$He(B e$B$j$"$($:EP…

---

## [Some questions about audio output and under-runs on a custom block](https://www.ruby-forum.com/t/some-questions-about-audio-output-and-under-runs-on-a-custom-block/175100)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 6\
**Last updated:** [September 9, 2009, 3:57am UTC](https://www.ruby-forum.com/t/some-questions-about-audio-output-and-under-runs-on-a-custom-block/175100 "2009-09-09T03:57:37Z")

</div>

Hi, I’ve got my custom block producing mono audio at 8KS/s which I am sending to an audio\_sink(8000, “plughw:0,0”) and have some questions. First question: what is the range of values that each output sample can ass…

---

## [About Latency](https://www.ruby-forum.com/t/about-latency/116365)

<div class="topic-metadata">

**Author:** [@KC\_Huang](https://www.ruby-forum.com/u/KC_Huang)\
**Replies:** 6\
**Last updated:** [May 1, 2009, 12:33am UTC](https://www.ruby-forum.com/t/about-latency/116365 "2009-05-01T00:33:19Z")

</div>

Hi all: I have two questions about Gnuradio latency: In transmit path, the USB delay is constant due to the 32KB buffer between “signal source output” and “USB”. If the sampling rate is 1MS/s and each sample is co…

---

## [Noob - added a column via migration but get error on insert](https://www.ruby-forum.com/t/noob-added-a-column-via-migration-but-get-error-on-insert/156057)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 6\
**Last updated:** [December 22, 2008, 5:40am UTC](https://www.ruby-forum.com/t/noob-added-a-column-via-migration-but-get-error-on-insert/156057 "2008-12-22T05:40:10Z")

</div>

Hello! I’m very new to ruby and ruby on rails. I’m following a tutorial found here: I’m running NetBeans as an IDE, with jruby, rails and MySQL. Here is the basic rundown of what I have done Created db via Rake …

---

## [Problem with destroying multiple records](https://www.ruby-forum.com/t/problem-with-destroying-multiple-records/154745)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 6\
**Last updated:** [December 4, 2008, 1:23pm UTC](https://www.ruby-forum.com/t/problem-with-destroying-multiple-records/154745 "2008-12-04T13:23:26Z")

</div>

Hi , i am facing problem while i am writing code e.g. People.find\_by\_id(params\[:id\]) comment.find\_by\_id(params\[:id\]) when this execute it will delete only one record from the database which it get first. It will ke…

---

## [Is there a way to AutoParse a string to another type - e.g. if a Date format then date, else if inte](https://www.ruby-forum.com/t/is-there-a-way-to-autoparse-a-string-to-another-type-e-g-if-a-date-format-then-date-else-if-inte/145120)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 6\
**Last updated:** [August 6, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-autoparse-a-string-to-another-type-e-g-if-a-date-format-then-date-else-if-inte/145120 "2008-08-06T15:52:54Z")

</div>

Hi, Is there a way to AutoParse a string to another type - e.g. if a Date format then date, else if integer than Integer etc I’m wanting to pass search parameters via a URL, however since everything in the URL will…

---

## [Simple array question](https://www.ruby-forum.com/t/simple-array-question/108863)

<div class="topic-metadata">

**Author:** [@harper](https://www.ruby-forum.com/u/harper)\
**Replies:** 6\
**Last updated:** [July 8, 2007, 11:54am UTC](https://www.ruby-forum.com/t/simple-array-question/108863 "2007-07-08T11:54:14Z")

</div>

is there a nice clean method to do the following: a = Module.new(:att1 =\> 1, :att2 =\> “abc”) b = Module.new(:att1 =\> 1, :att2 =\> “adfbc”) c = Module.new(:att1 =\> 2, :att2 =\> “abcasdf”) d = Module.new(:att1 =\> 1, :att…

---

## [How to represent Date before epoch as a integer](https://www.ruby-forum.com/t/how-to-represent-date-before-epoch-as-a-integer/93251)

<div class="topic-metadata">

**Author:** [@yaxm](https://www.ruby-forum.com/u/yaxm)\
**Replies:** 6\
**Last updated:** [May 1, 2007, 5:54am UTC](https://www.ruby-forum.com/t/how-to-represent-date-before-epoch-as-a-integer/93251 "2007-05-01T05:54:24Z")

</div>

Hi, I provide a people search function that a user can specify a age range. I use acts\_as\_ferret for the search. I’d like to represent a user’s birth date as a integer number, so that I can tell Ferret to do the comp…

---

## [Iterating through 2 fields for one hash, or array](https://www.ruby-forum.com/t/iterating-through-2-fields-for-one-hash-or-array/85705)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 6\
**Last updated:** [February 16, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/iterating-through-2-fields-for-one-hash-or-array/85705 "2007-02-16T15:48:11Z")

</div>

Hello, I’m using Jamey C.’ KirbyBase as a database. The beauty of it is, of course, that it’s all pure Ruby. . . . I need to iterate through a table with multiple fields. I’ve shown here a very rudimentary example of…

---

## [Lista atascada](https://www.ruby-forum.com/t/lista-atascada/80111)

<div class="topic-metadata">

**Author:** [@Manuel\_GonzSSSSlez\_S](https://www.ruby-forum.com/u/Manuel_GonzSSSSlez_S)\
**Replies:** 6\
**Last updated:** [December 21, 2006, 5:39pm UTC](https://www.ruby-forum.com/t/lista-atascada/80111 "2006-12-21T17:39:48Z")

</div>

Hola a todos, como habréis comprobado la lista ha estado parada un par de días. La verdad es que no he sido consciente de ello hasta que me han avisado algunos suscriptores muy amablemente. Yo pensaba que estaríais mu…

---

## [How to understand why object is not collected?](https://www.ruby-forum.com/t/how-to-understand-why-object-is-not-collected/73988)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokSS\_Sh](https://www.ruby-forum.com/u/Victor_SZverokSS_Sh)\
**Replies:** 6\
**Last updated:** [October 28, 2006, 10:39pm UTC](https://www.ruby-forum.com/t/how-to-understand-why-object-is-not-collected/73988 "2006-10-28T22:39:59Z")

</div>

Hi all. Here’s a problem. I have some object of MyClass with complex “freeing” logic, and I want to test this logic. I do: span = … #somehow created object ObjectSpace.define\_finalizer(span, proc{p “gc ok”}) …

---

## [Diff between redirect\_to :action and calling action/render?](https://www.ruby-forum.com/t/diff-between-redirect-to-action-and-calling-action-render/71937)

<div class="topic-metadata">

**Author:** [@yardboy](https://www.ruby-forum.com/u/yardboy)\
**Replies:** 6\
**Last updated:** [October 12, 2006, 4:16pm UTC](https://www.ruby-forum.com/t/diff-between-redirect-to-action-and-calling-action-render/71937 "2006-10-12T16:16:52Z")

</div>

I’ve seen these two constructs used in different places and was wondering if someone could explain the differences in use, ie why one or the other in specific situations… def index redirect\_to :action =\> ‘list’ end …

---

## [REST on rails](https://www.ruby-forum.com/t/rest-on-rails/66938)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 6\
**Last updated:** [August 30, 2006, 3:12pm UTC](https://www.ruby-forum.com/t/rest-on-rails/66938 "2006-08-30T15:12:53Z")

</div>

Hi, I just heard about REST capabilities of rails 1.1. Does anyone know a good tutorial, or good article to begin with? Thank you

---

## [What did I do to my app? (Superclass mismatch?)](https://www.ruby-forum.com/t/what-did-i-do-to-my-app-superclass-mismatch/65408)

<div class="topic-metadata">

**Author:** [@tladuke](https://www.ruby-forum.com/u/tladuke)\
**Replies:** 6\
**Last updated:** [August 18, 2006, 1:09am UTC](https://www.ruby-forum.com/t/what-did-i-do-to-my-app-superclass-mismatch/65408 "2006-08-18T01:09:37Z")

</div>

It was working before (as far as I can tell), but I freezed\_edge and now… The first time I load this page, it works fine, the second time I get the superclass mismatch, the third time (and any subsequent times ) i ge…

---

## [Capistrano deployment questions == Best practice type ones](https://www.ruby-forum.com/t/capistrano-deployment-questions-best-practice-type-ones/97383)

<div class="topic-metadata">

**Author:** [@Mats\_P](https://www.ruby-forum.com/u/Mats_P)\
**Replies:** 6\
**Last updated:** [July 8, 2006, 1:55am UTC](https://www.ruby-forum.com/t/capistrano-deployment-questions-best-practice-type-ones/97383 "2006-07-08T01:55:07Z")

</div>

Hi everyone, I’ve been sold on the whole idea of using Capistrano for deployment of my sites and have successfully deployed three apps in three different environments all with success. As I’m trying to configure my s…

---

## [Simple post to IIS Server using net/http](https://www.ruby-forum.com/t/simple-post-to-iis-server-using-net-http/64156)

<div class="topic-metadata">

**Author:** [@ealdaz](https://www.ruby-forum.com/u/ealdaz)\
**Replies:** 6\
**Last updated:** [June 24, 2006, 1:38pm UTC](https://www.ruby-forum.com/t/simple-post-to-iis-server-using-net-http/64156 "2006-06-24T13:38:44Z")

</div>

Dear All I have a simple application that starts by sending a post to an IIS Server with user name and password information. Incredibly it works fine when the ruby application is run in windows, but when run from lin…

---

## [Running through results of find()](https://www.ruby-forum.com/t/running-through-results-of-find/57829)

<div class="topic-metadata">

**Author:** [@S-redyck](https://www.ruby-forum.com/u/S-redyck)\
**Replies:** 6\
**Last updated:** [April 15, 2006, 9:33am UTC](https://www.ruby-forum.com/t/running-through-results-of-find/57829 "2006-04-15T09:33:24Z")

</div>

Hi, I’ve got a question about the find() method in RoR This is my code: actions=Action.find(:all, :conditions =\> “ActivityID=‘actid’”) This should return a list, array, hash, … ? of Actions. What type of data does f…

---

## [The Golden Fibbonacci Ratio (#69)](https://www.ruby-forum.com/t/the-golden-fibbonacci-ratio-69/77002)

<div class="topic-metadata">

**Author:** [@MenTaLguY](https://www.ruby-forum.com/u/MenTaLguY)\
**Replies:** 6\
**Last updated:** [March 6, 2006, 10:03am UTC](https://www.ruby-forum.com/t/the-golden-fibbonacci-ratio-69/77002 "2006-03-06T10:03:42Z")

</div>

Here’s my solution. It’s fairly pedestrian, although the size and aspect ratio of the ASCII-art squares are configurable. It builds the picture as an array of strings, appending alternately to the end of the array an…

---

## [How does one determine an objects class?](https://www.ruby-forum.com/t/how-does-one-determine-an-objects-class/99761)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 6\
**Last updated:** [February 2, 2006, 12:44am UTC](https://www.ruby-forum.com/t/how-does-one-determine-an-objects-class/99761 "2006-02-02T00:44:48Z")

</div>

Say I’ve got str = IO.read(“testfile\_for\_using\_file\_open”) how can Idetermone what class this object belongs to?

---

## [Curses about libcurse](https://www.ruby-forum.com/t/curses-about-libcurse/51830)

<div class="topic-metadata">

**Author:** [@zimba.tm](https://www.ruby-forum.com/u/zimba.tm)\
**Replies:** 6\
**Last updated:** [December 3, 2005, 7:22pm UTC](https://www.ruby-forum.com/t/curses-about-libcurse/51830 "2005-12-03T19:22:28Z")

</div>

Hello, I hate curses. Not that much, but it’s really not that easy to build ruby console applications using it. Are there other libraries I could use instead of libcurses ? My main complains are : you can’t access …

---

## [Carrierwave + RMagick with animated gif upload is too slow](https://www.ruby-forum.com/t/carrierwave-rmagick-with-animated-gif-upload-is-too-slow/245116)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [October 24, 2016, 9:47am UTC](https://www.ruby-forum.com/t/carrierwave-rmagick-with-animated-gif-upload-is-too-slow/245116 "2016-10-24T09:47:11Z")

</div>

Hi, I have an app with carrierwave + RMagick setup and i’m generating 3 versions for each images. I don’t have a problem with non-animated gifs file but when i’m uploading animated gif file, the upload seems to be so …

---

## [Has\_many through association in active\_model\_serializer](https://www.ruby-forum.com/t/has-many-through-association-in-active-model-serializer/243301)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [September 9, 2015, 2:46am UTC](https://www.ruby-forum.com/t/has-many-through-association-in-active-model-serializer/243301 "2015-09-09T02:46:04Z")

</div>

Any thought how I can implement active\_mode\_serializer in a has\_many through association. I have three models: class Menu \< ActiveRecord::Base has\_many :menu\_details, inverse\_of: :menu, dependent: :destroy\* has\_many…

---

## [AASM gem: How to stub or config :no\_direct\_assignment to false when make rspec on rails?](https://www.ruby-forum.com/t/aasm-gem-how-to-stub-or-config-no-direct-assignment-to-false-when-make-rspec-on-rails/234645)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [March 19, 2015, 8:40am UTC](https://www.ruby-forum.com/t/aasm-gem-how-to-stub-or-config-no-direct-assignment-to-false-when-make-rspec-on-rails/234645 "2015-03-19T08:40:10Z")

</div>

Hi all, I am newbie AASM. I just tried to use AASM on my project. I have a problem: at Model class Job include AASM aasm :no\_direct\_assignment =\> true do state :sleeping, :initial =\> true state :running state :cl…

---

## [ProcessBuilder, require, load path, and java.class.path](https://www.ruby-forum.com/t/processbuilder-require-load-path-and-java-class-path/238367)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 7, 2014, 7:15am UTC](https://www.ruby-forum.com/t/processbuilder-require-load-path-and-java-class-path/238367 "2014-01-07T07:15:44Z")

</div>

I am working with a library that uses ProcessBuilder to fork another JVM process however the forked process is unable to find any of the jars I required in my ruby program e.g. “Error: Could not find or load main clas…

---

## [Rails associations](https://www.ruby-forum.com/t/rails-associations/221827)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [August 6, 2012, 8:30am UTC](https://www.ruby-forum.com/t/rails-associations/221827 "2012-08-06T08:30:08Z")

</div>

Hi, I am new to RoR and have been pulling my hair out trying to figure out associations. Lets say I have 2 tables: vehicles and vehicle\_types. ONE vehicle HAS ONE vehicle\_type. Therefore, in my opinion, vehicle\_type …

---

## [Moving View Logic into Controller](https://www.ruby-forum.com/t/moving-view-logic-into-controller/199595)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 8\
**Last updated:** [November 24, 2010, 9:30pm UTC](https://www.ruby-forum.com/t/moving-view-logic-into-controller/199595 "2010-11-24T21:30:16Z")

</div>

Hello, Rails Best Practices is telling me to move some code from one of my helper views into the controller. I was hoping to get some assistance as I’m unsure how to do this and still have the application work. The h…

---

## [A Confirmation System?](https://www.ruby-forum.com/t/a-confirmation-system/186420)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 8\
**Last updated:** [April 8, 2010, 1:53am UTC](https://www.ruby-forum.com/t/a-confirmation-system/186420 "2010-04-08T01:53:44Z")

</div>

Hey, I’m not sure how complex this really is, but i hope it isn’t too difficult for you guys to explain here My question is, is there a way to intercept a Submit action (for a scaffold, etc) of a form, and take that …

---

## [Meaning of '!(...' EG: "myObject.parse!(argv)" ..?](https://www.ruby-forum.com/t/meaning-of-eg-myobject-parse-argv/179073)

<div class="topic-metadata">

**Author:** [@michelle1](https://www.ruby-forum.com/u/michelle1)\
**Replies:** 8\
**Last updated:** [November 17, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/meaning-of-eg-myobject-parse-argv/179073 "2009-11-17T21:07:09Z")

</div>

Hi there, QUESTION: Whilst “parse(argv)” is obvious, what does “opts.parse!(argv)” do in the below code? And what is the word use to describe doing this? CONTEXT: I am looking at a class called ‘Options’ whose job i…

---

## [Raw Sockets for packet sniffing](https://www.ruby-forum.com/t/raw-sockets-for-packet-sniffing/142993)

<div class="topic-metadata">

**Author:** [@fdmanana](https://www.ruby-forum.com/u/fdmanana)\
**Replies:** 0\
**Last updated:** [July 14, 2008, 9:21am UTC](https://www.ruby-forum.com/t/raw-sockets-for-packet-sniffing/142993 "2008-07-14T09:21:34Z")

</div>

Hello, I am trying to use, through 100% Ruby code, Linux Raw Sockets for packet sniffing. I am using the same syscalls that I would use in C code. I am able to inject packets through the raw socket but not to sniff pa…

---

## [Connect Rails to an existant database](https://www.ruby-forum.com/t/connect-rails-to-an-existant-database/142699)

<div class="topic-metadata">

**Author:** [@zzzer](https://www.ruby-forum.com/u/zzzer)\
**Replies:** 8\
**Last updated:** [July 11, 2008, 9:36am UTC](https://www.ruby-forum.com/t/connect-rails-to-an-existant-database/142699 "2008-07-11T09:36:38Z")

</div>

Hello, I’ve been using rails for a few days and I know how to create a new application and new database. My problem is that I now have to connect Rails to an existant database, and I don’t know how to do … Can someb…

---

## [Nginx and IE](https://www.ruby-forum.com/t/nginx-and-ie/127287)

<div class="topic-metadata">

**Author:** [@just\_starting](https://www.ruby-forum.com/u/just_starting)\
**Replies:** 8\
**Last updated:** [January 29, 2008, 1:57am UTC](https://www.ruby-forum.com/t/nginx-and-ie/127287 "2008-01-29T01:57:00Z")

</div>

hi, I have set the gzip flag in the config file to ON to gzip the static files on the fly. Now the problem is this flag is breaking the pages for some version of IE6. So, is there any way I can set the flag ON/OFF …

---

## [Hi..Guys new plugin again](https://www.ruby-forum.com/t/hi-guys-new-plugin-again/113810)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 8\
**Last updated:** [September 5, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/hi-guys-new-plugin-again/113810 "2007-09-05T14:40:39Z")

</div>

Hi… Guys new plugin again Foreign Key Associations is a plugin that automatically creates associations based on foreign-keys. The associations are created at runtime-ie. as your ActiveRecord models are loaded-so they…

---

## [Validates\_length\_of :message not working](https://www.ruby-forum.com/t/validates-length-of-message-not-working/69863)

<div class="topic-metadata">

**Author:** [@chadster](https://www.ruby-forum.com/u/chadster)\
**Replies:** 8\
**Last updated:** [October 8, 2006, 8:13pm UTC](https://www.ruby-forum.com/t/validates-length-of-message-not-working/69863 "2006-10-08T20:13:26Z")

</div>

I have the following code: validates\_length\_of :city, :within =\> 1…30, :message =\> “Your city can’t be blank” But the error message keeps showing the default message “City is too short (minimum is 1 characters)”. …

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

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