# Top

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

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

---

## [Error of should validate\_presence\_of (shoulda)](https://www.ruby-forum.com/t/error-of-should-validate-presence-of-shoulda/209191)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [July 7, 2011, 6:41pm UTC](https://www.ruby-forum.com/t/error-of-should-validate-presence-of-shoulda/209191 "2011-07-07T18:41:21Z")

</div>

Hi all, I am a new user of shoulda unit test and using the shoulda to test the model and I get the error as below the error is Failure: test: validation od reason should require phrase\_id to be set. (ReasonTest) …

---

## [Problem with running rspec](https://www.ruby-forum.com/t/problem-with-running-rspec/204951)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 30, 2011, 3:12pm UTC](https://www.ruby-forum.com/t/problem-with-running-rspec/204951 "2011-03-30T15:12:27Z")

</div>

When I’m trying to run rspecs for my project I get following exception: jruby-1.6.0$ jruby --1.9 -S bundle exec rspec spec/models/user\_spec.rb No DRb server is running. Running in local process instead … /home/lucassu…

---

## [Open source newsletter software?](https://www.ruby-forum.com/t/open-source-newsletter-software/62985)

<div class="topic-metadata">

**Author:** [@Todd\_Matthews](https://www.ruby-forum.com/u/Todd_Matthews)\
**Replies:** 2\
**Last updated:** [March 17, 2011, 11:05am UTC](https://www.ruby-forum.com/t/open-source-newsletter-software/62985 "2011-03-17T11:05:22Z")

</div>

is anyone aware of open source newsletter software built with rails? i am currently using dadamail, and like it, but i’d like a system that is easily integrated with user registration, etc. it was recommended that i t…

---

## [Problems getting NginX to cache](https://www.ruby-forum.com/t/problems-getting-nginx-to-cache/185856)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 2\
**Last updated:** [March 28, 2010, 1:33am UTC](https://www.ruby-forum.com/t/problems-getting-nginx-to-cache/185856 "2010-03-28T01:33:46Z")

</div>

Folks, I’ve been trying to setup NginX as a frontend cache for a webserver. This is rather challenging, as the documentation is a little flakey but it does look like it should be fairly straight forward. The reverse …

---

## [Speccing module which should be included in controller](https://www.ruby-forum.com/t/speccing-module-which-should-be-included-in-controller/163242)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 5:59pm UTC](https://www.ruby-forum.com/t/speccing-module-which-should-be-included-in-controller/163242 "2009-03-18T17:59:45Z")

</div>

Dear all, I have a module ApiAccessControl which is included in all controllers which deal with the API. It sees if the users is valid, logs etc etc. I want to see if this module does what it is supposed to but I dont …

---

## [\[rspec/tm\] When running the textmate bundle hook using command-r I get an error about missing rubyge](https://www.ruby-forum.com/t/rspec-tm-when-running-the-textmate-bundle-hook-using-command-r-i-get-an-error-about-missing-rubyge/162673)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 2\
**Last updated:** [March 13, 2009, 8:19am UTC](https://www.ruby-forum.com/t/rspec-tm-when-running-the-textmate-bundle-hook-using-command-r-i-get-an-error-about-missing-rubyge/162673 "2009-03-13T08:19:50Z")

</div>

I get the following error using both edge version of the TM bundle and rspec/rspec-rails in vendor/plugins. /Users/nshb/Library/Application Support/TextMate/Bundles/ RSpec.tmbundle/Support/lib/spec/mate.rb:2:in requir…

---

## [NGINX - traffic log / graphing / billing per destination ip](https://www.ruby-forum.com/t/nginx-traffic-log-graphing-billing-per-destination-ip/162285)

<div class="topic-metadata">

**Author:** [@Payam\_C](https://www.ruby-forum.com/u/Payam_C)\
**Replies:** 2\
**Last updated:** [March 8, 2009, 7:00am UTC](https://www.ruby-forum.com/t/nginx-traffic-log-graphing-billing-per-destination-ip/162285 "2009-03-08T07:00:11Z")

</div>

Hi Guys, I’ve spend some time going through google trying to find an elegant solution for traffic logging/ graphing(rrd) / billing(based on rrd?) but have come up empty handed. Right now here is what I am doing: I ha…

---

## [FastCGI response headers issue](https://www.ruby-forum.com/t/fastcgi-response-headers-issue/152324)

<div class="topic-metadata">

**Author:** [@Florian\_Schulze](https://www.ruby-forum.com/u/Florian_Schulze)\
**Replies:** 2\
**Last updated:** [November 3, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/fastcgi-response-headers-issue/152324 "2008-11-03T12:30:00Z")

</div>

Hi! I’m using nginx 0.6.32 to serve a PHP application through FastCGI. For some reason nginx doesn’t seem to forward the Content-Type, Content-Length and Content-Encoding response headers. This causes javascript and …

---

## [ActiveRecord: Observer tempor Ã¤r abstellen](https://www.ruby-forum.com/t/activerecord-observer-tempor-a-r-abstellen/137777)

<div class="topic-metadata">

**Author:** [@spiderware](https://www.ruby-forum.com/u/spiderware)\
**Replies:** 2\
**Last updated:** [May 16, 2008, 10:54am UTC](https://www.ruby-forum.com/t/activerecord-observer-tempor-a-r-abstellen/137777 "2008-05-16T10:54:01Z")

</div>

Hi Liste, hier ist mein Szenario: Auf einem User \< ActiveRecord ist ein UserObserver \< ActiveRecord::Observer definiert, der bei create und save jeweils mails generiert das soll er auch in 9 von 10 Fällen tun: Nur i…

---

## [Implement "Clear form"](https://www.ruby-forum.com/t/implement-clear-form/137309)

<div class="topic-metadata">

**Author:** [@djlewis](https://www.ruby-forum.com/u/djlewis)\
**Replies:** 2\
**Last updated:** [May 11, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/implement-clear-form/137309 "2008-05-11T23:46:09Z")

</div>

What’s a good way to clear all the fields a form that can apply generally to any form (so I can write one method and apply it to any one of a set of forms). If that can’t be done with a form (say because I can’t know…

---

## [Quickest and least expensive way to retrieve URL segment](https://www.ruby-forum.com/t/quickest-and-least-expensive-way-to-retrieve-url-segment/135363)

<div class="topic-metadata">

**Author:** [@orange](https://www.ruby-forum.com/u/orange)\
**Replies:** 2\
**Last updated:** [April 21, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/quickest-and-least-expensive-way-to-retrieve-url-segment/135363 "2008-04-21T16:30:34Z")

</div>

I would like to check a url segment (in this case whether the site is /en/ or /zh/) so I can display content based on language. In Radiant what is the quickest and least expensive way to do this? Thanks!

---

## [DRb Server can not run!](https://www.ruby-forum.com/t/drb-server-can-not-run/109704)

<div class="topic-metadata">

**Author:** [@grandtang](https://www.ruby-forum.com/u/grandtang)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 10:41pm UTC](https://www.ruby-forum.com/t/drb-server-can-not-run/109704 "2008-03-28T22:41:54Z")

</div>

I’m doing the next. 1, rails hecc 2, cd hecc 3, script/plugin install svn://projects.jkraemer.net/acts\_as\_ferret/tags/stable/acts\_as\_ferret 4, RAILS\_ENV=production vendor/plugins/acts\_as\_ferret/script/ferret\_start …

---

## [Mysql gem: version specification and update problem](https://www.ruby-forum.com/t/mysql-gem-version-specification-and-update-problem/122890)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/mysql-gem-version-specification-and-update-problem/122890 "2007-12-12T20:15:38Z")

</div>

The mysql gem has unfortunate interaction between gem versions, platforms, and updating on macosx. I’m trying to figure out if it is a problem with rubygems or the specification for the mysql gem itself. The latest ve…

---

## [How to check if the logfile of a Logger instance is closed?](https://www.ruby-forum.com/t/how-to-check-if-the-logfile-of-a-logger-instance-is-closed/92258)

<div class="topic-metadata">

**Author:** [@ChrisKaelin](https://www.ruby-forum.com/u/ChrisKaelin)\
**Replies:** 2\
**Last updated:** [April 17, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/how-to-check-if-the-logfile-of-a-logger-instance-is-closed/92258 "2007-04-17T17:25:41Z")

</div>

If I do: l = Logger.new(“testlog”) l.close now if I want to close it again, I get: IOError: closed stream So far, I have checked for this error (by rescue clause), to see, if the logfile is already closed. Is there…

---

## [FileUtils.mv raises Errno::EPERM](https://www.ruby-forum.com/t/fileutils-mv-raises-errno-eperm/86739)

<div class="topic-metadata">

**Author:** [@GO\_Noguchi](https://www.ruby-forum.com/u/GO_Noguchi)\
**Replies:** 2\
**Last updated:** [March 3, 2007, 3:19pm UTC](https://www.ruby-forum.com/t/fileutils-mv-raises-errno-eperm/86739 "2007-03-03T15:19:01Z")

</div>

e$BLn8}$H?=$7$^$9!#e(B File.renamee$B$,e(BErrno::EXDEVe$B$K$J$k\>u67$G%G%#%l%/%H%j$r0\\F0$9$k$He(B e$B%G%#%l%/%H%j$KBP$7$Fe(BFile.unlinke$B$7$h$&$H$7$F!"e(BFileUtils.mve$B$,e(B e$B%(%i!\<$K$J$j$^$9!#e(B $ cd ~ $ mkdir …

---

## [Two-side-polymorphic association - or: how to link multiple](https://www.ruby-forum.com/t/two-side-polymorphic-association-or-how-to-link-multiple/81689)

<div class="topic-metadata">

**Author:** [@tisp](https://www.ruby-forum.com/u/tisp)\
**Replies:** 2\
**Last updated:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/two-side-polymorphic-association-or-how-to-link-multiple/81689 "2007-01-19T16:31:41Z")

</div>

Hi, I’m planning an application with a bunch of models which can be linked to each other. Since a few days I’m thinking about the right way to go, to implement these model associations. First thought was, I should use …

---

## [Don't understand an algorithm](https://www.ruby-forum.com/t/dont-understand-an-algorithm/67851)

<div class="topic-metadata">

**Author:** [@femto\_gary](https://www.ruby-forum.com/u/femto_gary)\
**Replies:** 2\
**Last updated:** [September 8, 2006, 3:30am UTC](https://www.ruby-forum.com/t/dont-understand-an-algorithm/67851 "2006-09-08T03:30:37Z")

</div>

hello all, I’m running the SCRABBLE STEMS in ruby quiz book. the second algorithm has the following code snipet: hash.each do |k, v| v = (v & 0x5555555) + ((v\>\>1) & 0x5555555) v = (v & 0x3333333) + ((v\>\>2) & 0x3333…

---

## [Ruby C extension/wrapper around C function that uses scanf](https://www.ruby-forum.com/t/ruby-c-extension-wrapper-around-c-function-that-uses-scanf/97691)

<div class="topic-metadata">

**Author:** [@1gor](https://www.ruby-forum.com/u/1gor)\
**Replies:** 2\
**Last updated:** [July 11, 2006, 3:56am UTC](https://www.ruby-forum.com/t/ruby-c-extension-wrapper-around-c-function-that-uses-scanf/97691 "2006-07-11T03:56:45Z")

</div>

I need Ruby to access a set of external command line applications for dataseries analysis. Each of these little apps simply reads data from stdin and then outputs processed results to stdout (using scanf and printf, …

---

## [Creating a "Foo has\_many bars" association where bar isn't a](https://www.ruby-forum.com/t/creating-a-foo-has-many-bars-association-where-bar-isnt-a/59958)

<div class="topic-metadata">

**Author:** [@alder](https://www.ruby-forum.com/u/alder)\
**Replies:** 2\
**Last updated:** [May 9, 2006, 10:11am UTC](https://www.ruby-forum.com/t/creating-a-foo-has-many-bars-association-where-bar-isnt-a/59958 "2006-05-09T10:11:42Z")

</div>

Hi Let’s say we have model Foo. Each Foo instance can have several bars. Those bars are primitive, so they shouldn’t be models. For example, Foo might be a type of convention, and the bars might be years the conventi…

---

## [\[RFC\] link\_if\_authorized bug/TODO patch](https://www.ruby-forum.com/t/rfc-link-if-authorized-bug-todo-patch/53741)

<div class="topic-metadata">

**Author:** [@jay-levitt](https://www.ruby-forum.com/u/jay-levitt)\
**Replies:** 2\
**Last updated:** [February 15, 2006, 11:08pm UTC](https://www.ruby-forum.com/t/rfc-link-if-authorized-bug-todo-patch/53741 "2006-02-15T23:08:33Z")

</div>

There’s a bug in link\_if\_authorized that includes the :wrap\_in hash as an attribute of the A tag, even though it tries to delete it. There’s also a noted TODO that things like :id will propagate to both the A and the …

---

## [Confused in array as key](https://www.ruby-forum.com/t/confused-in-array-as-key/239658)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [March 9, 2014, 7:51pm UTC](https://www.ruby-forum.com/t/confused-in-array-as-key/239658 "2014-03-09T19:51:07Z")

</div>

I execute program following way: dictionary = { ‘cat’ =\> ‘feline animal’, ‘dog’ =\> ‘canine animal’} dictionary.each {|key, value| puts dictionary\[key\]} Then I got output like: feline animal canine animal My questi…

---

## [Error building nginx 1.5.3 on Cygwin](https://www.ruby-forum.com/t/error-building-nginx-1-5-3-on-cygwin/245973)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [August 5, 2013, 2:32pm UTC](https://www.ruby-forum.com/t/error-building-nginx-1-5-3-on-cygwin/245973 "2013-08-05T14:32:09Z")

</div>

Hello, I’m trying to build nginx 1.5.3 on Cygwin using Windows 7. I see the following output during “make”: cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -D FD\_ SETSIZE=2048 -I src/core …

---

## [RubyKaigi 2013, 5/31(金)の'Ruby Comitter vs. the World'企画へのご協力のお願い](https://www.ruby-forum.com/t/rubykaigi-2013-5-31-ruby-comitter-vs-the-world/245444)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [May 31, 2013, 3:42am UTC](https://www.ruby-forum.com/t/rubykaigi-2013-5-31-ruby-comitter-vs-the-world/245444 "2013-05-31T03:42:23Z")

</div>

$B$+$/$?$K$G$9!#(BRubyKaigi 2013 $B$N$\[$&$+$iMh$^$7$?!#(B RubyKaigi 2013, 5/31($B6b(B)$B$N:G8e$N%3%^$K!“(B’Ruby Comitter vs. the World’$B$H$$$&(B $BFf$N4k2h$,CV$$$F$”$j$^$9!#(B $B%“%J%&%s%9$,D\>A0$K$J$C$F$7$^$FBgJQ?=$…

---

## [Reg : How to Setup debugger in ruby for Rails project](https://www.ruby-forum.com/t/reg-how-to-setup-debugger-in-ruby-for-rails-project/228732)

<div class="topic-metadata">

**Author:** [@thil](https://www.ruby-forum.com/u/thil)\
**Replies:** 4\
**Last updated:** [May 7, 2013, 5:32am UTC](https://www.ruby-forum.com/t/reg-how-to-setup-debugger-in-ruby-for-rails-project/228732 "2013-05-07T05:32:58Z")

</div>

Hi all, Have any one setup Ruby debugger for Rails application So that you can use break point and watchers to debug like firebug for javaScripts. Thanks in advance ! Senthil

---

## [Pre-cog](https://www.ruby-forum.com/t/pre-cog/227053)

<div class="topic-metadata">

**Author:** [@manjusha](https://www.ruby-forum.com/u/manjusha)\
**Replies:** 4\
**Last updated:** [March 6, 2013, 2:03am UTC](https://www.ruby-forum.com/t/pre-cog/227053 "2013-03-06T02:03:21Z")

</div>

Where can i download pre-cog? Please send me the link… Thanks, manjusha – View this message in context: http://gnuradio.4.n7.nabble.com/Pre-cog-tp39943.html Sent from the GnuRadio mailing list archive at Nabble.com.…

---

## [\[Ruby 1.9 - Feature #5142\]\[Open\] Remove ruby-mode.el from ruby's repo](https://www.ruby-forum.com/t/ruby-1-9-feature-5142-open-remove-ruby-mode-el-from-rubys-repo/210185)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 24, 2012, 4:47am UTC](https://www.ruby-forum.com/t/ruby-1-9-feature-5142-open-remove-ruby-mode-el-from-rubys-repo/210185 "2012-11-24T04:47:20Z")

</div>

Issue #5142 has been reported by Yui NARUSE. Feature #5142: Remove ruby-mode.el from ruby’s repo Author: Yui NARUSE Status: Open Priority: Normal Assignee: Category: Target version: 1.9.4 ruby-mode.el は Emacs に…

---

## [Where to store functions](https://www.ruby-forum.com/t/where-to-store-functions/222319)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [August 29, 2012, 7:42pm UTC](https://www.ruby-forum.com/t/where-to-store-functions/222319 "2012-08-29T19:42:26Z")

</div>

I am writing an optics review program that has 2 types of questions. “Static” questions are just regular questions stored in a “questions” table along with their associated correct answers and explanations. “Generated…

---

## [E100 Performance](https://www.ruby-forum.com/t/e100-performance/208879)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [June 30, 2011, 1:52pm UTC](https://www.ruby-forum.com/t/e100-performance/208879 "2011-06-30T13:52:18Z")

</div>

Hi, the simple GRC in the attachment creates lots of underflows on our E100 (“U” on console) and dropouts when looking at the spectrum. Is this as expected or how can this overload of the embedded Linux be avoided? …

---

## [Not able to run tests for rspec itself](https://www.ruby-forum.com/t/not-able-to-run-tests-for-rspec-itself/189044)

<div class="topic-metadata">

**Author:** [@Nadal](https://www.ruby-forum.com/u/Nadal)\
**Replies:** 4\
**Last updated:** [May 24, 2010, 1:15am UTC](https://www.ruby-forum.com/t/not-able-to-run-tests-for-rspec-itself/189044 "2010-05-24T01:15:36Z")

</div>

I am talking about rspec itself and running tests written for rspec. This is what I did. git clone GitHub - dchelimsky/rspec: Behaviour Driven Development framework for Ruby cd rspec rake test I am getting followi…

---

## [Prawnto: diverse viste diversi comportamenti](https://www.ruby-forum.com/t/prawnto-diverse-viste-diversi-comportamenti/178901)

<div class="topic-metadata">

**Author:** [@miclab](https://www.ruby-forum.com/u/miclab)\
**Replies:** 4\
**Last updated:** [November 13, 2009, 3:38pm UTC](https://www.ruby-forum.com/t/prawnto-diverse-viste-diversi-comportamenti/178901 "2009-11-13T15:38:05Z")

</div>

Ho un problema con la generazione di pdf con prawnto. Devo scivrer cittÃ . Nella vista index.pdf.prawn la visualizzo correttamente,nella vista show.pdf.prawn, mi da un: SyntaxError in Companies#show seguito da un c…

---

## [Nginx-0.7.63](https://www.ruby-forum.com/t/nginx-0-7-63/177921)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 4\
**Last updated:** [October 27, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/nginx-0-7-63/177921 "2009-10-27T15:35:14Z")

</div>

Changes with nginx 0.7.63 26 Oct 2009 \*) Security: now "/../" are disabled in "Destination" request header line. \*) Change: minimum supported OpenSSL version is 0.9.7. \*) Cha…

---

## [\[rails\] Plugin grafici](https://www.ruby-forum.com/t/rails-plugin-grafici/175599)

<div class="topic-metadata">

**Author:** [@pezzuya](https://www.ruby-forum.com/u/pezzuya)\
**Replies:** 4\
**Last updated:** [September 17, 2009, 9:32am UTC](https://www.ruby-forum.com/t/rails-plugin-grafici/175599 "2009-09-17T09:32:42Z")

</div>

Come da oggetto… Qualcuno saprebbe dove posso trovare dei plugin grafici di facile installazione per migliorare l’aspetto delle textarea nelle mie viste? Mi piacerebbe inserire “un qualcosa” di simile alla barra per l…

---

## [How do I work around a 'can't activate gem xxx version 1.2.3, because gem xxx version 2.3.4 is alrea](https://www.ruby-forum.com/t/how-do-i-work-around-a-cant-activate-gem-xxx-version-1-2-3-because-gem-xxx-version-2-3-4-is-alrea/172827)

<div class="topic-metadata">

**Author:** [@lycanthrope](https://www.ruby-forum.com/u/lycanthrope)\
**Replies:** 4\
**Last updated:** [July 29, 2009, 2:41am UTC](https://www.ruby-forum.com/t/how-do-i-work-around-a-cant-activate-gem-xxx-version-1-2-3-because-gem-xxx-version-2-3-4-is-alrea/172827 "2009-07-29T02:41:48Z")

</div>

How can i work around this error? Is it possible to force ruport to use 1.5.0? can’t activate fastercsv (= 1.2.3, runtime) for \[“ruport-1.6.1”\], already activated fastercsv-1.5.0 for \[\] (Gem::LoadError) Thanks, rei…

---

## [Gems:install, unpack e freeze](https://www.ruby-forum.com/t/gems-install-unpack-e-freeze/171839)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 4\
**Last updated:** [July 9, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/gems-install-unpack-e-freeze/171839 "2009-07-09T23:35:27Z")

</div>

Se in evironment.rb configuro le gemme necessarie all’applicazione e poi lancio gems:install le gemme vengono installate nel sistema come se lanciassi direttamente il comando gem install… Se successivamente lancio gem…

---

## [Try\_files issue](https://www.ruby-forum.com/t/try-files-issue/160297)

<div class="topic-metadata">

**Author:** [@xguardiola](https://www.ruby-forum.com/u/xguardiola)\
**Replies:** 4\
**Last updated:** [February 14, 2009, 12:51pm UTC](https://www.ruby-forum.com/t/try-files-issue/160297 "2009-02-14T12:51:21Z")

</div>

Hello, I’m trying to use try\_files like this (running 0.7.34) location /users/ { root /home/website/people; set $uroot 1/15/334251/fr.html; try\_files $document\_root/$uroot @django; } Despite the fact that /home/we…

---

## [Access module's anonymous parent](https://www.ruby-forum.com/t/access-modules-anonymous-parent/151867)

<div class="topic-metadata">

**Author:** [@xavier](https://www.ruby-forum.com/u/xavier)\
**Replies:** 4\
**Last updated:** [October 28, 2008, 8:43am UTC](https://www.ruby-forum.com/t/access-modules-anonymous-parent/151867 "2008-10-28T08:43:57Z")

</div>

I want the following eval to output “Foo called”, without having a named constant, since in leaks in to the calling scope: m = Module.new m.instance\_eval do def foo puts “Foo called” end ParentSelf = self class s…

---

## [$LOAD\_PATH and different OSes](https://www.ruby-forum.com/t/load-path-and-different-oses/151504)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 4\
**Last updated:** [October 22, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/load-path-and-different-oses/151504 "2008-10-22T21:18:21Z")

</div>

Looking for best practice guidance on dealing with differing paths to libraries & gems amongst OSes. I can write some reasonably decent Ruby at this point, but still a padawan when it comes to really understanding the…

---

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

<div class="topic-metadata">

**Author:** [@Sergio\_Gil\_PSSSSrez](https://www.ruby-forum.com/u/Sergio_Gil_PSSSSrez)\
**Replies:** 4\
**Last updated:** [September 16, 2008, 1:10pm UTC](https://www.ruby-forum.com/t/update-attributes-y-callbacks/148595 "2008-09-16T13:10:28Z")

</div>

Hola gente, Tengo dos preguntas, una corta de respuesta rápida, y una más larga cuya respuesta imagino que será debatible. La primera: ¿Hay alguna forma de hacerle un update\_attributes a un objeto AR sin que salten …

---

## [Mod\_parsed\_vars question](https://www.ruby-forum.com/t/mod-parsed-vars-question/148088)

<div class="topic-metadata">

**Author:** [@ryo\_sato](https://www.ruby-forum.com/u/ryo_sato)\
**Replies:** 4\
**Last updated:** [September 9, 2008, 5:52pm UTC](https://www.ruby-forum.com/t/mod-parsed-vars-question/148088 "2008-09-09T17:52:24Z")

</div>

Hi. I want to balance with URLSessionID like ^^^^^^^^^^^^^^^^ So, I recompiled nginx-0.6.31 with mod\_parsed\_vars and nginx\_upstream\_hash. But,it doesn’t work correctly. By the case,Japanese mobile phone doesn’t ac…

---

## [When to mock](https://www.ruby-forum.com/t/when-to-mock/146261)

<div class="topic-metadata">

**Author:** [@Jonathan\_Kinney](https://www.ruby-forum.com/u/Jonathan_Kinney)\
**Replies:** 4\
**Last updated:** [August 19, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/when-to-mock/146261 "2008-08-19T16:25:05Z")

</div>

I noticed that the examples on the rspec website for model code http://rspec.info/documentation/rails/writing/models.html have no mocks or stubs. However both the controller example and view example do have mocks an…

---

## [Unable to upgrade rubygems](https://www.ruby-forum.com/t/unable-to-upgrade-rubygems/141297)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 4\
**Last updated:** [June 24, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/unable-to-upgrade-rubygems/141297 "2008-06-24T14:45:21Z")

</div>

what i did : download locally rubygems-update-1.2.0.gem then : ~/gems%\> sudo gem install -l rubygems-update-1.2.0.gem Password: Successfully installed rubygems-update-1.2.0 1 gem installed however i’ve still the 1…

---

## [Ruby-debug vs. breakpoint](https://www.ruby-forum.com/t/ruby-debug-vs-breakpoint/196438)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/ruby-debug-vs-breakpoint/196438 "2007-09-25T23:10:53Z")

</div>

Okay, so it looks like getting the ole “breakpoint” working isn’t going to happen. Everyone seems to just push for making the switch over to “ruby-debug”. I’ve decided to go with the flow, but have to say that I fee…

---

## [Determining Action in the Controller](https://www.ruby-forum.com/t/determining-action-in-the-controller/109382)

<div class="topic-metadata">

**Author:** [@jwm](https://www.ruby-forum.com/u/jwm)\
**Replies:** 4\
**Last updated:** [July 14, 2007, 4:49am UTC](https://www.ruby-forum.com/t/determining-action-in-the-controller/109382 "2007-07-14T04:49:19Z")

</div>

Hi, I am trying to select a layout for a page based on what action is called. ex. if controller.action\_name == ‘about’ layout “internal” else layout “home\_static” end But I am receiving this error: undefined lo…

---

## [Encrypting password](https://www.ruby-forum.com/t/encrypting-password/108144)

<div class="topic-metadata">

**Author:** [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Replies:** 4\
**Last updated:** [June 29, 2007, 1:12pm UTC](https://www.ruby-forum.com/t/encrypting-password/108144 "2007-06-29T13:12:10Z")

</div>

Hi all is there any way to encrypt password in ruby like sha1(‘password’) or md5(‘password’) in PHP? please help

---

## [La mai su ruby-it](https://www.ruby-forum.com/t/la-mai-su-ruby-it/107126)

<div class="topic-metadata">

**Author:** [@jamba](https://www.ruby-forum.com/u/jamba)\
**Replies:** 4\
**Last updated:** [June 18, 2007, 1:55pm UTC](https://www.ruby-forum.com/t/la-mai-su-ruby-it/107126 "2007-06-18T13:55:53Z")

</div>

in altri post si parlava di una revisione delle pagine del wiki. se posso dire la mia tutto il sito andrebbe rivisto. i wiki sono un’arma a doppio taglio. come esempio prenderei la comunitÃ c# creata da Antonio C. w…

---

## [Help with paginating partials strategy](https://www.ruby-forum.com/t/help-with-paginating-partials-strategy/106372)

<div class="topic-metadata">

**Author:** [@charlie\_caroff](https://www.ruby-forum.com/u/charlie_caroff)\
**Replies:** 4\
**Last updated:** [June 11, 2007, 8:22pm UTC](https://www.ruby-forum.com/t/help-with-paginating-partials-strategy/106372 "2007-06-11T20:22:07Z")

</div>

Hi, I have a bunch of partials on a page, and I put a simple paginator in for each. When I click on page 2 of any pagination link for any partial, instead of just rerendering the partial, page 2 for all partials is r…

---

## [Misurare prima di ottimizzare](https://www.ruby-forum.com/t/misurare-prima-di-ottimizzare/92425)

<div class="topic-metadata">

**Author:** [@chiaroscuro](https://www.ruby-forum.com/u/chiaroscuro)\
**Replies:** 4\
**Last updated:** [April 19, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/misurare-prima-di-ottimizzare/92425 "2007-04-19T16:24:03Z")

</div>

lo sapevo, l’ho sempre saputo… non ottimizzare prima di misurare. eppure ero convinto che il problema di una mia applicazione fosse nel database. ho deciso (per una volta) di fare le cose per bene e ho scoperto che, n…

---

## [Eager loading for the readership tracking problem](https://www.ruby-forum.com/t/eager-loading-for-the-readership-tracking-problem/86012)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 4\
**Last updated:** [February 20, 2007, 11:08pm UTC](https://www.ruby-forum.com/t/eager-loading-for-the-readership-tracking-problem/86012 "2007-02-20T23:08:25Z")

</div>

Hello, In summary, I’m trying to find the best solution for eager loading one association based on the current\_user passed from the controller. This is the necessary models code: class User \< ActiveRecord::Base has\_…

---

## [Integration Test File Uploads](https://www.ruby-forum.com/t/integration-test-file-uploads/78299)

<div class="topic-metadata">

**Author:** [@supagroova](https://www.ruby-forum.com/u/supagroova)\
**Replies:** 4\
**Last updated:** [December 13, 2006, 10:07pm UTC](https://www.ruby-forum.com/t/integration-test-file-uploads/78299 "2006-12-13T22:07:41Z")

</div>

Does anybody know how to upload files in RoR Integration Tests? I have seen lots on simulating uploads with Functional and Unit tests, but all efforts I have made so far do not encode the files as multipart form-data …

---

## [Some wierd Module#append\_features behavior](https://www.ruby-forum.com/t/some-wierd-module-append-features-behavior/71199)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 4\
**Last updated:** [October 6, 2006, 5:34pm UTC](https://www.ruby-forum.com/t/some-wierd-module-append-features-behavior/71199 "2006-10-06T17:34:27Z")

</div>

I couldn’t quite figure this out… I am either missing something (I hope) or there is a small bug: Module === Module #=\> true Module === Module.new #=\> true af = Module.instance\_method(:append\_features) af.bind(Modul…

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

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