# Top

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

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

---

## [Matching arrays within arrays](https://www.ruby-forum.com/t/matching-arrays-within-arrays/83090)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 3\
**Last updated:** [January 23, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/matching-arrays-within-arrays/83090 "2007-01-23T16:40:53Z")

</div>

Hello, I have a number of arrays within arrays. Some of them are duplicatess like: \[\[foo, bar, ru, by\], \[ru\], \[bar, foo\], \[foo, bar, ru, by\]\] I would like to remove duplicates to end up with: \[\[foo, bar, ru, by\], \[…

---

## [Google Sitemaps patch](https://www.ruby-forum.com/t/google-sitemaps-patch/75674)

<div class="topic-metadata">

**Author:** [@Steve\_Lenti](https://www.ruby-forum.com/u/Steve_Lenti)\
**Replies:** 0\
**Last updated:** [November 12, 2006, 7:41am UTC](https://www.ruby-forum.com/t/google-sitemaps-patch/75674 "2006-11-12T07:41:21Z")

</div>

http://youdummy.net/blog/articles/2006/11/11/google-sitemaps-typo-patch -Steve http://youdummy.net/blog/

---

## [Id tag assignment with date helper class](https://www.ruby-forum.com/t/id-tag-assignment-with-date-helper-class/73995)

<div class="topic-metadata">

**Author:** [@sweb](https://www.ruby-forum.com/u/sweb)\
**Replies:** 3\
**Last updated:** [October 29, 2006, 8:44pm UTC](https://www.ruby-forum.com/t/id-tag-assignment-with-date-helper-class/73995 "2006-10-29T20:44:06Z")

</div>

Hi, How do I assign an id to my select tags generated by the date helper like select\_month and select\_time, etc? Thanks, Sam

---

## [Marshaling Objects with ActiveRecord Objects in them](https://www.ruby-forum.com/t/marshaling-objects-with-activerecord-objects-in-them/70101)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [September 26, 2006, 9:06pm UTC](https://www.ruby-forum.com/t/marshaling-objects-with-activerecord-objects-in-them/70101 "2006-09-26T21:06:23Z")

</div>

I have a hash with ActiveRecord objects in them that I am marshaling and storing as a constant in my migration files–so I can store additional information needed while I do migrations. I am able to do migrations just…

---

## [Help Rails](https://www.ruby-forum.com/t/help-rails/66561)

<div class="topic-metadata">

**Author:** [@Gianluca](https://www.ruby-forum.com/u/Gianluca)\
**Replies:** 3\
**Last updated:** [August 27, 2006, 3:30pm UTC](https://www.ruby-forum.com/t/help-rails/66561 "2006-08-27T15:30:33Z")

</div>

Ciao ragazzi mi sto dedicando a ruby da pochi giorni e in particolare a rails! Confesso che ho molti dubbi, io arrivo da java e php ma mi sembrano piu chiari, comunuqe non mi scoraggio! la mia domanda é questa! Se h…

---

## [AJAX effects not smooth on Rails](https://www.ruby-forum.com/t/ajax-effects-not-smooth-on-rails/59050)

<div class="topic-metadata">

**Author:** [@wmerydith](https://www.ruby-forum.com/u/wmerydith)\
**Replies:** 3\
**Last updated:** [August 2, 2006, 3:16am UTC](https://www.ruby-forum.com/t/ajax-effects-not-smooth-on-rails/59050 "2006-08-02T03:16:14Z")

</div>

I’ve been playing around with AJAX effects using ActionView::Helpers::ScriptaculousHelper. When I implement these ‘freehand’ on a regular html page the Scriptaculous effects are smooth. However when I use them rails …

---

## [What method should a class provide for printf's %c format st](https://www.ruby-forum.com/t/what-method-should-a-class-provide-for-printfs-c-format-st/100486)

<div class="topic-metadata">

**Author:** [@Gerald](https://www.ruby-forum.com/u/Gerald)\
**Replies:** 3\
**Last updated:** [August 1, 2006, 3:45am UTC](https://www.ruby-forum.com/t/what-method-should-a-class-provide-for-printfs-c-format-st/100486 "2006-08-01T03:45:14Z")

</div>

Consider the following snippet: #!/usr/bin/ruby class Thing def initialize(name) @name = name end def to\_s @name end def to\_i @name.length end end a = B…

---

## [Rails not ready for production use?](https://www.ruby-forum.com/t/rails-not-ready-for-production-use/115530)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [June 27, 2006, 4:31pm UTC](https://www.ruby-forum.com/t/rails-not-ready-for-production-use/115530 "2006-06-27T16:31:36Z")

</div>

Rails mailing list removed\_email\_address@domain.invalid http://lists.rubyonrails.org/mailman/listinfo/rails

---

## [WebServerXKit 2.0b](https://www.ruby-forum.com/t/webserverxkit-2-0b/58826)

<div class="topic-metadata">

**Author:** [@Romain\_BOSSUT](https://www.ruby-forum.com/u/Romain_BOSSUT)\
**Replies:** 3\
**Last updated:** [April 26, 2006, 10:38am UTC](https://www.ruby-forum.com/t/webserverxkit-2-0b/58826 "2006-04-26T10:38:26Z")

</div>

Bonjour. Je suis le dÃ©veloppeur de WebServerXit, un package d’installation d’apache/php/mysql pour Mac OS X. La toute nouvelle version de mon package incluera Apache 2.2.0, MySQL 5.0.20a, PHP 5.1.2, PostgreSQL 8.1, …

---

## [Just a couple questions on how I should go about this](https://www.ruby-forum.com/t/just-a-couple-questions-on-how-i-should-go-about-this/58612)

<div class="topic-metadata">

**Author:** [@hazmatt](https://www.ruby-forum.com/u/hazmatt)\
**Replies:** 3\
**Last updated:** [April 24, 2006, 2:22am UTC](https://www.ruby-forum.com/t/just-a-couple-questions-on-how-i-should-go-about-this/58612 "2006-04-24T02:22:54Z")

</div>

I’m working on my personal site. The design is complete and I want to integrate some rails into it. I’ve done a few small things before, but compared to them this is big. I need a simple blog with categories and comme…

---

## [RJS not sent as text/javascript](https://www.ruby-forum.com/t/rjs-not-sent-as-text-javascript/94167)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 3\
**Last updated:** [April 23, 2006, 9:27pm UTC](https://www.ruby-forum.com/t/rjs-not-sent-as-text-javascript/94167 "2006-04-23T21:27:41Z")

</div>

I’ve made a couple of other posts about this and finally figured out what was wrong. For some reason, the RJS response was not being sent with a content type of “text/javascript” (which it should be, per the dox). Th…

---

## [Can't add data during migration if column is called "type"](https://www.ruby-forum.com/t/cant-add-data-during-migration-if-column-is-called-type/55335)

<div class="topic-metadata">

**Author:** [@Ashley\_M](https://www.ruby-forum.com/u/Ashley_M)\
**Replies:** 3\
**Last updated:** [March 20, 2006, 5:47pm UTC](https://www.ruby-forum.com/t/cant-add-data-during-migration-if-column-is-called-type/55335 "2006-03-20T17:47:42Z")

</div>

Hi I’m new to Rails. This is my first application and I’m trying to set up a schema I’ve hand-crafted as a migration. Does anybody know why this… # deposit\_types create\_table :deposit\_types do |table| table.col…

---

## [Gemcutter's Workshop open!](https://www.ruby-forum.com/t/gemcutters-workshop-open/55363)

<div class="topic-metadata">

**Author:** [@Jean-FranSSSSois](https://www.ruby-forum.com/u/Jean-FranSSSSois)\
**Replies:** 3\
**Last updated:** [March 20, 2006, 4:49pm UTC](https://www.ruby-forum.com/t/gemcutters-workshop-open/55363 "2006-03-20T16:49:37Z")

</div>

Hello, Have I missed the news in the list, but it seems that the info was not widespread : there’s a new column in Linux Journal dedicated to the Ruby community news, have a look there : Gemcutter’s Workshop http://…

---

## [Creating a new object with a passed in parent?](https://www.ruby-forum.com/t/creating-a-new-object-with-a-passed-in-parent/102009)

<div class="topic-metadata">

**Author:** [@Duane](https://www.ruby-forum.com/u/Duane)\
**Replies:** 3\
**Last updated:** [February 7, 2006, 3:59pm UTC](https://www.ruby-forum.com/t/creating-a-new-object-with-a-passed-in-parent/102009 "2006-02-07T15:59:36Z")

</div>

I have a simple object, Article, which has\_one :parent of the same time. On my Show page for a given article there will be a “new child” button which will pass the current :id (or the current Article itself) to the ne…

---

## [Sort or Order a \<Select\> box](https://www.ruby-forum.com/t/sort-or-order-a-select-box/51470)

<div class="topic-metadata">

**Author:** [@prot](https://www.ruby-forum.com/u/prot)\
**Replies:** 3\
**Last updated:** [January 2, 2006, 6:47am UTC](https://www.ruby-forum.com/t/sort-or-order-a-select-box/51470 "2006-01-02T06:47:50Z")

</div>

Evening folks, I’m new to RoR, and have found some very useful info on this site, thanks. I have a select box that I need to sort. \<% @peoplekinds.each do |peoplekind| %\> \> \<%= peoplekind.name %\> \<% end %\> In the…

---

## [New in classes](https://www.ruby-forum.com/t/new-in-classes/192926)

<div class="topic-metadata">

**Author:** [@amiref](https://www.ruby-forum.com/u/amiref)\
**Replies:** 5\
**Last updated:** [August 8, 2010, 8:15pm UTC](https://www.ruby-forum.com/t/new-in-classes/192926 "2010-08-08T20:15:20Z")

</div>

Hi In the attached code what is the meaning of colored part of code? what is the meaning those codes that showed when I wrote “Test.new” and “variable = Test.new” ?

---

## [Channel model question](https://www.ruby-forum.com/t/channel-model-question/190832)

<div class="topic-metadata">

**Author:** [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Replies:** 5\
**Last updated:** [June 29, 2010, 2:31am UTC](https://www.ruby-forum.com/t/channel-model-question/190832 "2010-06-29T02:31:39Z")

</div>

Hi, I have a nagging doubt about how the channel model is implemented in gnuradio. Suppose I have an input signal entering the channel model at 100,000 samples/sec. Let’s say the channel model has to add an offset of …

---

## [Watir or selenium](https://www.ruby-forum.com/t/watir-or-selenium/177983)

<div class="topic-metadata">

**Author:** [@erika](https://www.ruby-forum.com/u/erika)\
**Replies:** 5\
**Last updated:** [October 28, 2009, 8:58am UTC](https://www.ruby-forum.com/t/watir-or-selenium/177983 "2009-10-28T08:58:29Z")

</div>

Hi, I’m searching any info of comparing Watir and Selenium. I have found a lot of usefull links&tips on the internet, but if you have some recent comparison of these two let me know. Many thanks, E.

---

## [Reg exp](https://www.ruby-forum.com/t/reg-exp/154309)

<div class="topic-metadata">

**Author:** [@hai\_l](https://www.ruby-forum.com/u/hai_l)\
**Replies:** 5\
**Last updated:** [November 28, 2008, 2:34am UTC](https://www.ruby-forum.com/t/reg-exp/154309 "2008-11-28T02:34:54Z")

</div>

Hi every body. I’m a newbie in Ruby and have problem with reg exp. In one string as example “The device 13c include something as in Fig. 2a and 3b”, I want to detect some numbers have style “13c” and ignore others num…

---

## [Best production environment for 2008!](https://www.ruby-forum.com/t/best-production-environment-for-2008/145254)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 5\
**Last updated:** [August 7, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/best-production-environment-for-2008/145254 "2008-08-07T15:16:15Z")

</div>

Hi, I’m not sure if I’m just not googling the right things, but I can’t find a post about a production environment any later than early 2007. Things seem to change so fast in the rails world, what with mod\_rails out …

---

## [Generate a migration file](https://www.ruby-forum.com/t/generate-a-migration-file/196749)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 5\
**Last updated:** [July 20, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/generate-a-migration-file/196749 "2008-07-20T23:34:54Z")

</div>

Hi everybody, I had generated some migrations files such as “20080719111013\_create\_countries.rb” for “countries” table : class CreateCountries \< ActiveRecord::Migration def self.up create\_table :countries, :force =\> …

---

## [Problem with while loop](https://www.ruby-forum.com/t/problem-with-while-loop/141025)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [June 21, 2008, 11:48pm UTC](https://www.ruby-forum.com/t/problem-with-while-loop/141025 "2008-06-21T23:48:24Z")

</div>

Hi, I’d greatly appreciate feedback on the following code. def create\_files names\_array = self.read\_names #another method in my class while names\_array.length != 0 name = names\_array.pop File.open( name, "w" )…

---

## [Idiom for Hash like map](https://www.ruby-forum.com/t/idiom-for-hash-like-map/136928)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 5\
**Last updated:** [May 8, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/idiom-for-hash-like-map/136928 "2008-05-08T17:18:24Z")

</div>

class Fruit attr\_accessor :name, :price def initialize(args) @name = args\[:name\] @price = args\[:price\] end end array = \[ Fruit.new(:name =\> “apple”, :price =\> 2), Fruit.new(:name =\> “grape”, :price =\> 20), Fruit…

---

## [Ferret Problem with Restful Authentication](https://www.ruby-forum.com/t/ferret-problem-with-restful-authentication/136663)

<div class="topic-metadata">

**Author:** [@MrSBless](https://www.ruby-forum.com/u/MrSBless)\
**Replies:** 5\
**Last updated:** [May 7, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/ferret-problem-with-restful-authentication/136663 "2008-05-07T15:35:32Z")

</div>

I am using Restful Authentication plugin for the login system. Whenever I include ferret in my application it shows me error. I am using the ferret for the other model as well in which it works very well. Can anyone s…

---

## [Help with modrails and Apache2](https://www.ruby-forum.com/t/help-with-modrails-and-apache2/135716)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 5\
**Last updated:** [April 24, 2008, 10:37pm UTC](https://www.ruby-forum.com/t/help-with-modrails-and-apache2/135716 "2008-04-24T22:37:21Z")

</div>

I am using modrails and Apache2. The first time I use my app it goes very slow but later it goes very fast. If I don’t use the app during 20 min, again the first clic goes very slow and later it goes fast. What’s the …

---

## [Handy method Object#in?](https://www.ruby-forum.com/t/handy-method-object-in/120083)

<div class="topic-metadata">

**Author:** [@Kamil](https://www.ruby-forum.com/u/Kamil)\
**Replies:** 5\
**Last updated:** [November 15, 2007, 2:18pm UTC](https://www.ruby-forum.com/t/handy-method-object-in/120083 "2007-11-15T14:18:16Z")

</div>

I wish there would be this simple method in the core: class Object def in?(an\_array) an\_array.include?(self) end end Having that it’s nice to write: a = %w(hello world out there) puts ‘world’.in?(a) And it works…

---

## [Script/console problem](https://www.ruby-forum.com/t/script-console-problem/116915)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 5\
**Last updated:** [October 11, 2007, 11:00am UTC](https://www.ruby-forum.com/t/script-console-problem/116915 "2007-10-11T11:00:07Z")

</div>

Hi everytime i try to run script/console on my ubuntu box it gives me this error Loading development environment. /var/lib/gems/1.8/gems/rails-1.2.3/lib/commands/console.rb:25:in exec': No such file or directory - i…

---

## [Where is wrong with contoller test?](https://www.ruby-forum.com/t/where-is-wrong-with-contoller-test/114615)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 5\
**Last updated:** [September 18, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/where-is-wrong-with-contoller-test/114615 "2007-09-18T22:13:51Z")

</div>

Hi, everybody! I got a strange question when I did a controller test as below On controller.rb: def send\_welcome\_message(person) some codes; end the controller\_test.rb: def test\_send\_welcome\_message post :send\_we…

---

## [Beginner questions](https://www.ruby-forum.com/t/beginner-questions/71132)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 5\
**Last updated:** [October 5, 2006, 8:25pm UTC](https://www.ruby-forum.com/t/beginner-questions/71132 "2006-10-05T20:25:26Z")

</div>

Lo there, I am wanting to redo our company website in rails ( it now uses php ). I have the Agile book on the way here from Amazon. I am really new at this, and had a couple of questions. First off, we run three webs…

---

## [Layout for static pages?](https://www.ruby-forum.com/t/layout-for-static-pages/69135)

<div class="topic-metadata">

**Author:** [@bikle](https://www.ruby-forum.com/u/bikle)\
**Replies:** 5\
**Last updated:** [September 19, 2006, 10:39pm UTC](https://www.ruby-forum.com/t/layout-for-static-pages/69135 "2006-09-19T22:39:09Z")

</div>

Rails people, Suppose I have an HTML file in public/ : I am static.html And suppose I have a layout file in app/views/layouts/ : I am layout\_for\_static.rhtml \<%= @content\_for\_layout %\> I’m tryi…

---

## [Store common settings in one file?](https://www.ruby-forum.com/t/store-common-settings-in-one-file/101217)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 5\
**Last updated:** [August 4, 2006, 2:56am UTC](https://www.ruby-forum.com/t/store-common-settings-in-one-file/101217 "2006-08-04T02:56:39Z")

</div>

Hi, I’m looking for a way to store common settings, such as the application\_name or email address from value in a file. I then want to be able to call these settings in my controllers and models? Is there any easy w…

---

## [Uninitialized constant error after scaffold on new Windows X](https://www.ruby-forum.com/t/uninitialized-constant-error-after-scaffold-on-new-windows-x/63395)

<div class="topic-metadata">

**Author:** [@Bill\_EdstromS\_Jr](https://www.ruby-forum.com/u/Bill_EdstromS_Jr)\
**Replies:** 5\
**Last updated:** [June 15, 2006, 5:52am UTC](https://www.ruby-forum.com/t/uninitialized-constant-error-after-scaffold-on-new-windows-x/63395 "2006-06-15T05:52:18Z")

</div>

I am attempting to get a working Rails programming environment setup working under XP with MySQL, RadRails and Webrick. I have been using my PowerBook but need to working on Windows environment too. I have basic fun…

---

## [Heavy e-mail receive](https://www.ruby-forum.com/t/heavy-e-mail-receive/93469)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 5\
**Last updated:** [April 4, 2006, 6:52pm UTC](https://www.ruby-forum.com/t/heavy-e-mail-receive/93469 "2006-04-04T18:52:56Z")

</div>

Performance experts, Normally to receive e-mails is to pipe their content to script/runner individually from a mail server, sendmail or postfix. Doesn’t this configuration run like Apache 1.3 with CGI, meaning for eac…

---

## [Global Method Declaration?](https://www.ruby-forum.com/t/global-method-declaration/56372)

<div class="topic-metadata">

**Author:** [@Brent\_J](https://www.ruby-forum.com/u/Brent_J)\
**Replies:** 5\
**Last updated:** [March 31, 2006, 3:01am UTC](https://www.ruby-forum.com/t/global-method-declaration/56372 "2006-03-31T03:01:14Z")

</div>

Is there a place where I can put a method that can be accessed in both views and controllers? Here’s the situation, maybe someone can suggest a better way to go about this: I created my own custom login system with e…

---

## [Pybombs?](https://www.ruby-forum.com/t/pybombs/232715)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 23, 2014, 7:56pm UTC](https://www.ruby-forum.com/t/pybombs/232715 "2014-10-23T19:56:03Z")

</div>

Hi, I wanted to do a quick and dirty gnuradio install with pybombs, and all looked fine, built uhd and gnuradio and what else is included in the default, but it seems it did not add any paths and such. Is this possib…

---

## [Use of the ||= operator in loops and iterators](https://www.ruby-forum.com/t/use-of-the-operator-in-loops-and-iterators/230284)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 9, 2014, 5:29am UTC](https://www.ruby-forum.com/t/use-of-the-operator-in-loops-and-iterators/230284 "2014-06-09T05:29:53Z")

</div>

Something that’s come up a couple times while coding is how ||= seems to behave differently between these two structures. Assume var is undefined at the time of the loop/block. var ||= 1 ; var += 1 will keep it’s valu…

---

## [Configure Restful routes for rails webservice](https://www.ruby-forum.com/t/configure-restful-routes-for-rails-webservice/240486)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [April 17, 2014, 4:11pm UTC](https://www.ruby-forum.com/t/configure-restful-routes-for-rails-webservice/240486 "2014-04-17T16:11:50Z")

</div>

Hi, I am trying to create a Rest web service in my rails application. I need to configure urls for it as below. localhost:3000/book/book\_id/new/param1/param2/param3/param4/... localhost:3000/book/book\_id/next localh…

---

## [Server\_names scaling](https://www.ruby-forum.com/t/server-names-scaling/240483)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [April 16, 2014, 1:17pm UTC](https://www.ruby-forum.com/t/server-names-scaling/240483 "2014-04-16T13:17:28Z")

</div>

Hi all, I have spent the day troubleshooting why one server in our network reloaded / tested configuration extremely slowly. We have found that server\_names scales very poorly, once a certain point is reached (appr…

---

## [Siggen.py transmission Error](https://www.ruby-forum.com/t/siggen-py-transmission-error/221626)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [August 1, 2012, 2:49pm UTC](https://www.ruby-forum.com/t/siggen-py-transmission-error/221626 "2012-08-01T14:49:01Z")

</div>

i m trying to transmit simple sin wave to check my usrp transmission reception . when i run usrp\_siggen.py -f 900M → " Using TX d’board A: " is displayed on terminal. when i run usrp\_fft.py -f 900M → Failed to set…

---

## [RSpec test model and mailer](https://www.ruby-forum.com/t/rspec-test-model-and-mailer/220792)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 20, 2012, 1:39pm UTC](https://www.ruby-forum.com/t/rspec-test-model-and-mailer/220792 "2012-06-20T13:39:05Z")

</div>

I have method in model (User Model) def create\_reset\_code self.attributes = {:reset\_code =\> Digest::SHA1.hexdigest(Time.now.to\_s.split(//).sort\_by {rand}.join )} save(:validate=\>false) UserMailer.reset\_password\_ema…

---

## [Ngx upstream round robin bug?](https://www.ruby-forum.com/t/ngx-upstream-round-robin-bug/215145)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [December 23, 2011, 4:25pm UTC](https://www.ruby-forum.com/t/ngx-upstream-round-robin-bug/215145 "2011-12-23T16:25:03Z")

</div>

I use nginx as a load balancing for backend web server. if this upstream has n servers, and when the number of backend web server can’t connect(502 or down) be equal n-1, nginx will response 502 or 503 status to clie…

---

## [How to set the proxy buffer if web server return large cookie via Set-Cookie](https://www.ruby-forum.com/t/how-to-set-the-proxy-buffer-if-web-server-return-large-cookie-via-set-cookie/213473)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 3, 2011, 8:52am UTC](https://www.ruby-forum.com/t/how-to-set-the-proxy-buffer-if-web-server-return-large-cookie-via-set-cookie/213473 "2011-11-03T08:52:06Z")

</div>

Hi, According to Module ngx\_http\_core\_module, for long uri or large cookie from browser, I can use large\_client\_header\_buffers . For the large cookie from web server via Set-Cookie, how to set proxy buffer? Shoul…

---

## [HELP "Could not find a JavaScript runtime " ERROR](https://www.ruby-forum.com/t/help-could-not-find-a-javascript-runtime-error/211939)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [September 18, 2011, 10:14am UTC](https://www.ruby-forum.com/t/help-could-not-find-a-javascript-runtime-error/211939 "2011-09-18T10:14:59Z")

</div>

Hello ALL, I’m new to RoR, I get the following error stack whenever I issue “rails server” or “rails generate …” command. Thanks in advance! ERROR STACK: C:\\Sites\\demo\_app\>rails generate scaffold User name:string e…

---

## [\[Bug #3055\] NEWS: URI Obsoleted methods](https://www.ruby-forum.com/t/bug-3055-news-uri-obsoleted-methods/186019)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 2\
**Last updated:** [March 30, 2010, 3:17pm UTC](https://www.ruby-forum.com/t/bug-3055-news-uri-obsoleted-methods/186019 "2010-03-30T15:17:26Z")

</div>

Bug #3055: NEWS: URI Obsoleted methods http://redmine.ruby-lang.org/issues/show/3055 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: DOC, Target version: 1.9.2 ruby -v: …

---

## [How to destoy / Invalidate java servlet session](https://www.ruby-forum.com/t/how-to-destoy-invalidate-java-servlet-session/168761)

<div class="topic-metadata">

**Author:** [@Andres\_K](https://www.ruby-forum.com/u/Andres_K)\
**Replies:** 2\
**Last updated:** [May 26, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/how-to-destoy-invalidate-java-servlet-session/168761 "2009-05-26T12:07:17Z")

</div>

Hello, I’m trying do invalidate a java servlet session in an application. The glassfish (v2) server is configured to use container based auth which allows us to use the REMOTE\_USER request variable. However I’ve not …

---

## [Logout link.....unless logging in!](https://www.ruby-forum.com/t/logout-link-unless-logging-in/168356)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 2\
**Last updated:** [May 20, 2009, 9:00am UTC](https://www.ruby-forum.com/t/logout-link-unless-logging-in/168356 "2009-05-20T09:00:14Z")

</div>

I have a link, /user\_session/new, which takes you to a login screen (I am using AuthLogic plugin) and in my layout template I have… \<%= link\_to "Logout", user\_session\_path, :method =\> :delete, :confirm =\> "Are you su…

---

## [Polyrhythm Trainer (#194)](https://www.ruby-forum.com/t/polyrhythm-trainer-194/161597)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 2\
**Last updated:** [March 8, 2009, 10:52pm UTC](https://www.ruby-forum.com/t/polyrhythm-trainer-194/161597 "2009-03-08T22:52:31Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [How to spec within a block?](https://www.ruby-forum.com/t/how-to-spec-within-a-block/159764)

<div class="topic-metadata">

**Author:** [@rgagnon](https://www.ruby-forum.com/u/rgagnon)\
**Replies:** 2\
**Last updated:** [February 8, 2009, 5:08pm UTC](https://www.ruby-forum.com/t/how-to-spec-within-a-block/159764 "2009-02-08T17:08:37Z")

</div>

I want to mock to Model.to\_xml but not his block. How to do it? Here is what I have (sorry for the formatting) output = @detenteur.to\_xml( :skip\_types =\> false, :skip\_instruct =\> true, :dasherize =\> false, :only =\> …

---

## [Redirecting root to mongrel prefix](https://www.ruby-forum.com/t/redirecting-root-to-mongrel-prefix/158836)

<div class="topic-metadata">

**Author:** [@jemminger](https://www.ruby-forum.com/u/jemminger)\
**Replies:** 2\
**Last updated:** [January 28, 2009, 6:13pm UTC](https://www.ruby-forum.com/t/redirecting-root-to-mongrel-prefix/158836 "2009-01-28T18:13:52Z")

</div>

Mongrel can be started with a prefix e.g. mongrel\_rails start -p 3000 --prefix /foobar So that all of the app’s URLs are prefixed, e.g. http://localhost:3000/foobar http://localhost:3000/foobar/posts http://localhos…

---

## [Rails and Ruby behind proxy](https://www.ruby-forum.com/t/rails-and-ruby-behind-proxy/155201)

<div class="topic-metadata">

**Author:** [@Nicolas\_Alpi\_aka\_Sp](https://www.ruby-forum.com/u/Nicolas_Alpi_aka_Sp)\
**Replies:** 2\
**Last updated:** [December 9, 2008, 5:12pm UTC](https://www.ruby-forum.com/t/rails-and-ruby-behind-proxy/155201 "2008-12-09T17:12:47Z")

</div>

Hi there, I’ve a little problem. On my code, I use the flickraw gem. On the application.rb there is a require ‘flickraw’ who create a new instance, and for that need to pass the net. It works at home, but in my offi…

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

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