# Top

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

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

---

## [Consulta a una base de datos](https://www.ruby-forum.com/t/consulta-a-una-base-de-datos/138419)

<div class="topic-metadata">

**Author:** [@maite](https://www.ruby-forum.com/u/maite)\
**Replies:** 2\
**Last updated:** [May 23, 2008, 2:58pm UTC](https://www.ruby-forum.com/t/consulta-a-una-base-de-datos/138419 "2008-05-23T14:58:27Z")

</div>

hola chicos quiero hacer una consulta a la tabla category que es asi class CreateCategories \< ActiveRecord::Migration def self.up create\_table :categories do |t| t.string :name t.text :description t.integer :user\_i…

---

## [How to parse directory structure using ruby](https://www.ruby-forum.com/t/how-to-parse-directory-structure-using-ruby/126543)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 2\
**Last updated:** [January 19, 2008, 11:51am UTC](https://www.ruby-forum.com/t/how-to-parse-directory-structure-using-ruby/126543 "2008-01-19T11:51:11Z")

</div>

Hi all, Greetings… In my project i have stuck a place … where i have to parse directory structure. Can you please help me out in this ? The requirement is like… i will give input as name of directory… The program s…

---

## [GtkTreeview signal "row-activated"](https://www.ruby-forum.com/t/gtktreeview-signal-row-activated/80229)

<div class="topic-metadata">

**Author:** [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Replies:** 2\
**Last updated:** [December 23, 2006, 12:46pm UTC](https://www.ruby-forum.com/t/gtktreeview-signal-row-activated/80229 "2006-12-23T12:46:45Z")

</div>

Hello, I have a problem with the TreeView of RubyGTK. Catching the signal works very well, but I don’t know which row of the list was activated :-(. Does anyone know how to figure out which line was activated? I’ve w…

---

## [Re: How to convert long/milliseconds to DateTime?](https://www.ruby-forum.com/t/re-how-to-convert-long-milliseconds-to-datetime/73483)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [October 24, 2006, 9:57pm UTC](https://www.ruby-forum.com/t/re-how-to-convert-long-milliseconds-to-datetime/73483 "2006-10-24T21:57:54Z")

</div>

From: Mike Nospam Java developer making the switch. Welcome! I have timestamps stored in Oracle as a long (gotten from java.sql.Timestamp - milliseconds from some day in 1970). Is there a way to convert that lon…

---

## [Rails 4 cache](https://www.ruby-forum.com/t/rails-4-cache/240743)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [July 18, 2014, 2:38pm UTC](https://www.ruby-forum.com/t/rails-4-cache/240743 "2014-07-18T14:38:09Z")

</div>

Hello, my problem is that i have a website in Rails 4 on my production host running FTP but when i update some file i not see the changes. I run the commands: RAILS\_ENV = production bundle exec rake assets: clean RAI…

---

## [Python's win32com.client for Ruby?](https://www.ruby-forum.com/t/pythons-win32com-client-for-ruby/83382)

<div class="topic-metadata">

**Author:** [@woodyee](https://www.ruby-forum.com/u/woodyee)\
**Replies:** 1\
**Last updated:** [January 25, 2007, 6:11pm UTC](https://www.ruby-forum.com/t/pythons-win32com-client-for-ruby/83382 "2007-01-25T18:11:19Z")

</div>

Hi! I was looking over the python scripts for Windows (http://www.microsoft.com/technet/scriptcenter/scripts/python/pyindex.mspx?mfr=true). I noticed that most are using win32com.client. Is there a similiar library f…

---

## [Converting hex floats](https://www.ruby-forum.com/t/converting-hex-floats/59543)

<div class="topic-metadata">

**Author:** [@burrowsm](https://www.ruby-forum.com/u/burrowsm)\
**Replies:** 1\
**Last updated:** [May 4, 2006, 1:03am UTC](https://www.ruby-forum.com/t/converting-hex-floats/59543 "2006-05-04T01:03:11Z")

</div>

What is the easiest way to convert a hex value like: 0x000000000000F03F (big endian, IEEE754) to a Float in Ruby? Thanks, Matt

---

## [CSS Load Order Headache](https://www.ruby-forum.com/t/css-load-order-headache/230378)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 5\
**Last updated:** [June 18, 2014, 4:36pm UTC](https://www.ruby-forum.com/t/css-load-order-headache/230378 "2014-06-18T16:36:15Z")

</div>

I used rails generate scaffold for part of my application, and this looks fine so far. Now I would like to change a style for the element, which happens to be defined in scaffold.css.scss. I don’t want to touch the …

---

## [How to pass a variable from a model method to a controller](https://www.ruby-forum.com/t/how-to-pass-a-variable-from-a-model-method-to-a-controller/166453)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 5\
**Last updated:** [April 27, 2009, 10:34am UTC](https://www.ruby-forum.com/t/how-to-pass-a-variable-from-a-model-method-to-a-controller/166453 "2009-04-27T10:34:56Z")

</div>

Hi there, how can I pass a variable from a model method to the controller that calls this method? In the below code, I tried by placing “return @errormessage” in the model method and then trying to retrieve it in the…

---

## [Dynamically create buttons](https://www.ruby-forum.com/t/dynamically-create-buttons/115939)

<div class="topic-metadata">

**Author:** [@tobbyd](https://www.ruby-forum.com/u/tobbyd)\
**Replies:** 5\
**Last updated:** [October 2, 2007, 12:47pm UTC](https://www.ruby-forum.com/t/dynamically-create-buttons/115939 "2007-10-02T12:47:19Z")

</div>

I am a beginner and I would like to create a loop that dynamically creates a number of normal buttons. ‘Button1’, ‘Button2’ etc. Then I would like to be able to reference the dynamically created buttons by typing ‘But…

---

## [Model](https://www.ruby-forum.com/t/model/108940)

<div class="topic-metadata">

**Author:** [@william](https://www.ruby-forum.com/u/william)\
**Replies:** 5\
**Last updated:** [July 10, 2007, 3:13pm UTC](https://www.ruby-forum.com/t/model/108940 "2007-07-10T15:13:10Z")

</div>

Tengo un modelo que me devuelve en un campo un 0 o un 1, en donde sero es inactivo y 1 activo, como hago para que estos dos digitos en una vista list.rhtml me devuelva lo que significa y no 0/1 ? debe ser en el modelo…

---

## [Adding extra fields to an index (using RDig?)](https://www.ruby-forum.com/t/adding-extra-fields-to-an-index-using-rdig/85135)

<div class="topic-metadata">

**Author:** [@epo001](https://www.ruby-forum.com/u/epo001)\
**Replies:** 5\
**Last updated:** [February 12, 2007, 12:55pm UTC](https://www.ruby-forum.com/t/adding-extra-fields-to-an-index-using-rdig/85135 "2007-02-12T12:55:54Z")

</div>

Hello everyone, I am writing an application which collects a set of web sites and caches them locally for offline viewing. I want to do searches on this collection and associate extra data with each result (e.g date …

---

## [Static file performance "staircase" pattern](https://www.ruby-forum.com/t/static-file-performance-staircase-pattern/241899)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 6\
**Last updated:** [May 11, 2015, 12:47pm UTC](https://www.ruby-forum.com/t/static-file-performance-staircase-pattern/241899 "2015-05-11T12:47:26Z")

</div>

Hi, I’m trying to find out how to effectively deliver pages with lots of images on a page. Attached you see opening a static html page that contains lots of img tags pointing to static images. Please also note that a…

---

## [OSX 10.6 Audio Library Error](https://www.ruby-forum.com/t/osx-10-6-audio-library-error/209119)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [July 7, 2011, 4:37am UTC](https://www.ruby-forum.com/t/osx-10-6-audio-library-error/209119 "2011-07-07T04:37:26Z")

</div>

I’m having trouble with a new install on OSX 10.6. I’ve done this enough times on other OSX versions but I am drawing a blank. Can anyone help me out? Can’t find Core Audio libs? Traceback (most recent call las…

---

## [NginxHttpUploadProgressModule received and size are the same](https://www.ruby-forum.com/t/nginxhttpuploadprogressmodule-received-and-size-are-the-same/184194)

<div class="topic-metadata">

**Author:** [@fredanthony](https://www.ruby-forum.com/u/fredanthony)\
**Replies:** 6\
**Last updated:** [March 4, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/nginxhttpuploadprogressmodule-received-and-size-are-the-same/184194 "2010-03-04T23:38:46Z")

</div>

Hi, I am having a weird issue. It seems I have everything up and working with the NginxHttpUploadProgressModule, however, when I upload a file and attempt to track the progress I get the expected response but the rece…

---

## [Specs for attributes with default values on the SQL layer](https://www.ruby-forum.com/t/specs-for-attributes-with-default-values-on-the-sql-layer/165723)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 6\
**Last updated:** [April 18, 2009, 10:45pm UTC](https://www.ruby-forum.com/t/specs-for-attributes-with-default-values-on-the-sql-layer/165723 "2009-04-18T22:45:21Z")

</div>

Hi I’m not sure what would be best practise to treat this case. Migration: t.boolean :fetched, :null =\> false, :default =\> false Model: validates\_inclusion\_of :fetched, :in =\> \[true, false\] Spec: it do article = …

---

## [Nginx memcached module and strange characters](https://www.ruby-forum.com/t/nginx-memcached-module-and-strange-characters/131864)

<div class="topic-metadata">

**Author:** [@Laurent\_Thevenet](https://www.ruby-forum.com/u/Laurent_Thevenet)\
**Replies:** 6\
**Last updated:** [February 9, 2009, 12:11pm UTC](https://www.ruby-forum.com/t/nginx-memcached-module-and-strange-characters/131864 "2009-02-09T12:11:41Z")

</div>

Hi, When retrieving data via the mecached module, there is some strange characters appearing. It looks like that kind of encoding issue between utf8 and iso8859-1. Data is encoded by a rails app (via a mongrel cluste…

---

## [In select: interrupt](https://www.ruby-forum.com/t/in-select-interrupt/141884)

<div class="topic-metadata">

**Author:** [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Replies:** 6\
**Last updated:** [July 1, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/in-select-interrupt/141884 "2008-07-01T23:58:31Z")

</div>

Anyone getting errors like this… I’m working on a console mode full screen editor (that Dossy kindly prototyped for me years ago). Basically, it’s reading $STD\_IN with a select, thusly: if select(\[@in\_io\], nil, ni…

---

## [Validates\_amount .. is there any?](https://www.ruby-forum.com/t/validates-amount-is-there-any/115359)

<div class="topic-metadata">

**Author:** [@zephyr](https://www.ruby-forum.com/u/zephyr)\
**Replies:** 6\
**Last updated:** [September 24, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/validates-amount-is-there-any/115359 "2007-09-24T16:46:39Z")

</div>

Is there any plugin which validates amount?? say the amount entered should be greater than 0. Thanks =\]

---

## [Fixture loading from multiple dirs](https://www.ruby-forum.com/t/fixture-loading-from-multiple-dirs/103776)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 6\
**Last updated:** [May 11, 2007, 2:34am UTC](https://www.ruby-forum.com/t/fixture-loading-from-multiple-dirs/103776 "2007-05-11T02:34:53Z")

</div>

We seem to have a patch in place that allows fixtures to be loaded from multiple directories. To do so, we have changed Test::Unit::TestCase.fixture\_path from a string to an array. What is the justification for this? …

---

## [Debugging using tk.rb](https://www.ruby-forum.com/t/debugging-using-tk-rb/72855)

<div class="topic-metadata">

**Author:** [@wybodekker](https://www.ruby-forum.com/u/wybodekker)\
**Replies:** 6\
**Last updated:** [October 21, 2006, 1:53pm UTC](https://www.ruby-forum.com/t/debugging-using-tk-rb/72855 "2006-10-21T13:53:05Z")

</div>

Is it possible to use the debug library while using tk.rb? It seems to work only as long as the Tk mainloop is not entered…

---

## [Migrations](https://www.ruby-forum.com/t/migrations/71541)

<div class="topic-metadata">

**Author:** [@edouard\_cante](https://www.ruby-forum.com/u/edouard_cante)\
**Replies:** 6\
**Last updated:** [October 12, 2006, 9:52am UTC](https://www.ruby-forum.com/t/migrations/71541 "2006-10-12T09:52:47Z")

</div>

Bonjour, je suis en train de bidouiller sous Rails, mais je viens de m’apercevoir que je n’ai pas vraiment compris le fonctionnement des migrations. Pour initialiser mon projet, j’avais rÃ©alisÃ© ceci : \* ruby script…

---

## [A proposal for Parsing Ruby in Ruby](https://www.ruby-forum.com/t/a-proposal-for-parsing-ruby-in-ruby/58806)

<div class="topic-metadata">

**Author:** [@kturner](https://www.ruby-forum.com/u/kturner)\
**Replies:** 6\
**Last updated:** [May 3, 2006, 7:09pm UTC](https://www.ruby-forum.com/t/a-proposal-for-parsing-ruby-in-ruby/58806 "2006-05-03T19:09:31Z")

</div>

R3: A Ruby native parsing framework ported from Perl6 Rules. Introduction: R3 is a Ruby native implementation of Perl6’s Rule engine specification. Perl6 Rules is a good compiler tool set for dynamic languages due to …

---

## [Phusion passenger + uninitialised constant+ NameError](https://www.ruby-forum.com/t/phusion-passenger-uninitialised-constant-nameerror/235748)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [July 15, 2013, 3:38pm UTC](https://www.ruby-forum.com/t/phusion-passenger-uninitialised-constant-nameerror/235748 "2013-07-15T15:38:38Z")

</div>

Hi, I am installing the apache module in phusion passenger. I am facing the error saying 'uninitialised constant. I am attaching the screenshot of the error. I am trying on Ubuntu machine. Regards, Shubhada

---

## ['require' is not loading files](https://www.ruby-forum.com/t/require-is-not-loading-files/235150)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [June 3, 2013, 9:10pm UTC](https://www.ruby-forum.com/t/require-is-not-loading-files/235150 "2013-06-03T21:10:31Z")

</div>

I am new to ruby and have been teaching it to myself for the past so I am still very new to Ruby. I have been trying to load external source-code files into my program but for some reason every time I try use require …

---

## [SSI and expires header](https://www.ruby-forum.com/t/ssi-and-expires-header/220923)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [July 4, 2012, 3:48pm UTC](https://www.ruby-forum.com/t/ssi-and-expires-header/220923 "2012-07-04T15:48:31Z")

</div>

Hello, We use SSI for serving a specific file but we want it to be cached by the clients for a few hours. We know SSI removes the Expires header set by the standard headers module so we wrote a small perl\_set sub that …

---

## [Compile problems gtk2, ruby-gnome2-all-1.1.2](https://www.ruby-forum.com/t/compile-problems-gtk2-ruby-gnome2-all-1-1-2/216439)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [April 3, 2012, 4:18am UTC](https://www.ruby-forum.com/t/compile-problems-gtk2-ruby-gnome2-all-1-1-2/216439 "2012-04-03T04:18:41Z")

</div>

I’m using RHEL 5.7. My base ruby is 1.9.3p0 gcc 4.1.2 gtk2-2.10.4-21.el5\_5.6 I have been trying to get gtk2 from 1.1.2 to build, “ruby extconf.rb” checks out fine. Says gtk2 is good to build. However, halfway throu…

---

## [Validates\_presence\_of problem](https://www.ruby-forum.com/t/validates-presence-of-problem/202012)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [January 21, 2011, 10:23pm UTC](https://www.ruby-forum.com/t/validates-presence-of-problem/202012 "2011-01-21T22:23:44Z")

</div>

hello every body ! i have a little problem i have created a scaffold Zone witch contain : name , interface and description as attribute all works fine but when i add this line to my model : class Zone \< ActiveRecord…

---

## [Building volk in MinGW](https://www.ruby-forum.com/t/building-volk-in-mingw/200598)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [December 17, 2010, 4:30am UTC](https://www.ruby-forum.com/t/building-volk-in-mingw/200598 "2010-12-17T04:30:54Z")

</div>

I try to build volk in MinGW and find the following issues: config.sub and config.guess are corrupt. They seems to be corrupted symlinks. This can be corrected by copying from top level directory. The following files …

---

## [ImportError: cannot import name ais](https://www.ruby-forum.com/t/importerror-cannot-import-name-ais/197375)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [October 15, 2010, 1:08pm UTC](https://www.ruby-forum.com/t/importerror-cannot-import-name-ais/197375 "2010-10-15T13:08:07Z")

</div>

Installed gr-ais package from cgran: apt-get install autoconf automake libtool gcc g++ subversion python-dev svn co https://www.cgran.org/svn/projects/gr-ais/trunk /home/gr-ais cd /home/gr-ais/trunk ./bootstrap ./co…

---

## [Menu event handler problem](https://www.ruby-forum.com/t/menu-event-handler-problem/180226)

<div class="topic-metadata">

**Author:** [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Replies:** 4\
**Last updated:** [December 16, 2009, 4:31am UTC](https://www.ruby-forum.com/t/menu-event-handler-problem/180226 "2009-12-16T04:31:13Z")

</div>

Guys, I make a form with xrc file help I load, use lambda to get all my widgets, then set event handler somehow, it does not work well with menu with no clear sign of what the mistake is is there something I miss? …

---

## [Eager loading or Lazy loading](https://www.ruby-forum.com/t/eager-loading-or-lazy-loading/133783)

<div class="topic-metadata">

**Author:** [@selva](https://www.ruby-forum.com/u/selva)\
**Replies:** 4\
**Last updated:** [April 22, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/eager-loading-or-lazy-loading/133783 "2008-04-22T15:32:01Z")

</div>

Hai… Whether ruby on rails is eager loading or lazy loading??? I think while using association in model its getting eager loading… can any one explain more???

---

## [Puts vs. write for writing to a file](https://www.ruby-forum.com/t/puts-vs-write-for-writing-to-a-file/117381)

<div class="topic-metadata">

**Author:** [@randy\_k](https://www.ruby-forum.com/u/randy_k)\
**Replies:** 4\
**Last updated:** [October 16, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/puts-vs-write-for-writing-to-a-file/117381 "2007-10-16T19:51:32Z")

</div>

I’ve done some googling, some looking in the pickaxe(2) book (using the index), and some experimenting in irb, but I can’t readily see the difference between puts and write (except that write doesn’t work in all cases…

---

## [Writing disassembler in Ruby](https://www.ruby-forum.com/t/writing-disassembler-in-ruby/76289)

<div class="topic-metadata">

**Author:** [@bigos](https://www.ruby-forum.com/u/bigos)\
**Replies:** 4\
**Last updated:** [November 21, 2006, 4:11pm UTC](https://www.ruby-forum.com/t/writing-disassembler-in-ruby/76289 "2006-11-21T16:11:26Z")

</div>

Hi, This is my first post here. I am interested in writing a disassembler using Ruby. I have attached little example of my experiments with Ruby and ndisasm. Please comment on the code usefulness of it etc. do you k…

---

## ["numeric literal without digits" rake update\_po error](https://www.ruby-forum.com/t/numeric-literal-without-digits-rake-update-po-error/62398)

<div class="topic-metadata">

**Author:** [@Maxime\_C](https://www.ruby-forum.com/u/Maxime_C)\
**Replies:** 4\
**Last updated:** [June 4, 2006, 8:39pm UTC](https://www.ruby-forum.com/t/numeric-literal-without-digits-rake-update-po-error/62398 "2006-06-04T20:39:26Z")

</div>

First off, I am using ruby 1.8.4 installed under Ubuntu Breezy Badger, with ruby-gettext 1.5.0 installed as a gem. I have found a weird behavior with rgettext parsing certain .rb files. Whenever rgettext encounters a …

---

## [Recommended setup of Mongrel\_cluster + SSL for multiple apps](https://www.ruby-forum.com/t/recommended-setup-of-mongrel-cluster-ssl-for-multiple-apps/59409)

<div class="topic-metadata">

**Author:** [@Greg\_E](https://www.ruby-forum.com/u/Greg_E)\
**Replies:** 4\
**Last updated:** [May 5, 2006, 12:18am UTC](https://www.ruby-forum.com/t/recommended-setup-of-mongrel-cluster-ssl-for-multiple-apps/59409 "2006-05-05T00:18:02Z")

</div>

I’d like to use Mongrel\_cluster with SSL on a green-field application (it can be configured however is best - initially, “ease of setup” is important, but then soon after will be scaling and response time). I’ve read…

---

## [Ruby e i principi dell'OOP](https://www.ruby-forum.com/t/ruby-e-i-principi-delloop/201646)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [January 12, 2011, 12:36pm UTC](https://www.ruby-forum.com/t/ruby-e-i-principi-delloop/201646 "2011-01-12T12:36:09Z")

</div>

Ciao a tutti. Premetto che sono un neo-rubysta e provengo da anni di C#. Una delle cose “strane” di Ruby che mi sono balzate all’occhio la “dimensione” delle classi. Gi la classe Object ha 56 metodi e scendendo nell…

---

## [Rails 2.1.2 to 2.3.2 problems](https://www.ruby-forum.com/t/rails-2-1-2-to-2-3-2-problems/163890)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 8\
**Last updated:** [March 31, 2009, 2:27am UTC](https://www.ruby-forum.com/t/rails-2-1-2-to-2-3-2-problems/163890 "2009-03-31T02:27:38Z")

</div>

I just installed Rails 2.3.2 and tried to upgrade my test app from 2.1.2. After installing Rails 2.3.2, I simply changed the gem version in my environment.rb file in config directory as shown below: Specifies gem ve…

---

## [Simple ruby project layout question](https://www.ruby-forum.com/t/simple-ruby-project-layout-question/160329)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 8\
**Last updated:** [February 15, 2009, 2:24am UTC](https://www.ruby-forum.com/t/simple-ruby-project-layout-question/160329 "2009-02-15T02:24:42Z")

</div>

Trying to get up to standards, here. Reading about project layout in Programming Ruby (3rd ed)., where reference is made to “…some strong Ruby conventions, first seen in Minero A.’s setup.rb and later enshrined in the…

---

## [Not seeing an RJS change](https://www.ruby-forum.com/t/not-seeing-an-rjs-change/149721)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 8\
**Last updated:** [September 30, 2008, 4:16am UTC](https://www.ruby-forum.com/t/not-seeing-an-rjs-change/149721 "2008-09-30T04:16:16Z")

</div>

I’m writing specs for an XHR, and am having troubles getting my specs to see that a is being hidden. === map\_filter.rjs 19 else 20 puts “map\_filter.rjs\> else!” 21 # Display the filter errors. 22 page\[‘map-filt…

---

## [Proper idom for link\_to\_if](https://www.ruby-forum.com/t/proper-idom-for-link-to-if/132779)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 8\
**Last updated:** [March 24, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/proper-idom-for-link-to-if/132779 "2008-03-24T21:39:07Z")

</div>

What I wish to do is to have a construct like this in a view: \<%= link\_to\_if , “New Model View”, new\_model\_path -%\> has to return true if new\_model\_path is defined and false otherwise. What is the proper idiom to do…

---

## [How do you run WEBrick under Rails 2.x?](https://www.ruby-forum.com/t/how-do-you-run-webrick-under-rails-2-x/125664)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 8\
**Last updated:** [January 11, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/how-do-you-run-webrick-under-rails-2-x/125664 "2008-01-11T17:23:19Z")

</div>

It appears that Mongrel is now the default development server for Rails as of 2.x. I’m assuming this because I’m unable to run Mongrel (for reasons I don’t totally understand yet - I am running Windows and I keep gett…

---

## [Duda de maquetaciÃ³n](https://www.ruby-forum.com/t/duda-de-maquetacia-n/123527)

<div class="topic-metadata">

**Author:** [@fernan2](https://www.ruby-forum.com/u/fernan2)\
**Replies:** 8\
**Last updated:** [December 20, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/duda-de-maquetacia-n/123527 "2007-12-20T18:47:02Z")

</div>

supongo que aquÃ­ no es el sitio adecuado para preguntarlo, pero si alguien lo sabe… Tengo un div (podrÃ­a ser otro elemento) con un fondo de color, y dentro va texto que puede ser corto o largo. Si el texto es corto…

---

## [Class variable as parameter](https://www.ruby-forum.com/t/class-variable-as-parameter/121109)

<div class="topic-metadata">

**Author:** [@Filipe](https://www.ruby-forum.com/u/Filipe)\
**Replies:** 8\
**Last updated:** [November 26, 2007, 2:51am UTC](https://www.ruby-forum.com/t/class-variable-as-parameter/121109 "2007-11-26T02:51:48Z")

</div>

I have the following situation: class MyClass def setVar(var,varValue) var=varValue end def initialize @myVar=0 setVar(@myVar,1) puts(@myVar.to\_s) end end test = MyClass.new Unfortunately, this piece of code …

---

## [How do I write a generator?](https://www.ruby-forum.com/t/how-do-i-write-a-generator/59889)

<div class="topic-metadata">

**Author:** [@brucebalmer](https://www.ruby-forum.com/u/brucebalmer)\
**Replies:** 8\
**Last updated:** [January 7, 2006, 6:59am UTC](https://www.ruby-forum.com/t/how-do-i-write-a-generator/59889 "2006-01-07T06:59:20Z")

</div>

I’d like to take some advice and write a generator to change the scaffold.css. How do I do that? I looked on the wiki and googled it but have not found anything yet. Any help would be much appreciated. bruce

---

## [Code execution from file?](https://www.ruby-forum.com/t/code-execution-from-file/49721)

<div class="topic-metadata">

**Author:** [@akonsu](https://www.ruby-forum.com/u/akonsu)\
**Replies:** 8\
**Last updated:** [December 9, 2005, 2:17pm UTC](https://www.ruby-forum.com/t/code-execution-from-file/49721 "2005-12-09T14:17:52Z")

</div>

hello, i have a text field in a database table (a text file, generally speaking), with arbitrary Ruby code. i would like to execute this code in my application’s current environment. but i need to hide all my variabl…

---

## [Packages for the dynamic modules. testing required](https://www.ruby-forum.com/t/packages-for-the-dynamic-modules-testing-required/244131)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [March 29, 2016, 7:10pm UTC](https://www.ruby-forum.com/t/packages-for-the-dynamic-modules-testing-required/244131 "2016-03-29T19:10:34Z")

</div>

Hello. Previously we built nginx with all modules, except those that required extra libraries. With dynamic modules it is possible to build them as the separate packages and nginx main package will not have extra dep…

---

## [Rspec devise, testing extended RegistrationController action destroy](https://www.ruby-forum.com/t/rspec-devise-testing-extended-registrationcontroller-action-destroy/235631)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 9, 2013, 10:37pm UTC](https://www.ruby-forum.com/t/rspec-devise-testing-extended-registrationcontroller-action-destroy/235631 "2013-07-09T22:37:36Z")

</div>

Hi everyone, I have devise 1.5.4 working with rails 3.0.20 and ruby 1.8.7 . I have extended the destroy action from the RegistrationController, to soft delete users instead of really deleting them from the database. …

---

## [Using Mechanize gem to automate some tasks on Facebook](https://www.ruby-forum.com/t/using-mechanize-gem-to-automate-some-tasks-on-facebook/226794)

<div class="topic-metadata">

**Author:** [@Bao\_Trung\_TSNguyen](https://www.ruby-forum.com/u/Bao_Trung_TSNguyen)\
**Replies:** 3\
**Last updated:** [February 23, 2013, 2:27pm UTC](https://www.ruby-forum.com/t/using-mechanize-gem-to-automate-some-tasks-on-facebook/226794 "2013-02-23T14:27:32Z")

</div>

Dear friends, I’ve recently worked with Facebook Automation. I’ve tried Mechanize gem and I am able to login into Facebook but I stuck here T.T I tried to post on facebook but can’t find anyway to do that. Can you g…

---

## [Is there a way to ignore DST?](https://www.ruby-forum.com/t/is-there-a-way-to-ignore-dst/205182)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 31, 2011, 4:13pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-ignore-dst/205182 "2011-03-31T16:13:01Z")

</div>

I want to save my datetime and display it using a user’s TimeZone ignoring DST at all times. Is this possible?

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

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