# Top

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

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

---

## [Models, Helpers, Modules, etc](https://www.ruby-forum.com/t/models-helpers-modules-etc/71212)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [February 21, 2006, 12:46pm UTC](https://www.ruby-forum.com/t/models-helpers-modules-etc/71212 "2006-02-21T12:46:17Z")

</div>

Hello, I am learning rails and ruby and I have some questions about how should I go about doing certain things. \[1\]Many of my models have some functionality which is common, and instead of duplicating it across mod…

---

## [How to Find File Objects in JRuby?](https://www.ruby-forum.com/t/how-to-find-file-objects-in-jruby/239969)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [March 22, 2014, 12:46am UTC](https://www.ruby-forum.com/t/how-to-find-file-objects-in-jruby/239969 "2014-03-22T00:46:17Z")

</div>

I’d like to be able to introspect into the Ruby VM to find any open file objects. In MRI Ruby I can use ObjectSpace, e.g.: files= ObjectSpace.each\_object(File).to\_a …and could find a given filespec by: ObjectSpace.e…

---

## [Question Concerning Custom Modulator Block](https://www.ruby-forum.com/t/question-concerning-custom-modulator-block/239216)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [February 19, 2014, 9:32am UTC](https://www.ruby-forum.com/t/question-concerning-custom-modulator-block/239216 "2014-02-19T09:32:32Z")

</div>

Dear List, I am writing a custom QPSK modulator block (demod is next) and I am caught up on figuring out the output. I am taking the byte data type (which I am using C++ char) and for each bit of the byte I would …

---

## [Adding data from rails seed DB file](https://www.ruby-forum.com/t/adding-data-from-rails-seed-db-file/238883)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [February 2, 2014, 7:02pm UTC](https://www.ruby-forum.com/t/adding-data-from-rails-seed-db-file/238883 "2014-02-02T19:02:59Z")

</div>

Guys now i want to add just data in my users Table just for test with it so I’m trying from use this code users.create(:name =\> “admin”,:user =\> “admin”,:pass=\> “123”) in the seed file then when it trying to run rake …

---

## [Gnuradio-companion & hamlib bodging](https://www.ruby-forum.com/t/gnuradio-companion-hamlib-bodging/226406)

<div class="topic-metadata">

**Author:** [@Darren\_L](https://www.ruby-forum.com/u/Darren_L)\
**Replies:** 3\
**Last updated:** [October 30, 2012, 3:35pm UTC](https://www.ruby-forum.com/t/gnuradio-companion-hamlib-bodging/226406 "2012-10-30T15:35:40Z")

</div>

Hi, In gnuradio-companion, I’m tring to control my KX3 transceiver using hamlib’s rigctl utility. I’ve bodged a call to: float(pexpect.run(“rigctl -m 229 -r /dev/ttyUSB0 -s 38400 f”)) in a variable block’s value, a…

---

## [Action Controller: Exception caught](https://www.ruby-forum.com/t/action-controller-exception-caught/213912)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [November 17, 2011, 7:23pm UTC](https://www.ruby-forum.com/t/action-controller-exception-caught/213912 "2011-11-17T19:23:02Z")

</div>

Hello All, I am taking a programming class and I am running into some problems with a Rail program I am working on from a book called “Beginning Rails 3, Updated.” The book is having me create a blog application and I…

---

## [How to sort only by frequency of the keyword](https://www.ruby-forum.com/t/how-to-sort-only-by-frequency-of-the-keyword/197426)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [October 14, 2010, 10:03am UTC](https://www.ruby-forum.com/t/how-to-sort-only-by-frequency-of-the-keyword/197426 "2010-10-14T10:03:47Z")

</div>

Hi I meet a situation that search results should be sorted only by the frequency of the keyword in the document. Since the default score calculating considers many other factor, I cannot just sort by score. Is there …

---

## [Avoiding memcpy() during String creation in a C extension](https://www.ruby-forum.com/t/avoiding-memcpy-during-string-creation-in-a-c-extension/128312)

<div class="topic-metadata">

**Author:** [@Wincent\_C](https://www.ruby-forum.com/u/Wincent_C)\
**Replies:** 3\
**Last updated:** [February 9, 2008, 4:03am UTC](https://www.ruby-forum.com/t/avoiding-memcpy-during-string-creation-in-a-c-extension/128312 "2008-02-09T04:03:13Z")

</div>

I’m working on a fast wikitext-to-HTML translator written in C and am trying to optimize it. Profiling shows that a fair portion of the time is being spent instantiating temporary strings and much of that time is spen…

---

## [Montreal.rb 2024/03 - Frontend Ruby with Glimmer DSL for Web - Andy Maleh](https://www.ruby-forum.com/t/montreal-rb-2024-03-frontend-ruby-with-glimmer-dsl-for-web-andy-maleh/264662)

<div class="topic-metadata">

**Author:** [@AndyMaleh](https://www.ruby-forum.com/u/AndyMaleh)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 6:46pm UTC](https://www.ruby-forum.com/t/montreal-rb-2024-03-frontend-ruby-with-glimmer-dsl-for-web-andy-maleh/264662 "2024-03-07T18:46:47Z")

</div>

The talk video and slides have been posted for the Montreal.rb March 2024 talk “Frontend Ruby with Glimmer DSL for Web” (Ruby in the Browser Web Frontend Framework). YouTube Video : Google Slides : Bl…

---

## [Transfer text file to lpt1 port](https://www.ruby-forum.com/t/transfer-text-file-to-lpt1-port/222608)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [September 5, 2012, 1:33pm UTC](https://www.ruby-forum.com/t/transfer-text-file-to-lpt1-port/222608 "2012-09-05T13:33:47Z")

</div>

Hello, I’m new ruby developer, any idea about : send text file to lpt1 port where i have installed an intermec printer?

---

## [Exec using sh -c or directly running the command, depending on the system](https://www.ruby-forum.com/t/exec-using-sh-c-or-directly-running-the-command-depending-on-the-system/203912)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [March 2, 2011, 2:45pm UTC](https://www.ruby-forum.com/t/exec-using-sh-c-or-directly-running-the-command-depending-on-the-system/203912 "2011-03-02T14:45:46Z")

</div>

Hello ! I’m stuck in a situation I don’t understand and I’m looking for clues to know what and where to search explanations. The problem is, as stated in the title, that my subprocess is sometimes runned using “sh -c…

---

## [Test doubles: expect "x" and don't care about anything else](https://www.ruby-forum.com/t/test-doubles-expect-x-and-dont-care-about-anything-else/171204)

<div class="topic-metadata">

**Author:** [@Wincent\_C](https://www.ruby-forum.com/u/Wincent_C)\
**Replies:** 7\
**Last updated:** [June 29, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/test-doubles-expect-x-and-dont-care-about-anything-else/171204 "2009-06-29T17:27:47Z")

</div>

I’ve had one of my recurring doubts about test doubles come up again. The full post is here but I’ll abbreviate the content in this message in any case: Thinking about switching to RR · wincent.com Basically, in one …

---

## [Problem feeding garbage to GNU Radio](https://www.ruby-forum.com/t/problem-feeding-garbage-to-gnu-radio/150650)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 7\
**Last updated:** [October 12, 2008, 5:15am UTC](https://www.ruby-forum.com/t/problem-feeding-garbage-to-gnu-radio/150650 "2008-10-12T05:15:32Z")

</div>

I’m working on a flow graph that reads samples from a file and feeds them to the wfm demod block. I managed to get this working, but along the way I ran across a problem … My data file is 16bit complex shorts in big-e…

---

## [Virtual Domains](https://www.ruby-forum.com/t/virtual-domains/147655)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 7\
**Last updated:** [September 4, 2008, 10:40am UTC](https://www.ruby-forum.com/t/virtual-domains/147655 "2008-09-04T10:40:24Z")

</div>

Hello, I have 5 sites that will all be sharing the same IP, and 2 that will have their own IP addresses. I have a series of conf files that I include that contain server {} sections. Each conf looks like this: ser…

---

## [Named\_scope and :through](https://www.ruby-forum.com/t/named-scope-and-through/146675)

<div class="topic-metadata">

**Author:** [@pierreva](https://www.ruby-forum.com/u/pierreva)\
**Replies:** 7\
**Last updated:** [August 26, 2008, 12:04am UTC](https://www.ruby-forum.com/t/named-scope-and-through/146675 "2008-08-26T00:04:59Z")

</div>

Bonjour à tous, J’ai trois modèles User, Feed et Activity. J’aimerais utiliser un named\_scope à travers une association h\_m :through Dans User : has\_many :feeds, :foreign\_key =\> “person\_id” has\_many :activities, :th…

---

## [Problem Installing RMagick with Instant Rails on Windows](https://www.ruby-forum.com/t/problem-installing-rmagick-with-instant-rails-on-windows/120990)

<div class="topic-metadata">

**Author:** [@Walter\_Lockhart](https://www.ruby-forum.com/u/Walter_Lockhart)\
**Replies:** 7\
**Last updated:** [June 24, 2008, 4:51am UTC](https://www.ruby-forum.com/t/problem-installing-rmagick-with-instant-rails-on-windows/120990 "2008-06-24T04:51:23Z")

</div>

I’m running Instant Rails 1.4 on Windows XP with SP2. I have downloaded the Windows binary version of RMagick from the RubyForge page. Specifically, I have downloaded: 1.14.1 binary gem for Ruby 1.8.5 (fixed for Ruby…

---

## [Ordonnancement tableau depuis hash](https://www.ruby-forum.com/t/ordonnancement-tableau-depuis-hash/140900)

<div class="topic-metadata">

**Author:** [@starnix17](https://www.ruby-forum.com/u/starnix17)\
**Replies:** 7\
**Last updated:** [June 20, 2008, 1:44am UTC](https://www.ruby-forum.com/t/ordonnancement-tableau-depuis-hash/140900 "2008-06-20T01:44:22Z")

</div>

Bonjour, Il y a quelques temps, j’ai pu voir que certains ici Ã©taient trÃ¨s fort pour ordonner des tableaux. Ne trouvant pas comment m’y prendre pour classer correctement un hash, je viens demander vos lumiÃ¨res : V…

---

## [Rails, REST and JSON](https://www.ruby-forum.com/t/rails-rest-and-json/90454)

<div class="topic-metadata">

**Author:** [@seeah](https://www.ruby-forum.com/u/seeah)\
**Replies:** 7\
**Last updated:** [March 30, 2007, 1:05am UTC](https://www.ruby-forum.com/t/rails-rest-and-json/90454 "2007-03-30T01:05:26Z")

</div>

Hi everyone, I’m writing a lightweight AJAX application using Rails on the server side as a RESTful web service provider. I need the web service to support both JSON and XML I/O. Outputting data in XML and JSON is …

---

## [Ruby on Rails & SQLite3](https://www.ruby-forum.com/t/ruby-on-rails-sqlite3/75086)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [November 9, 2006, 4:21pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-sqlite3/75086 "2006-11-09T16:21:09Z")

</div>

Hi, I’m just a beginner in Ruby. Have just installed Rails and Gems. I am using SQLite3 as the db. When going thro the “CookBook” tutorial. after creating the recipes table in the sqlite3 database. and changing the…

---

## [Using another program (Lynx) from within Ruby](https://www.ruby-forum.com/t/using-another-program-lynx-from-within-ruby/74828)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [November 7, 2006, 11:00am UTC](https://www.ruby-forum.com/t/using-another-program-lynx-from-within-ruby/74828 "2006-11-07T11:00:18Z")

</div>

I’m trying to write a script to read a list of URLS, get the HTTP response headers and (if there is a page there) from each URL, and output to a CSV file in this format: URL, header, I’ve started with something l…

---

## [Vim: space or tab in indenting?](https://www.ruby-forum.com/t/vim-space-or-tab-in-indenting/59689)

<div class="topic-metadata">

**Author:** [@mutejute](https://www.ruby-forum.com/u/mutejute)\
**Replies:** 7\
**Last updated:** [May 5, 2006, 5:50pm UTC](https://www.ruby-forum.com/t/vim-space-or-tab-in-indenting/59689 "2006-05-05T17:50:09Z")

</div>

this is semi-off topic but still related to ror. i had a problem with testing my depot program (which i follow the tutorial in agile web development book). it took me many hours to solved the problem. all the while i …

---

## [Ruby/RoR - Lucene integration question?](https://www.ruby-forum.com/t/ruby-ror-lucene-integration-question/82974)

<div class="topic-metadata">

**Author:** [@phukan\_ruban](https://www.ruby-forum.com/u/phukan_ruban)\
**Replies:** 7\
**Last updated:** [November 19, 2005, 11:08am UTC](https://www.ruby-forum.com/t/ruby-ror-lucene-integration-question/82974 "2005-11-19T11:08:09Z")

</div>

Hi, I’ve an application which is built with RoR and a search index in Lucene. I need to be able to integrate Lucene into the RoR app. What is the best way to do so ? I know that rjni is a ruby-java bridge but is it s…

---

## [Using mongodb with ActiveRecord or other?](https://www.ruby-forum.com/t/using-mongodb-with-activerecord-or-other/246412)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [April 14, 2016, 2:22pm UTC](https://www.ruby-forum.com/t/using-mongodb-with-activerecord-or-other/246412 "2016-04-14T14:22:20Z")

</div>

We recently looked at mongoDB a bit. I was discussing using mongoDB with active record but was told that maybe there are other or better options. Can someone comment on that ? Also, someone suggested storing a ruby ar…

---

## [Ruby Expect Script](https://www.ruby-forum.com/t/ruby-expect-script/231172)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 28, 2014, 7:43pm UTC](https://www.ruby-forum.com/t/ruby-expect-script/231172 "2014-07-28T19:43:33Z")

</div>

I’m new to Ruby and need to write a script that uses the ruby equivalent of linux expect to run interactive scripts or commands on remote boxes. Basically I need to ssh into a box, potentially run a script on that box …

---

## [Mechanize ResponseCodeError](https://www.ruby-forum.com/t/mechanize-responsecodeerror/237352)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [November 7, 2013, 8:59pm UTC](https://www.ruby-forum.com/t/mechanize-responsecodeerror/237352 "2013-11-07T20:59:44Z")

</div>

I’m having trouble handling the ResponseCodeError in Mechanize. Right now I have in my script: begin puts “Sesion iniciada” agent.page.link\_with(:href =\> ‘/logout’).click rescue Mechanize::ResponseCodeError.initial…

---

## [Problem with using win32ole in Linux server](https://www.ruby-forum.com/t/problem-with-using-win32ole-in-linux-server/123251)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/problem-with-using-win32ole-in-linux-server/123251 "2007-12-15T18:22:56Z")

</div>

Hi Every body, I’m Having one excel file. I want this file using ruby, for this I used win32ole. Here the code is. require ‘win32ole’ excel = WIN32OLE.new(‘excel.application’) excel.visible = false excel.workbooks.…

---

## [Menu a tendina scraping](https://www.ruby-forum.com/t/menu-a-tendina-scraping/247428)

<div class="topic-metadata">

**Author:** [@Gweedo](https://www.ruby-forum.com/u/Gweedo)\
**Replies:** 0\
**Last updated:** [October 5, 2018, 12:28pm UTC](https://www.ruby-forum.com/t/menu-a-tendina-scraping/247428 "2018-10-05T12:28:06Z")

</div>

Ciao a tutti, sto cercando di imparare a esplorare un menu a tendina per memorizzare i link a cui rimanda il menu. Il sito è questo: Sto utilizzando la libreria Mechanize suggerita da: INIZIO CODICE require ‘mechan…

---

## [Metaprogrammazione wrap exception](https://www.ruby-forum.com/t/metaprogrammazione-wrap-exception/245119)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [October 25, 2016, 9:21pm UTC](https://www.ruby-forum.com/t/metaprogrammazione-wrap-exception/245119 "2016-10-25T21:21:17Z")

</div>

Ciao a tutti, sto cercando di crearmi attraverso prepend e un po di metaprogrammazione un modo per catturare le eccezioni per dei metodi di classe passati come parametri. Il modulo che mi sono creato è il seguente: m…

---

## [Ruby with Cucumber Job Opportunity](https://www.ruby-forum.com/t/ruby-with-cucumber-job-opportunity/174696)

<div class="topic-metadata">

**Author:** [@douglas](https://www.ruby-forum.com/u/douglas)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 4:48pm UTC](https://www.ruby-forum.com/t/ruby-with-cucumber-job-opportunity/174696 "2009-08-31T16:48:28Z")

</div>

Hello Everyone A client of mine located in Atlanta is looking for a strong Business Analyst with knowledge of Ruby on Rails with Cucumber. This would be a Full Time position and they would pay relocation. This is a cu…

---

## [In Ruby everything are Objects except Functions / Methods?](https://www.ruby-forum.com/t/in-ruby-everything-are-objects-except-functions-methods/230697)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [July 2, 2014, 3:02am UTC](https://www.ruby-forum.com/t/in-ruby-everything-are-objects-except-functions-methods/230697 "2014-07-02T03:02:10Z")

</div>

Hiii, i am new to this ruby-talk list, so i hope my question is not annoying (especially for my not so goood english). My question is simple. Is there a way to store a method in a variable? I know that every method c…

---

## [Running methods on Iterations](https://www.ruby-forum.com/t/running-methods-on-iterations/236968)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [October 16, 2013, 9:43am UTC](https://www.ruby-forum.com/t/running-methods-on-iterations/236968 "2013-10-16T09:43:36Z")

</div>

Hello, I’m new to ruby and I’m going through the RubyMonk tutorials. I’m on the problem 3.2 Iteration looping. The question is use the each method to store values in source that is less than 4 into destination. def…

---

## [Ocra just stopped working with webdriver](https://www.ruby-forum.com/t/ocra-just-stopped-working-with-webdriver/221639)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [July 24, 2012, 12:43am UTC](https://www.ruby-forum.com/t/ocra-just-stopped-working-with-webdriver/221639 "2012-07-24T00:43:00Z")

</div>

This code functions fine from a script, but when I try to package it with Ocra I get an error… ruby 1.9.3 watir-webdriver 0.6.1 ocra 1.3.0 Platform: Windows 7 64-bit Ruby Code: require ‘watir-webdriver’ testy =…

---

## [Keep eventmachine app running](https://www.ruby-forum.com/t/keep-eventmachine-app-running/189797)

<div class="topic-metadata">

**Author:** [@vect](https://www.ruby-forum.com/u/vect)\
**Replies:** 6\
**Last updated:** [June 8, 2010, 1:11am UTC](https://www.ruby-forum.com/t/keep-eventmachine-app-running/189797 "2010-06-08T01:11:32Z")

</div>

I want to find out how to get a event machine app running in the background. In example scripts I have seen when the script are executed it runs in the console but when the window/ssh session is closed the app stops. …

---

## [How to combine SQL queries in self.up](https://www.ruby-forum.com/t/how-to-combine-sql-queries-in-self-up/166758)

<div class="topic-metadata">

**Author:** [@Vipin](https://www.ruby-forum.com/u/Vipin)\
**Replies:** 6\
**Last updated:** [May 1, 2009, 6:26pm UTC](https://www.ruby-forum.com/t/how-to-combine-sql-queries-in-self-up/166758 "2009-05-01T18:26:37Z")

</div>

Hi How can i combine multiple SQL statements into one place in self.up in a migration. For the following, method if i combine 3 SQL statements into one section I get the error. ######### following works fine def se…

---

## [.with(:anything) issue](https://www.ruby-forum.com/t/with-anything-issue/153212)

<div class="topic-metadata">

**Author:** [@epirsch](https://www.ruby-forum.com/u/epirsch)\
**Replies:** 6\
**Last updated:** [November 13, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/with-anything-issue/153212 "2008-11-13T14:47:18Z")

</div>

Hi, I’m using a expectation like this : repository.should\_receive(:add\_gem).with(“test.txt”, :anything) When I run my spec, it fails with the following message : Spec::Mocks::MockExpectationError in ‘MiniGemServer sh…

---

## [Setting session to nil when window is closed](https://www.ruby-forum.com/t/setting-session-to-nil-when-window-is-closed/152075)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 6\
**Last updated:** [October 30, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/setting-session-to-nil-when-window-is-closed/152075 "2008-10-30T15:26:24Z")

</div>

I have this app at work that has Administrators and Users as two types of users. I know who is a of what type by setting session variables: session\[:admin\] and session\[:user\] holding the id’s. The administrators can g…

---

## [Invocation of ruby interpreter for .rb files under bash](https://www.ruby-forum.com/t/invocation-of-ruby-interpreter-for-rb-files-under-bash/149500)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 6\
**Last updated:** [September 26, 2008, 10:16am UTC](https://www.ruby-forum.com/t/invocation-of-ruby-interpreter-for-rb-files-under-bash/149500 "2008-09-26T10:16:03Z")

</div>

Hello, this is not really related to the core language by itself but I don’t remember how to have the interpreter launched when typing foo.rb or foo (if foo is the name of the script) under bash ? I remember that I ha…

---

## [Montar entorno de Pruduccion en Windows](https://www.ruby-forum.com/t/montar-entorno-de-pruduccion-en-windows/145405)

<div class="topic-metadata">

**Author:** [@Mauricio\_D](https://www.ruby-forum.com/u/Mauricio_D)\
**Replies:** 6\
**Last updated:** [August 9, 2008, 1:39pm UTC](https://www.ruby-forum.com/t/montar-entorno-de-pruduccion-en-windows/145405 "2008-08-09T13:39:22Z")

</div>

Desde ya gracias y espero me puedan aclarar dudas por que en google solo encuentro que la unica manera de hacer correr rails con Microsoft-IIS es en fastcgi por lo cual la aplicacion iria un poco lenta. Asi que quier…

---

## [Passenger (mod\_rails for Apache) lanzado](https://www.ruby-forum.com/t/passenger-mod-rails-for-apache-lanzado/134542)

<div class="topic-metadata">

**Author:** [@ricardo\_m](https://www.ruby-forum.com/u/ricardo_m)\
**Replies:** 6\
**Last updated:** [April 12, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/passenger-mod-rails-for-apache-lanzado/134542 "2008-04-12T19:46:30Z")

</div>

Seguramente varios ya se han hecho eco de esta noticia (o no), pero oficialmente han lanzado “mod\_rails” \[1\]. Espero tener tiempo este fin de semana para montarlo en el servidor de pruebas y ver como se porta …

---

## [Mongrel vs. fcgi](https://www.ruby-forum.com/t/mongrel-vs-fcgi/131150)

<div class="topic-metadata">

**Author:** [@maerzbow](https://www.ruby-forum.com/u/maerzbow)\
**Replies:** 6\
**Last updated:** [March 7, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/mongrel-vs-fcgi/131150 "2008-03-07T13:59:40Z")

</div>

I have a virtual root server (monthly $10) running some RoR projects with mediocre traffic by using MONGREL. It ROCKS. But with every new mongrel instance I am getting closer to run out of system resources. The web …

---

## [Operation on data for model](https://www.ruby-forum.com/t/operation-on-data-for-model/90514)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 6\
**Last updated:** [March 30, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/operation-on-data-for-model/90514 "2007-03-30T13:33:09Z")

</div>

Hi First let me mention that i am new to rails. In my application there is a form for entering product details for bidding. I have a view and all the data is entered into a form. In the database there is a unique\_id …

---

## [Error installing Rails/FastCGI/Apache2](https://www.ruby-forum.com/t/error-installing-rails-fastcgi-apache2/52960)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 6\
**Last updated:** [February 19, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/error-installing-rails-fastcgi-apache2/52960 "2007-02-19T22:53:03Z")

</div>

Trying to install rails/fcgi/apache2. Following these instructions: http://xmlareas.com/ruby-rails-howto.html Using Fedora Core 4. I installed ruby and ruby-devel using apt-get. Everything under Adding FastCGI (opti…

---

## [Getting the last word in each line](https://www.ruby-forum.com/t/getting-the-last-word-in-each-line/68474)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 6\
**Last updated:** [September 13, 2006, 1:34am UTC](https://www.ruby-forum.com/t/getting-the-last-word-in-each-line/68474 "2006-09-13T01:34:15Z")

</div>

Is there a prettier way to read a file and return the last word in each line? Here’s my go: File.read(some\_file).to\_a.map { |l| line.split.last } What if I wanted to search the lines (based on a regex) and return the …

---

## [How to find out which actions are available on a controller?](https://www.ruby-forum.com/t/how-to-find-out-which-actions-are-available-on-a-controller/48373)

<div class="topic-metadata">

**Author:** [@jochen](https://www.ruby-forum.com/u/jochen)\
**Replies:** 6\
**Last updated:** [November 20, 2005, 4:56am UTC](https://www.ruby-forum.com/t/how-to-find-out-which-actions-are-available-on-a-controller/48373 "2005-11-20T04:56:53Z")

</div>

Hi! How can I find out which actions a controller supports? I want something like is\_available( :controller =\> ‘foo’, :action =\> ‘bar’ ) which tells me whether a link to url\_for( :controller =\> ‘foo’, :action =\> ‘ba…

---

## [Scite - F5 command not working for code execution](https://www.ruby-forum.com/t/scite-f5-command-not-working-for-code-execution/213628)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 22, 2013, 7:16am UTC](https://www.ruby-forum.com/t/scite-f5-command-not-working-for-code-execution/213628 "2013-01-22T07:16:09Z")

</div>

I am learning Ruby from scratch using a beginner’s tutorial. I have installed Ruby (via installer) on my WIN 7. I have also installed SciTE. Trying to run the following code Puts gets Sea When I hit F5 the code does…

---

## [Create web application using ruby not with frameworks](https://www.ruby-forum.com/t/create-web-application-using-ruby-not-with-frameworks/215410)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [January 4, 2012, 6:52pm UTC](https://www.ruby-forum.com/t/create-web-application-using-ruby-not-with-frameworks/215410 "2012-01-04T18:52:12Z")

</div>

How to create web application only with ruby language and not with the frameworks

---

## [Coffee-Script, Java-Script, tutto script!](https://www.ruby-forum.com/t/coffee-script-java-script-tutto-script/214700)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [December 9, 2011, 4:51pm UTC](https://www.ruby-forum.com/t/coffee-script-java-script-tutto-script/214700 "2011-12-09T16:51:57Z")

</div>

Dunque, sto ancora brancolando nel buio e man mano mi faccio strada in questo strano mondo di RoR :stuck\_out\_tongue: Rails 3.1.3 usa CoffeeScript per gestire javascript, giusto? Che giudizio date a Coffee? Lo usate…

---

## [Keeping my integration specs DRY](https://www.ruby-forum.com/t/keeping-my-integration-specs-dry/209908)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [July 26, 2011, 2:01pm UTC](https://www.ruby-forum.com/t/keeping-my-integration-specs-dry/209908 "2011-07-26T14:01:41Z")

</div>

Hi Group, I’m finally taking the time to implement tests in some of my old apps. I’m using Rails 2.3.5, Rspec 1.3.1, Rspec-rails 1.3.3, and capybara. Here’s an example of my first test, but I’m wondering how I setup t…

---

## [Work with two tables in one controller](https://www.ruby-forum.com/t/work-with-two-tables-in-one-controller/209387)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [July 14, 2011, 10:03pm UTC](https://www.ruby-forum.com/t/work-with-two-tables-in-one-controller/209387 "2011-07-14T22:03:38Z")

</div>

I want to have someone sign up for an account. Two models: Account and User. So an account will be created. A user will be created. The account’s id, will be placed in the account\_id column of the users table. So both…

---

## [Ruby Logger over Log4j](https://www.ruby-forum.com/t/ruby-logger-over-log4j/199168)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [November 16, 2010, 3:33am UTC](https://www.ruby-forum.com/t/ruby-logger-over-log4j/199168 "2010-11-16T03:33:14Z")

</div>

Hi all. I recently wrote some code for using Log4j as your Ruby logger. I pushed it up to github as a project named log4jruby. Log4jruby is a thin wrapper around the Log4j Logger. It is geared more toward those who …

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

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