# Top

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

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

---

## [Questions about Tk - Newbie](https://www.ruby-forum.com/t/questions-about-tk-newbie/56540)

<div class="topic-metadata">

**Author:** [@braas](https://www.ruby-forum.com/u/braas)\
**Replies:** 6\
**Last updated:** [April 1, 2006, 6:30pm UTC](https://www.ruby-forum.com/t/questions-about-tk-newbie/56540 "2006-04-01T18:30:59Z")

</div>

Hey I’ve just started to learn my first GUI toolkit today. Tk :slight\_smile: Well, I surfed around for some tutorials for a while but I only found one that looked good. Could you link me some good tutorials? I escpec…

---

## [My gem to insert i18n strings to templates](https://www.ruby-forum.com/t/my-gem-to-insert-i18n-strings-to-templates/225559)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [January 15, 2013, 11:50am UTC](https://www.ruby-forum.com/t/my-gem-to-insert-i18n-strings-to-templates/225559 "2013-01-15T11:50:00Z")

</div>

Hey, I’m the author of a gem called i15r (GitHub - balinterdi/i15r: Replaces plain text strings in your views and replaces them with I18n message strings so you only have to provide the translations (i15r = internation…

---

## [Telnet Hangs During Login](https://www.ruby-forum.com/t/telnet-hangs-during-login/169799)

<div class="topic-metadata">

**Author:** [@gmichelson](https://www.ruby-forum.com/u/gmichelson)\
**Replies:** 0\
**Last updated:** [June 8, 2009, 10:48pm UTC](https://www.ruby-forum.com/t/telnet-hangs-during-login/169799 "2009-06-08T22:48:46Z")

</div>

This is cross-posted on stackoverflow if you want points/nice syntax highlighting: I am trying to do some basic scripting using ruby to log in to a windows machine via telnet and pull some files over using the dos co…

---

## [Undefined method \`first' for :users:Symbol](https://www.ruby-forum.com/t/undefined-method-first-for-symbol/143830)

<div class="topic-metadata">

**Author:** [@amrita](https://www.ruby-forum.com/u/amrita)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 4:18am UTC](https://www.ruby-forum.com/t/undefined-method-first-for-symbol/143830 "2008-07-23T04:18:17Z")

</div>

Hello, I am trying to move an existing fully functional Rails application from my laptop (Running Leopard) to my Desktop (Running Debian). I created a new Rails application on the Debian desktop and installed the res…

---

## [Rake asset:precompile for rails 2.3.18](https://www.ruby-forum.com/t/rake-asset-precompile-for-rails-2-3-18/231176)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 25, 2014, 2:50pm UTC](https://www.ruby-forum.com/t/rake-asset-precompile-for-rails-2-3-18/231176 "2014-07-25T14:50:04Z")

</div>

hi everyone, i have deployed a rails application on heroku ruby version 1.9.3-p547 rails version 2.3.18 while i am using webrick server its working properly,but using unicorn server its not working ,that means it di…

---

## [Db:test:prepare interfering with rake spec pattern](https://www.ruby-forum.com/t/dbprepare-interfering-with-rake-spec-pattern/204123)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 5, 2011, 4:28pm UTC](https://www.ruby-forum.com/t/dbprepare-interfering-with-rake-spec-pattern/204123 "2011-03-05T16:28:22Z")

</div>

I have a tricky problem with running rake spec in a Rails 3.0.3 project (using rspec-2.5.0, rspec-rails and rake 0.8.7). It may be that this mailing list is not the correct one to ask for help, but I am hoping that i…

---

## [Access to controller and request objects in controller specs (rails 3)](https://www.ruby-forum.com/t/access-to-controller-and-request-objects-in-controller-specs-rails-3/185121)

<div class="topic-metadata">

**Author:** [@stevehodgkiss](https://www.ruby-forum.com/u/stevehodgkiss)\
**Replies:** 1\
**Last updated:** [March 14, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/access-to-controller-and-request-objects-in-controller-specs-rails-3/185121 "2010-03-14T16:26:10Z")

</div>

Hi Rails 3 provides @controller and @request as instance variables in controller tests, whats the equivalent in rspec controller tests? I’m using warden for authentication and need to be able to stub @request.env\[‘wa…

---

## [Does anyone know how to mock the Rails Logger then set expectations with should\_receive?](https://www.ruby-forum.com/t/does-anyone-know-how-to-mock-the-rails-logger-then-set-expectations-with-should-receive/140334)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 1\
**Last updated:** [June 13, 2008, 1:31am UTC](https://www.ruby-forum.com/t/does-anyone-know-how-to-mock-the-rails-logger-then-set-expectations-with-should-receive/140334 "2008-06-13T01:31:32Z")

</div>

Hey Guys, I’m trying to mock the Rails Logger for the following code: … rescue TimeoutError =\> error $logger.error("#{self.name} Timeout for #{path}: #{error}") and return rescue SocketError =\> error $logger.error…

---

## [How to add multiple items to a cart](https://www.ruby-forum.com/t/how-to-add-multiple-items-to-a-cart/117111)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 1\
**Last updated:** [October 17, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/how-to-add-multiple-items-to-a-cart/117111 "2007-10-17T17:26:18Z")

</div>

My first question here. I am developing a shopping cart based on “Beginning Ruby on Rails E- Commerce”. I would like to be able to add multiple items. Because, what if I wanted 700 items? I don’t really want to repea…

---

## [Convert .htaccess for nginx](https://www.ruby-forum.com/t/convert-htaccess-for-nginx/202812)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 6, 2011, 8:37pm UTC](https://www.ruby-forum.com/t/convert-htaccess-for-nginx/202812 "2011-02-06T20:37:32Z")

</div>

Hello, I have tryed to read about rewrite rules but I’m not able to handle this, Have already tryed online convert for .htaccess to nginx but when I restart my ngnix server I get error message \[emerg\]: invalid parame…

---

## [Rails3+bundler where team wants to use both MRI + JRuby](https://www.ruby-forum.com/t/rails3-bundler-where-team-wants-to-use-both-mri-jruby/198397)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [December 17, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/rails3-bundler-where-team-wants-to-use-both-mri-jruby/198397 "2010-12-17T22:58:44Z")

</div>

hi, I need some solution where we as a team can work with a rails3 application both with MRI and JRuby. the currently the Gemfile.lock is on github and the jruby people need to follow this mantra: first delete Gemfi…

---

## [Wxruby messagedialog box](https://www.ruby-forum.com/t/wxruby-messagedialog-box/192249)

<div class="topic-metadata">

**Author:** [@Bruce\_Loving](https://www.ruby-forum.com/u/Bruce_Loving)\
**Replies:** 3\
**Last updated:** [July 27, 2010, 4:11pm UTC](https://www.ruby-forum.com/t/wxruby-messagedialog-box/192249 "2010-07-27T16:11:47Z")

</div>

any way to keep a dialog box inside its parent, instead of centered on the screen? require ‘rubygems’ require ‘wx’ include Wx class MyFrame \< Frame def initialize() super(nil,-1,‘Wristband Manager’,:size =\> \[400,…

---

## [Win32 Service: Access Denied when creating service](https://www.ruby-forum.com/t/win32-service-access-denied-when-creating-service/186995)

<div class="topic-metadata">

**Author:** [@vijar82](https://www.ruby-forum.com/u/vijar82)\
**Replies:** 3\
**Last updated:** [April 16, 2010, 12:34pm UTC](https://www.ruby-forum.com/t/win32-service-access-denied-when-creating-service/186995 "2010-04-16T12:34:57Z")

</div>

Hi, I am trying to create and register a windows service with the following code. require “rubygems” require “win32/service” include Win32 svc = Service.new(:service\_name =\> “rajiv\_service\_name”) Error: C:/Ruby/l…

---

## [Mport a csv file to database.(help pls)](https://www.ruby-forum.com/t/mport-a-csv-file-to-database-help-pls/186069)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 0\
**Last updated:** [March 31, 2010, 6:22am UTC](https://www.ruby-forum.com/t/mport-a-csv-file-to-database-help-pls/186069 "2010-03-31T06:22:07Z")

</div>

hi actually i am creating an application to import a csv file to database. but onn running that application ai’am getting errors like this NoMethodError in ImportsController#new undefined method \`login\_required’…

---

## [Formtastic and Access to Variables of Nested Model](https://www.ruby-forum.com/t/formtastic-and-access-to-variables-of-nested-model/181692)

<div class="topic-metadata">

**Author:** [@anmueller](https://www.ruby-forum.com/u/anmueller)\
**Replies:** 3\
**Last updated:** [January 20, 2010, 8:35am UTC](https://www.ruby-forum.com/t/formtastic-and-access-to-variables-of-nested-model/181692 "2010-01-20T08:35:13Z")

</div>

So I’m not even sure if I’ll be able to properly explain what I’m trying to do, but I’ll do my best. Let’s say that I have two models: Document and Option. A Document has many Options (and, by extension, an Option bel…

---

## [Class org.jcodings.specific.ASCIIEncoding is not Serializable](https://www.ruby-forum.com/t/class-org-jcodings-specific-asciiencoding-is-not-serializable/156471)

<div class="topic-metadata">

**Author:** [@eipipuz](https://www.ruby-forum.com/u/eipipuz)\
**Replies:** 3\
**Last updated:** [December 29, 2008, 2:05pm UTC](https://www.ruby-forum.com/t/class-org-jcodings-specific-asciiencoding-is-not-serializable/156471 "2008-12-29T14:05:19Z")

</div>

Hello guys, I am still fighting trying to call an EJB server. But now I started with my own code, not just copying the JRuby on Rails Book examples. I have JRuby code that calls the EJB. The EJB is not pure java, it …

---

## [Problem with NetBeans 6.5 and built in glassfish](https://www.ruby-forum.com/t/problem-with-netbeans-6-5-and-built-in-glassfish/154580)

<div class="topic-metadata">

**Author:** [@typej](https://www.ruby-forum.com/u/typej)\
**Replies:** 3\
**Last updated:** [December 4, 2008, 5:58am UTC](https://www.ruby-forum.com/t/problem-with-netbeans-6-5-and-built-in-glassfish/154580 "2008-12-04T05:58:53Z")

</div>

Hi all, I’m giving NetBeans 6.5 a test drive today (upgrading from 6.1) and I noticed that now you have the option of setting up your rails application w/ WEBrick or the built in glassfish server. I gave the glassfis…

---

## [Interesse an einem virtuellen Treffen?](https://www.ruby-forum.com/t/interesse-an-einem-virtuellen-treffen/154430)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 3\
**Last updated:** [December 1, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/interesse-an-einem-virtuellen-treffen/154430 "2008-12-01T12:35:41Z")

</div>

Hallo Gruppe, diese Woche ist mir die Idee gekommen, ein virtuelles \[Rubyonrails-ug\] Treffen zu organisieren, um mal alle hier zusammen zu fÃ¼hren. Ich habe dann auch mal rum-ge-googelt und Ã¼berraschender Weise sehr …

---

## [Spinlock implementation](https://www.ruby-forum.com/t/spinlock-implementation/146032)

<div class="topic-metadata">

**Author:** [@Manlio\_P](https://www.ruby-forum.com/u/Manlio_P)\
**Replies:** 3\
**Last updated:** [August 16, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/spinlock-implementation/146032 "2008-08-16T21:46:28Z")

</div>

Hi. I’m reading the nginx spinlock implementation, since I would like to use it in a separate project I’m working on. The code is quite simple, however there is a thing I’m not sure to unserstand: why ngx\_cpu\_pause …

---

## [POST, memcached, 405, and gateway timeouts](https://www.ruby-forum.com/t/post-memcached-405-and-gateway-timeouts/140937)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [June 27, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/post-memcached-405-and-gateway-timeouts/140937 "2008-06-27T18:43:03Z")

</div>

I have the following situation: location ~ “foo” { error\_page 404 = /; error\_page 405 =200 /; set $memcached\_key "default"; if ($request\_uri ~ "bar") { set $memcached\_key "non-default"; } memcached\_pass ...; } lo…

---

## [Como cargar \<select1\> y \<select2\> ... dinamicamente](https://www.ruby-forum.com/t/como-cargar-select1-y-select2-dinamicamente/128958)

<div class="topic-metadata">

**Author:** [@wilian](https://www.ruby-forum.com/u/wilian)\
**Replies:** 3\
**Last updated:** [February 13, 2008, 1:34am UTC](https://www.ruby-forum.com/t/como-cargar-select1-y-select2-dinamicamente/128958 "2008-02-13T01:34:14Z")

</div>

Hola, mi problema es el siguiente. Mira tengo mi base de datos con dos tablas relacionadas (Actividades - SubActividades). La pregunta es la siguiente: En un (ListBox1 o como se llame) hago una consulta y me da t…

---

## [Marketplace running on RoR?](https://www.ruby-forum.com/t/marketplace-running-on-ror/245165)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [December 23, 2016, 7:26am UTC](https://www.ruby-forum.com/t/marketplace-running-on-ror/245165 "2016-12-23T07:26:16Z")

</div>

Hey RoR people, can sth like this list/marketplace: https://zoptamo.com/s-karate-c-us-place be built on rails? It will be awesome to see a professional marketplace running on RoR with all of it expanded functionality.…

---

## [Disable warnings on a per-file basis](https://www.ruby-forum.com/t/disable-warnings-on-a-per-file-basis/240308)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [April 8, 2014, 5:34pm UTC](https://www.ruby-forum.com/t/disable-warnings-on-a-per-file-basis/240308 "2014-04-08T17:34:17Z")

</div>

Hi, Can I tell ruby to ignore warnings from a given .rb file? $VERBOSE = nil disables all warnings globally, so it does not work on a per file basis. And I do not use commandline switches, I need this option in a giv…

---

## [NGINX error log format documentation](https://www.ruby-forum.com/t/nginx-error-log-format-documentation/234987)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [May 26, 2013, 11:20pm UTC](https://www.ruby-forum.com/t/nginx-error-log-format-documentation/234987 "2013-05-26T23:20:02Z")

</div>

Hey! I want to parse NGINX error logs. However, I did not find any documentation concerning the used log format. While the meaning of some fields like the data is pretty obvious, for some it is not at all. In additio…

---

## [Gtk2 to gtk3 : create a dialog](https://www.ruby-forum.com/t/gtk2-to-gtk3-create-a-dialog/228258)

<div class="topic-metadata">

**Author:** [@raubarede](https://www.ruby-forum.com/u/raubarede)\
**Replies:** 2\
**Last updated:** [April 15, 2013, 7:26pm UTC](https://www.ruby-forum.com/t/gtk2-to-gtk3-create-a-dialog/228258 "2013-04-15T19:26:06Z")

</div>

Hello, This code come from gtk2 application : wdlog = Dialog.new(“Logs”, nil, 0, \[ Stock::OK, Dialog::RESPONSE\_NONE \]) How to convert it for gtk3 ? I try wdlog = Dialog.new( title: “Logs”, parent: nil, flags: …

---

## [Logger for class method from an included module](https://www.ruby-forum.com/t/logger-for-class-method-from-an-included-module/205063)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 31, 2011, 5:58pm UTC](https://www.ruby-forum.com/t/logger-for-class-method-from-an-included-module/205063 "2011-03-31T17:58:44Z")

</div>

Hi, I want to log what’s happening when a class method is called, using a Logger instance. The code resembles this: module Helpers def self.included(klass) klass.extend ClassMethods end module Cla…

---

## [Sound input using mic / line in problem](https://www.ruby-forum.com/t/sound-input-using-mic-line-in-problem/171514)

<div class="topic-metadata">

**Author:** [@Karthik\_Vijayraghav](https://www.ruby-forum.com/u/Karthik_Vijayraghav)\
**Replies:** 2\
**Last updated:** [July 7, 2009, 9:26am UTC](https://www.ruby-forum.com/t/sound-input-using-mic-line-in-problem/171514 "2009-07-07T09:26:44Z")

</div>

I am trying to run the audio\_to\_file.py example file to capture some audio signals. I plan to feed some slowly changing voltage signals through my mic/line in audio input and use those along with the USRP signals (af…

---

## [Einladung Ruby User Group Berlin, Do, 7.5.2009, 19.30 Uhr](https://www.ruby-forum.com/t/einladung-ruby-user-group-berlin-do-7-5-2009-19-30-uhr/167196)

<div class="topic-metadata">

**Author:** [@florian\_goersdorf](https://www.ruby-forum.com/u/florian_goersdorf)\
**Replies:** 2\
**Last updated:** [May 5, 2009, 12:32pm UTC](https://www.ruby-forum.com/t/einladung-ruby-user-group-berlin-do-7-5-2009-19-30-uhr/167196 "2009-05-05T12:32:06Z")

</div>

Hallo Zusammen, unser nächstes Treffen findet statt am Donnerstag, den 2. April 2009, 19.30 Uhr. Vortrag: Hendrik Volkmer: The big bang - what to do if your Rails codebase grows to big? sowie 1x RailsWayCon Ticket…

---

## [JRuby and nio.ByteBuffer](https://www.ruby-forum.com/t/jruby-and-nio-bytebuffer/165154)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 2\
**Last updated:** [April 9, 2009, 7:49pm UTC](https://www.ruby-forum.com/t/jruby-and-nio-bytebuffer/165154 "2009-04-09T19:49:59Z")

</div>

How to handle java.nio.ByteBuffer in JRuby? buffer = ByteBuffer.allocate(1024) buffer.array # gives us a java array but can we end up with a ruby array? “from\_java” technique does not seem to be available. Thanks …

---

## [Translate model name when validation fails](https://www.ruby-forum.com/t/translate-model-name-when-validation-fails/162404)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/translate-model-name-when-validation-fails/162404 "2009-03-18T15:59:07Z")

</div>

Let’s say I want to submit a user. Currently if the user submission fails, I get the name “user”, but I would like to translate it into other languages. I can make the translation work for its attributes but not the m…

---

## [Append version string to engine-dir](https://www.ruby-forum.com/t/append-version-string-to-engine-dir/59394)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 2\
**Last updated:** [June 5, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/append-version-string-to-engine-dir/59394 "2006-06-05T19:06:45Z")

</div>

Hi, I’m a developer of the Rails-CMS RailFrog (www.railfrog.com). We want to use RailsEngines as part of our plugin system. So far it works great but now we want to append a version string to the engine-dir (i.e. rai…

---

## [Example SitePress sites around?](https://www.ruby-forum.com/t/example-sitepress-sites-around/264103)

<div class="topic-metadata">

**Author:** [@philip\_rhoades](https://www.ruby-forum.com/u/philip_rhoades)\
**Replies:** 1\
**Last updated:** [July 14, 2023, 12:04pm UTC](https://www.ruby-forum.com/t/example-sitepress-sites-around/264103 "2023-07-14T12:04:10Z")

</div>

People, I have done basic Jekyll and Rails sites in the past but have just found SitePress and would like to some example sites for this gem but there doesn’t seem to be anything around - is it too new or something? Th…

---

## [Link To New Association](https://www.ruby-forum.com/t/link-to-new-association/233801)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [January 15, 2015, 8:08pm UTC](https://www.ruby-forum.com/t/link-to-new-association/233801 "2015-01-15T20:08:06Z")

</div>

Hey there, I have a patients model which has many hospitalizations, from the patients#show I want to generate a link to hospitalizations#new creating a new association to this very same patient, any ideas on how to d…

---

## [Difference between Self joins and self-referential association](https://www.ruby-forum.com/t/difference-between-self-joins-and-self-referential-association/237950)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [December 7, 2013, 9:49pm UTC](https://www.ruby-forum.com/t/difference-between-self-joins-and-self-referential-association/237950 "2013-12-07T21:49:58Z")

</div>

self-joins are discussed here: self-referential association is discussed here: The main difference I see is that self-referential association creates a join model, such as friendship, which links another model, such…

---

## [Fwd: \[ruby-list:49131\] \[ANN\] Ruby生誕20周年記念パーティのお知らせ](https://www.ruby-forum.com/t/fwd-ruby-list-49131-ann-ruby-20/229485)

<div class="topic-metadata">

**Author:** [@Kakutani\_S](https://www.ruby-forum.com/u/Kakutani_S)\
**Replies:** 7\
**Last updated:** [March 2, 2013, 4:57am UTC](https://www.ruby-forum.com/t/fwd-ruby-list-49131-ann-ruby-20/229485 "2013-03-02T04:57:21Z")

</div>

$B0lHL\<RCDK!?MF|K(BRuby$B$N2q$N$+$/$?$K$G$9!#(B $B$$$D$b$@$OC$K$J$C$F$$j$^$9!#(B $B3+H/$HD\>@\\4X78$J$/$F62=L$G$9!#(B\[ruby-list:49131\] $B$G%“%J%&%s%9$5$;$F$$$?$@$$$?$N$G$9$,!”(B $BI85-$N%$%Y%s%H$K$D$$$F!“%3%\_%C%?$NJ}$O…

---

## [Persistence causes glAccum exception](https://www.ruby-forum.com/t/persistence-causes-glaccum-exception/220032)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [May 25, 2012, 5:02am UTC](https://www.ruby-forum.com/t/persistence-causes-glaccum-exception/220032 "2012-05-25T05:02:34Z")

</div>

So, I did a quick “audit” this evening of four different machines in my house, running both Ubuntu recent and Fedora recent, but with different generations of video hardware/motherboards, and tried the “Persistence” c…

---

## [Rails 3.1 mostrare nome anzichè id in una index view](https://www.ruby-forum.com/t/rails-3-1-mostrare-nome-anziche-id-in-una-index-view/211647)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [September 12, 2011, 7:12pm UTC](https://www.ruby-forum.com/t/rails-3-1-mostrare-nome-anziche-id-in-una-index-view/211647 "2011-09-12T19:12:18Z")

</div>

Ho rimesso mano a rails installando la 3.1 e sono subito incappato in un problemino apparentemente molto stupido. Ho 2 modelli, Bills e Customers in pratica nel modello Bills ho indicato un campo customer\_id che corri…

---

## [Newbie: how to preserve NoMethodError under stubbing?](https://www.ruby-forum.com/t/newbie-how-to-preserve-nomethoderror-under-stubbing/192121)

<div class="topic-metadata">

**Author:** [@Lille](https://www.ruby-forum.com/u/Lille)\
**Replies:** 7\
**Last updated:** [July 24, 2010, 4:34pm UTC](https://www.ruby-forum.com/t/newbie-how-to-preserve-nomethoderror-under-stubbing/192121 "2010-07-24T16:34:09Z")

</div>

Hi, I’ve been browsing the RSpec book and the RDoc, but I can’t see how to ensure the following: Stub an instance with a method it doesn’t have and raise NoMethodError (or something like it.) I want to do this becau…

---

## [Trying to parse stream.twitter.com, please help](https://www.ruby-forum.com/t/trying-to-parse-stream-twitter-com-please-help/172113)

<div class="topic-metadata">

**Author:** [@caiwangqin](https://www.ruby-forum.com/u/caiwangqin)\
**Replies:** 7\
**Last updated:** [July 15, 2009, 10:13am UTC](https://www.ruby-forum.com/t/trying-to-parse-stream-twitter-com-please-help/172113 "2009-07-15T10:13:19Z")

</div>

I’m having no luck working on this, and it’s my first attempt at such a process. Here is the code as it is now. When I run the file, I’m testing it against my own twitter account, and I see in the ‘% Received’ it ge…

---

## [Flagged enums](https://www.ruby-forum.com/t/flagged-enums/163833)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 7\
**Last updated:** [June 17, 2009, 9:11am UTC](https://www.ruby-forum.com/t/flagged-enums/163833 "2009-06-17T09:11:18Z")

</div>

Hi, it seems that the following code isn’t supported: AnchorStyles.Bottom | AnchorStyles.Left I believe IronPython supports this (see EnumOps.cs). Is that syntax planned ? – Thibaut

---

## [Absolute Value Percentage Difference Question](https://www.ruby-forum.com/t/absolute-value-percentage-difference-question/151390)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 10:47pm UTC](https://www.ruby-forum.com/t/absolute-value-percentage-difference-question/151390 "2008-10-20T22:47:57Z")

</div>

Hi. I’ve got a report where I’m making comparisons between 2 different values. It’s possible for the percentage difference from one value to the next to be less than or greater than the original number. If value 2 i…

---

## [Undefined method '\<' for nil:NilClasse](https://www.ruby-forum.com/t/undefined-method-for-nil-nilclasse/132333)

<div class="topic-metadata">

**Author:** [@robyonrails](https://www.ruby-forum.com/u/robyonrails)\
**Replies:** 7\
**Last updated:** [March 19, 2008, 2:16pm UTC](https://www.ruby-forum.com/t/undefined-method-for-nil-nilclasse/132333 "2008-03-19T14:16:49Z")

</div>

This is the code: class StringScanner @str = “” @kounter = 0 def initialize(str) @str = str end def scan(arg) res = @str.scan(arg) return nil unless @kounter\<res.length @kounter=@kounter+1 res\[@kounter-1\] end …

---

## [Stderr stdout redirection with Ruby?](https://www.ruby-forum.com/t/stderr-stdout-redirection-with-ruby/111742)

<div class="topic-metadata">

**Author:** [@unbewust](https://www.ruby-forum.com/u/unbewust)\
**Replies:** 7\
**Last updated:** [August 11, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/stderr-stdout-redirection-with-ruby/111742 "2007-08-11T17:28:03Z")

</div>

i do have a shell script doing : man "#{arg}" 2\> "#{tmp}/#{fm}" PIPE man2html \> "#{tmp}/#{f1}" because i want to know if there is “No manual entry for “#{arg}”” then for the time being i’m using an tmp file “#{tmp}/#{…

---

## [Installing ruby and rails on linux without using internet co](https://www.ruby-forum.com/t/installing-ruby-and-rails-on-linux-without-using-internet-co/88541)

<div class="topic-metadata">

**Author:** [@spashokkumar](https://www.ruby-forum.com/u/spashokkumar)\
**Replies:** 7\
**Last updated:** [March 12, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/installing-ruby-and-rails-on-linux-without-using-internet-co/88541 "2007-03-12T17:40:07Z")

</div>

Hi, i am a newbie. i don’t have internet connetion at home. so all i can do is, i can download individually in internet browsing centre and install on my home pc. currently i am using fedora core 6. i don’t know ho…

---

## [RB + RMagick = cd Crash](https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988)

<div class="topic-metadata">

**Author:** [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Replies:** 7\
**Last updated:** [March 27, 2006, 3:22am UTC](https://www.ruby-forum.com/t/rb-rmagick-cd-crash/55988 "2006-03-27T03:22:16Z")

</div>

Hi, I had to reinstall RMagick on my windows box. I am using cygwin and installed ImageMagick 6.2.6 from binary and then rmagick 1.10.1 from the gem install. Then I run irb \> require ‘RMagick’ and boom no errors noth…

---

## [Help with DRY: too much code in my view](https://www.ruby-forum.com/t/help-with-dry-too-much-code-in-my-view/73319)

<div class="topic-metadata">

**Author:** [@yak](https://www.ruby-forum.com/u/yak)\
**Replies:** 7\
**Last updated:** [February 26, 2006, 9:13pm UTC](https://www.ruby-forum.com/t/help-with-dry-too-much-code-in-my-view/73319 "2006-02-26T21:13:18Z")

</div>

I’m a newbie to rails, and really to the whole DRY and MVC thing as well, except where I accidentally fell into things doing it my own way in the past. I’ve got a fairly complex DB structure I want to create an interf…

---

## [Limit\_conn module exclude also on Maxim Dunin recommended code](https://www.ruby-forum.com/t/limit-conn-module-exclude-also-on-maxim-dunin-recommended-code/233688)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [January 10, 2015, 4:03pm UTC](https://www.ruby-forum.com/t/limit-conn-module-exclude-also-on-maxim-dunin-recommended-code/233688 "2015-01-10T16:03:49Z")

</div>

Hi I am using this code to limit requests and exclude some ip’s" http { limit\_req\_zone $limit zone=delta:8m rate=60r/s; geo $limited { default 1; 192.168.45.56/32 0; 199.27.128.0/21 0; 173.245.48.0/20 0; } map …

---

## [Web app - button to change value](https://www.ruby-forum.com/t/web-app-button-to-change-value/240591)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [April 26, 2014, 5:02am UTC](https://www.ruby-forum.com/t/web-app-button-to-change-value/240591 "2014-04-26T05:02:44Z")

</div>

Hi guys, I’ve made a small web app with camping and I’d need some advise how to approach the task in the subject: to implement a button that would change (increase or decrease a value; like a +/- counter). I’m not lo…

---

## [Delayed JOB ISSUE](https://www.ruby-forum.com/t/delayed-job-issue/237654)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [November 26, 2013, 2:19pm UTC](https://www.ruby-forum.com/t/delayed-job-issue/237654 "2013-11-26T14:19:22Z")

</div>

Hi all I am using delayed jobs to send sms I am using “GitHub - tobi/delayed\_job: Database backed asynchronous priority queue -- Extracted from Shopify”. In my other website my delayed job is working fine. Recently I …

---

## [Riassegnamento costanti](https://www.ruby-forum.com/t/riassegnamento-costanti/224514)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [November 14, 2012, 8:53pm UTC](https://www.ruby-forum.com/t/riassegnamento-costanti/224514 "2012-11-14T20:53:50Z")

</div>

Ciao ragazzi, vi risulta che ruby debba sempre dare un warning quando si riassegna una costante? ero convinto di s, ma poi ho trovato questo e mi sono stupito del fatto che venga modificato il primo array senza nessun…

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

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