# Top

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

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

---

## [Best Practices?](https://www.ruby-forum.com/t/best-practices/193841)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 1\
**Last updated:** [August 25, 2010, 5:44pm UTC](https://www.ruby-forum.com/t/best-practices/193841 "2010-08-25T17:44:28Z")

</div>

I understand the practice of using yaml files for language translations for basic things like labels, links etc. But for large chunks of text that might contain a lot of markup for design etc what is the best way to o…

---

## [Rewriting URI Fragment](https://www.ruby-forum.com/t/rewriting-uri-fragment/182731)

<div class="topic-metadata">

**Author:** [@veganopolis](https://www.ruby-forum.com/u/veganopolis)\
**Replies:** 1\
**Last updated:** [February 2, 2010, 2:46am UTC](https://www.ruby-forum.com/t/rewriting-uri-fragment/182731 "2010-02-02T02:46:07Z")

</div>

Hello, I have a Facebookesque AJAX URL system so that certain pages will dynamically reload data and update the location.hash parameter and make the URL become /old\_path#/new\_path At the moment the only way I have be…

---

## [Attribute in extra Model](https://www.ruby-forum.com/t/attribute-in-extra-model/169360)

<div class="topic-metadata">

**Author:** [@Marco\_Scholl](https://www.ruby-forum.com/u/Marco_Scholl)\
**Replies:** 1\
**Last updated:** [June 2, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/attribute-in-extra-model/169360 "2009-06-02T20:55:57Z")

</div>

Hi, ich habe folgendes vor und hoffe Ihr kennt eine gute Lösung. Ich bau gerade an einem Portal in dem es User gibt. Die User sollen Informationen/Attribute haben. Diese Attribute sollen aber in einer extra Tabelle g…

---

## [Porting to Ruby 1.9?](https://www.ruby-forum.com/t/porting-to-ruby-1-9/163667)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 1\
**Last updated:** [April 29, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/porting-to-ruby-1-9/163667 "2009-04-29T15:04:21Z")

</div>

Hi, Is there anyone working on porting ferret to ruby 1.9.1? Thanks in advance. Pat

---

## [How load plugin](https://www.ruby-forum.com/t/how-load-plugin/162303)

<div class="topic-metadata">

**Author:** [@darius](https://www.ruby-forum.com/u/darius)\
**Replies:** 1\
**Last updated:** [March 8, 2009, 12:44pm UTC](https://www.ruby-forum.com/t/how-load-plugin/162303 "2009-03-08T12:44:15Z")

</div>

Hi, I try load related\_posts plugin from http://github.com/fdv/typo\_related\_posts/trunk, install successful. But get error: |undefined local variable or method \`render\_related\_posts’ for #ActionView::Base:0xb63fa104 …

---

## [Menu.delete returned "wrong # of argument" on Mac](https://www.ruby-forum.com/t/menu-delete-returned-wrong-of-argument-on-mac/158197)

<div class="topic-metadata">

**Author:** [@zzhan](https://www.ruby-forum.com/u/zzhan)\
**Replies:** 1\
**Last updated:** [January 23, 2009, 1:30pm UTC](https://www.ruby-forum.com/t/menu-delete-returned-wrong-of-argument-on-mac/158197 "2009-01-23T13:30:37Z")

</div>

Hi, I was trying to delete menu items in a submenu, the code worked fine on Windows, but failed on Mac. I modified the sample bigdemo/wxMenu.rbw, def menu\_101(event) @log.write\_text(“Welcome to Mercury”) # New here…

---

## [Using Sketchup Ruby API outside of Sketchup...say in Linux?](https://www.ruby-forum.com/t/using-sketchup-ruby-api-outside-of-sketchup-say-in-linux/131212)

<div class="topic-metadata">

**Author:** [@Zeeshan\_Zia](https://www.ruby-forum.com/u/Zeeshan_Zia)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/using-sketchup-ruby-api-outside-of-sketchup-say-in-linux/131212 "2008-03-07T18:40:29Z")

</div>

Hi, I need to write a program that can obtain 3D mesh information from Google Sketchup (.skp) files, while in Linux. Google Sketchup provides a Sketchup Ruby API that can be used to create plugins, that usually run …

---

## [Ordenar por campos virtuales](https://www.ruby-forum.com/t/ordenar-por-campos-virtuales/128440)

<div class="topic-metadata">

**Author:** [@alfredogz](https://www.ruby-forum.com/u/alfredogz)\
**Replies:** 1\
**Last updated:** [February 7, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/ordenar-por-campos-virtuales/128440 "2008-02-07T19:38:58Z")

</div>

Buenas, un saludo al foro. Tengo la siguiente estructura de tablas en mi aplicacion: productos: id nombre fabricante\_id categoria\_id descuento … medidas: id ancho largo precio producto\_id en los modelos ra…

---

## [Problems with Rake 0.8.0 and Engines 2.0](https://www.ruby-forum.com/t/problems-with-rake-0-8-0-and-engines-2-0/123995)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 1\
**Last updated:** [December 23, 2007, 7:32pm UTC](https://www.ruby-forum.com/t/problems-with-rake-0-8-0-and-engines-2-0/123995 "2007-12-23T19:32:57Z")

</div>

Anyone else run into this? undefined method last' for {}:Hash /Library/Ruby/Gems/1.8/gems/rake-0.8.0/lib/rake.rb:1654:inresolve\_args’ /Users/tony/src/clickcaster/vendor/plugins/engines/tasks/engines.rake:9:in redefine…

---

## [Caching in development mode on webrick](https://www.ruby-forum.com/t/caching-in-development-mode-on-webrick/53595)

<div class="topic-metadata">

**Author:** [@David\_NSWelton](https://www.ruby-forum.com/u/David_NSWelton)\
**Replies:** 1\
**Last updated:** [September 14, 2006, 12:31am UTC](https://www.ruby-forum.com/t/caching-in-development-mode-on-webrick/53595 "2006-09-14T00:31:21Z")

</div>

Hi, I’m running a more or less up-to-date system, and am encountering something that’s irritating me: I make changes to the .rhtml file, and yet don’t see them from my browser. The development.log file indicates tha…

---

## [Ruby script if statement](https://www.ruby-forum.com/t/ruby-script-if-statement/237607)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [November 20, 2013, 11:07pm UTC](https://www.ruby-forum.com/t/ruby-script-if-statement/237607 "2013-11-20T23:07:06Z")

</div>

Hi, I want to write a if statement script, what it will do is if the phone number field exist, then print the phone number, otherwise leave it blank. I have tried this: \<% if @user.phone\_work != 0 %\>Work: \<%= @user.…

---

## [Quick syntax question - newbie](https://www.ruby-forum.com/t/quick-syntax-question-newbie/203442)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [February 21, 2011, 12:15pm UTC](https://www.ruby-forum.com/t/quick-syntax-question-newbie/203442 "2011-02-21T12:15:34Z")

</div>

Hi all, am writing a simple app that lets me pick a post type to go under National or International. the code bellow generates a drop-down from where I can pick the options \<%= f.collection\_select :postType\_id…

---

## [Regex for string first chars - Model validation](https://www.ruby-forum.com/t/regex-for-string-first-chars-model-validation/203077)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [February 11, 2011, 11:50pm UTC](https://www.ruby-forum.com/t/regex-for-string-first-chars-model-validation/203077 "2011-02-11T23:50:26Z")

</div>

Hello everyone, in my Rails app I need to validate a string that on creation can not have its first chars empty or composed by any special chars. For example: " file" and “%file” aren’t valid. Do you know what Regex I …

---

## [Books and/or Tutorials](https://www.ruby-forum.com/t/books-and-or-tutorials/201952)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [January 20, 2011, 1:29am UTC](https://www.ruby-forum.com/t/books-and-or-tutorials/201952 "2011-01-20T01:29:22Z")

</div>

Hello Fellow Ruby U.! I recently picked up Ruby and am absolutely loving it. At any rate, I have run through most of the short guides on ruby-lang.org, and am looking for something more substantive about the language…

---

## [STI with user and artist? Your thoughts please](https://www.ruby-forum.com/t/sti-with-user-and-artist-your-thoughts-please/195833)

<div class="topic-metadata">

**Author:** [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Replies:** 6\
**Last updated:** [October 1, 2010, 5:59pm UTC](https://www.ruby-forum.com/t/sti-with-user-and-artist-your-thoughts-please/195833 "2010-10-01T17:59:00Z")

</div>

I’ve got user and artist. The app allows users to register. And some of these registered users can sign up as an artist as well. Should user be an STI? Perhaps i can have user as an STI, member (registered users) and …

---

## [Handling id for social networking site](https://www.ruby-forum.com/t/handling-id-for-social-networking-site/177981)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 6\
**Last updated:** [October 28, 2009, 2:20am UTC](https://www.ruby-forum.com/t/handling-id-for-social-networking-site/177981 "2009-10-28T02:20:23Z")

</div>

Hi All, I want to handle the id parameter for social networking site For example: If the user logins to the site having id=1, he can show his profile as http://localhost:3000/users/1 http://localhost:3000/users/1/ed…

---

## [Ruby web programming](https://www.ruby-forum.com/t/ruby-web-programming/176885)

<div class="topic-metadata">

**Author:** [@yousef\_1987](https://www.ruby-forum.com/u/yousef_1987)\
**Replies:** 6\
**Last updated:** [October 8, 2009, 8:36am UTC](https://www.ruby-forum.com/t/ruby-web-programming/176885 "2009-10-08T08:36:51Z")

</div>

I am asking for , how I can call Ruby from html for example : // its possible to do that

---

## [Annoying: cannot write ' user=" IÃ±aki ' in a Ruby1.9 script](https://www.ruby-forum.com/t/annoying-cannot-write-user-ia-aki-in-a-ruby1-9-script/174776)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 6\
**Last updated:** [September 2, 2009, 3:47am UTC](https://www.ruby-forum.com/t/annoying-cannot-write-user-ia-aki-in-a-ruby1-9-script/174776 "2009-09-02T03:47:38Z")

</div>

Hi, I’m really annoyed, please try this: Open a file (in a UTF-8 system as any modern Linux) and write: script.rb user = “IÃ±aki” puts user Now run: ~# ruby1.8 script.rb =\> “IÃ±aki” ~# ruby1.9 script.rb =\> invalid…

---

## [Hi folks](https://www.ruby-forum.com/t/hi-folks/169751)

<div class="topic-metadata">

**Author:** [@anandh](https://www.ruby-forum.com/u/anandh)\
**Replies:** 6\
**Last updated:** [June 11, 2009, 9:33am UTC](https://www.ruby-forum.com/t/hi-folks/169751 "2009-06-11T09:33:04Z")

</div>

i m a beginner in ruby on rails… i need a complete a code for the following… 1. To parse a word document containing the students details… 2.i ve to link these details in to database… i…

---

## [Beginner Ruby Question](https://www.ruby-forum.com/t/beginner-ruby-question/168258)

<div class="topic-metadata">

**Author:** [@calvin](https://www.ruby-forum.com/u/calvin)\
**Replies:** 6\
**Last updated:** [May 19, 2009, 5:40am UTC](https://www.ruby-forum.com/t/beginner-ruby-question/168258 "2009-05-19T05:40:47Z")

</div>

Hi, I just intstalled Ruby 1.9 on my mac with macports. The installation was successful but when I type in ruby -v at the command prompt, Ruby 1.8.6 shows up still. The latest Pickaxe book says I have to have /opt/ l…

---

## [How to beat minimal wiki features out of redcloth?](https://www.ruby-forum.com/t/how-to-beat-minimal-wiki-features-out-of-redcloth/164772)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 6\
**Last updated:** [April 6, 2009, 7:03pm UTC](https://www.ruby-forum.com/t/how-to-beat-minimal-wiki-features-out-of-redcloth/164772 "2009-04-06T19:03:48Z")

</div>

Rubies: I always see “redcloth” everywhere - a textile implementation for Ruby. So I try to use it. Firstly, my code has some tags and whatnot. This command line passed them through without decorating them: ruby …

---

## [Simple class question](https://www.ruby-forum.com/t/simple-class-question/160044)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 6\
**Last updated:** [February 11, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/simple-class-question/160044 "2009-02-11T15:44:49Z")

</div>

Tonight I’m exploring the problem of tossing a value at a class instance and getting a value back - having it behave like a method, in other words. I’ve not looked at this before, and I don’t have much confidence abou…

---

## [Mixin application.rb problem](https://www.ruby-forum.com/t/mixin-application-rb-problem/147755)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 6\
**Last updated:** [September 5, 2008, 7:43pm UTC](https://www.ruby-forum.com/t/mixin-application-rb-problem/147755 "2008-09-05T19:43:09Z")

</div>

Hello all. I’m trying to implement my own role-based access scheme, and I’ve hit a bit of a snag. It may be that my idea is just plain wrong, and if so, I’d appreciate gentle instruction as to how to make it more soun…

---

## [Mod\_proxy\_balancer question](https://www.ruby-forum.com/t/mod-proxy-balancer-question/145900)

<div class="topic-metadata">

**Author:** [@davidf](https://www.ruby-forum.com/u/davidf)\
**Replies:** 6\
**Last updated:** [August 14, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/mod-proxy-balancer-question/145900 "2008-08-14T23:07:04Z")

</div>

Here’s the problem, I want to start running more mongrels on a 2nd server, but I want it so that any file uploads still go to the 1st server. Anyone know how I can do this?

---

## [Condition sur un modÃ¨le plutÃ´t que sur un contrÃ´leur](https://www.ruby-forum.com/t/condition-sur-un-moda-le-pluta-t-que-sur-un-contra-leur/143778)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 6\
**Last updated:** [July 22, 2008, 6:13pm UTC](https://www.ruby-forum.com/t/condition-sur-un-moda-le-pluta-t-que-sur-un-contra-leur/143778 "2008-07-22T18:13:07Z")

</div>

Bonjour, J’ai dans une table “users” un champ nommÃ© “active” (qui est boolÃ©en) permettant de ne traiter que les utilisateurs dont le compte a Ã©tÃ© activÃ©. Aussi ai-je ajoutÃ© dans chaque action du contrÃ´leur resp…

---

## [Big empty file creation](https://www.ruby-forum.com/t/big-empty-file-creation/141651)

<div class="topic-metadata">

**Author:** [@Zhukov\_P](https://www.ruby-forum.com/u/Zhukov_P)\
**Replies:** 6\
**Last updated:** [June 28, 2008, 12:26pm UTC](https://www.ruby-forum.com/t/big-empty-file-creation/141651 "2008-06-28T12:26:55Z")

</div>

I need to creat an empty file, over 10GB size. Which way is fastest in file creation? file\<\<“0”\*file\_size\_in\_bytes consme too much memory

---

## [Is posible to get the Module(s), Class and Method names in which we are?](https://www.ruby-forum.com/t/is-posible-to-get-the-module-s-class-and-method-names-in-which-we-are/134003)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 6\
**Last updated:** [April 7, 2008, 12:42am UTC](https://www.ruby-forum.com/t/is-posible-to-get-the-module-s-class-and-method-names-in-which-we-are/134003 "2008-04-07T00:42:37Z")

</div>

Hi, for logging purposes I’d like to print the Modules, Class and Method in with the logger is called. Imagine this case: module App module TransportLayer class Server def get\_data() … … logger.info “We are in X…

---

## [Formulaire dynamique](https://www.ruby-forum.com/t/formulaire-dynamique/131026)

<div class="topic-metadata">

**Author:** [@hhh](https://www.ruby-forum.com/u/hhh)\
**Replies:** 6\
**Last updated:** [March 6, 2008, 10:07am UTC](https://www.ruby-forum.com/t/formulaire-dynamique/131026 "2008-03-06T10:07:50Z")

</div>

Bonjour Ã tous, Je viens vous demander de l’aide, s’il vous plait. J’ai une vue index qui m’affiche la liste des adhÃ©rents comme suite Nom | prÃ©nom | etc… toto | sonprenom | etc … Je dois creer des cases Ã coche…

---

## [Rails: Come estrarre solo i campi calcolati da un modello?](https://www.ruby-forum.com/t/rails-come-estrarre-solo-i-campi-calcolati-da-un-modello/130465)

<div class="topic-metadata">

**Author:** [@carminem](https://www.ruby-forum.com/u/carminem)\
**Replies:** 6\
**Last updated:** [February 29, 2008, 12:13pm UTC](https://www.ruby-forum.com/t/rails-come-estrarre-solo-i-campi-calcolati-da-un-modello/130465 "2008-02-29T12:13:42Z")

</div>

Salve a tutti, Ho una serie di modelli AR con dei campi calcolati, e l’esigenza di poterli “esportare” per mezzo dei metodi come to\_xml e/o to\_json. Esiste un modo agevole senza ricorrere a prefissi sugli stessi per …

---

## [Using plugin ssl\_requirement: generate SSL link](https://www.ruby-forum.com/t/using-plugin-ssl-requirement-generate-ssl-link/109308)

<div class="topic-metadata">

**Author:** [@yaxm](https://www.ruby-forum.com/u/yaxm)\
**Replies:** 6\
**Last updated:** [February 15, 2008, 5:55am UTC](https://www.ruby-forum.com/t/using-plugin-ssl-requirement-generate-ssl-link/109308 "2008-02-15T05:55:06Z")

</div>

Hi, I am using ssl\_requirement(http://dev.rubyonrails.org/svn/rails/plugins/ssl\_requirement/README) to set up SSL access requirement on actions in my controller. In my webapp’s home page, I provide a login panel for …

---

## [Database/program design question](https://www.ruby-forum.com/t/database-program-design-question/125388)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 6\
**Last updated:** [January 9, 2008, 10:25am UTC](https://www.ruby-forum.com/t/database-program-design-question/125388 "2008-01-09T10:25:24Z")

</div>

Hi, I’m a bit new to the MVC design and all the fun stuff that goes along with Ruby on Rails. I just got RoR working on my host (I’m stuck on version 1.1.6, though), and I was looking for advice on how I should design…

---

## [Download Ruby Core API](https://www.ruby-forum.com/t/download-ruby-core-api/114517)

<div class="topic-metadata">

**Author:** [@mahen](https://www.ruby-forum.com/u/mahen)\
**Replies:** 6\
**Last updated:** [September 25, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/download-ruby-core-api/114517 "2007-09-25T23:10:50Z")

</div>

Does anyone know where I can download a PDF or anything of RUBY’s core api for offline browsing. I tried to download it from http://www.ruby-doc.org/download/ruby-doc-bundle.zip but in vain.

---

## [Validates\_mutual\_exclusivity](https://www.ruby-forum.com/t/validates-mutual-exclusivity/106754)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 6\
**Last updated:** [June 14, 2007, 6:19am UTC](https://www.ruby-forum.com/t/validates-mutual-exclusivity/106754 "2007-06-14T06:19:24Z")

</div>

Railsters: We have a model with 2 variables. Neither may be nil or non-nil at the same time. They must pass this truth table: def test\_mutually\_exclude assert\_equal false, Model.new.save assert\_equal false, Model.ne…

---

## [FeistyFawn problems again :(](https://www.ruby-forum.com/t/feistyfawn-problems-again/92896)

<div class="topic-metadata">

**Author:** [@konvak](https://www.ruby-forum.com/u/konvak)\
**Replies:** 6\
**Last updated:** [April 28, 2007, 4:08am UTC](https://www.ruby-forum.com/t/feistyfawn-problems-again/92896 "2007-04-28T04:08:39Z")

</div>

hi all, I read the previous posts about FF + gnuradio, but I still have some trouble I have fresh install of FeistyFawn, fresh install of gnuradio 3.0.2(ubuntu package), I have group usrp with “me” in it, I have 10-…

---

## [When nothing isn't](https://www.ruby-forum.com/t/when-nothing-isnt/89087)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 6\
**Last updated:** [March 17, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/when-nothing-isnt/89087 "2007-03-17T16:56:09Z")

</div>

One of the strangest things for me, coming from the “C” world to Ruby was how much attention “nil” gets. Sure, NULL is there in C, but it’s about as interesting as its value. In Ruby, it seems as if nil is an extra v…

---

## [Cooloptions 1.1.0 Released](https://www.ruby-forum.com/t/cooloptions-1-1-0-released/81653)

<div class="topic-metadata">

**Author:** [@ntalbott](https://www.ruby-forum.com/u/ntalbott)\
**Replies:** 6\
**Last updated:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/cooloptions-1-1-0-released/81653 "2007-01-19T16:31:25Z")

</div>

cooloptions version 1.1.0 has been released! http://cooloptions.rubyforge.org/ As a huge fan of optparse due to its flexibility, self-documenting nature, and ease of use, I nevertheless found myself doing almost the …

---

## [Assegnazione valore da select](https://www.ruby-forum.com/t/assegnazione-valore-da-select/73617)

<div class="topic-metadata">

**Author:** [@BSMaffettone](https://www.ruby-forum.com/u/BSMaffettone)\
**Replies:** 6\
**Last updated:** [October 27, 2006, 7:53am UTC](https://www.ruby-forum.com/t/assegnazione-valore-da-select/73617 "2006-10-27T07:53:36Z")

</div>

Ciao a tutti Ho questa tabella CREATE TABLE SERVICES ( ID INTEGER NOT NULL, NOME VARCHAR (35) , CODICE CHAR (7) , IMPORTO DECIMAL (6, 2), NUMERO SMALLINT); E questa \_form relativa ad un’altra tabella PRESCRIPTION …

---

## [File\_column and HABTM](https://www.ruby-forum.com/t/file-column-and-habtm/50964)

<div class="topic-metadata">

**Author:** [@aroth](https://www.ruby-forum.com/u/aroth)\
**Replies:** 6\
**Last updated:** [June 16, 2006, 4:40pm UTC](https://www.ruby-forum.com/t/file-column-and-habtm/50964 "2006-06-16T16:40:38Z")

</div>

I have several models that will be using file\_column by way of the “Picture” class (HABTM). Right now, all pictures are stored in: public/picture/image/1/filename1.jpg public/picture/image/2/filename2.jpg Is there a …

---

## [Useful methods for RubyGems](https://www.ruby-forum.com/t/useful-methods-for-rubygems/82064)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 6\
**Last updated:** [March 15, 2006, 10:41pm UTC](https://www.ruby-forum.com/t/useful-methods-for-rubygems/82064 "2006-03-15T22:41:12Z")

</div>

Please, could these be added to the next version of Gems? module Gem # Is gem active? def active?(gemname) @loaded\_specs ||= Hash.new @loaded\_specs.key? gemname end # Return gemspec of active gem def gemspe…

---

## [How to create a command line script that acts on a model?](https://www.ruby-forum.com/t/how-to-create-a-command-line-script-that-acts-on-a-model/100025)

<div class="topic-metadata">

**Author:** [@jeroen](https://www.ruby-forum.com/u/jeroen)\
**Replies:** 6\
**Last updated:** [February 2, 2006, 11:52am UTC](https://www.ruby-forum.com/t/how-to-create-a-command-line-script-that-acts-on-a-model/100025 "2006-02-02T11:52:18Z")

</div>

Hi, I’m looking to create a ruby script that loads a bunch of records and manipulates these. Where do I start? I got this to begin with: #!/usr/bin/env ruby require File.dirname(FILE) + ‘/…/config/boot’ players = P…

---

## [Dumb question concerning ruby 1.8.2 and 1.8.3](https://www.ruby-forum.com/t/dumb-question-concerning-ruby-1-8-2-and-1-8-3/50657)

<div class="topic-metadata">

**Author:** [@oandrich](https://www.ruby-forum.com/u/oandrich)\
**Replies:** 6\
**Last updated:** [December 20, 2005, 3:06pm UTC](https://www.ruby-forum.com/t/dumb-question-concerning-ruby-1-8-2-and-1-8-3/50657 "2005-12-20T15:06:22Z")

</div>

Hi, I will use the holidays to do my first real steps with Rails. No toying around but actually developing an application that is planned to be used in an production environment early next year. Now I have read severa…

---

## [Using n.times with gsub](https://www.ruby-forum.com/t/using-n-times-with-gsub/47919)

<div class="topic-metadata">

**Author:** [@davidpthomas](https://www.ruby-forum.com/u/davidpthomas)\
**Replies:** 6\
**Last updated:** [November 15, 2005, 5:12am UTC](https://www.ruby-forum.com/t/using-n-times-with-gsub/47919 "2005-11-15T05:12:22Z")

</div>

GOAL: one-liner substitute of 5 spaces at beginning of a line. WORKS: gsub(/^/, " ") FAILS: gsub(/^/, 5.times {putc " "}) -example- WORKS: $ cat foo.out | ruby -pe ‘gsub(/^/, " ")’ FAILS: $ cat foo.out | rub…

---

## [Error with rails console](https://www.ruby-forum.com/t/error-with-rails-console/235017)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [May 26, 2013, 9:19am UTC](https://www.ruby-forum.com/t/error-with-rails-console/235017 "2013-05-26T09:19:57Z")

</div>

using rails 3.2.13 ruby 1.9.3-p0 hello, getting following error when typed rails console /usr/local/lib/ruby/1.9.1/irb/input-method.rb:113:in gets': uninitialized constant IRB::ReadlineInputMethod::Readline (NameErr…

---

## [3.2.13 breaks localized ActiveScaffold assets compilation](https://www.ruby-forum.com/t/3-2-13-breaks-localized-activescaffold-assets-compilation/227537)

<div class="topic-metadata">

**Author:** [@Yves-Eric](https://www.ruby-forum.com/u/Yves-Eric)\
**Replies:** 4\
**Last updated:** [March 19, 2013, 10:57pm UTC](https://www.ruby-forum.com/t/3-2-13-breaks-localized-activescaffold-assets-compilation/227537 "2013-03-19T22:57:48Z")

</div>

Hi, I just tried upgrading to 3.2.13 a project that worked fine under 3.2.12, but that broke our assets pipeline compilation. It looks like compilation now chokes on ActiveScaffold asset ‘date\_picker\_bridge.js.erb’. …

---

## [\[ruby-trunk - Bug #7603\]\[Open\] app factorial と so ackermann が動かない](https://www.ruby-forum.com/t/ruby-trunk-bug-7603-open-app-factorial-so-ackermann/225232)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [December 25, 2012, 8:35am UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-7603-open-app-factorial-so-ackermann/225232 "2012-12-25T08:35:36Z")

</div>

Issue #7603 has been reported by authorNari (Narihiro N.). Bug #7603: app\_factorial と so\_ackermann が動かない Author: authorNari (Narihiro N.) Status: Open Priority: Normal Assignee: ko1 (Koichi Sasada) Category: core …

---

## [Memcached\_gzip\_flag](https://www.ruby-forum.com/t/memcached-gzip-flag/225066)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [December 10, 2012, 6:15pm UTC](https://www.ruby-forum.com/t/memcached-gzip-flag/225066 "2012-12-10T18:15:02Z")

</div>

I’m running nginx 1.3.9 with memcached\_pass and I have set memcached\_gzip\_flag in an attempt to serve gzipped content directly from memcached (mainly to save memory on my memcached processes, which get pretty large).…

---

## [How to join the return of array](https://www.ruby-forum.com/t/how-to-join-the-return-of-array/223700)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 14, 2012, 11:19pm UTC](https://www.ruby-forum.com/t/how-to-join-the-return-of-array/223700 "2012-10-14T23:19:40Z")

</div>

I know joining arrays and strings but this issue is very specific to an api I am working on : All I want is all hq.close value in an array. EG: \[ {‘GOOG’ =\> \[744.75,751.48,744.56,744.09,757.84\]}, {‘MSFT’ =\> {value1,…

---

## [Changing adapters in ActiveRecord does not change the generated sql](https://www.ruby-forum.com/t/changing-adapters-in-activerecord-does-not-change-the-generated-sql/211786)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [September 24, 2011, 5:25pm UTC](https://www.ruby-forum.com/t/changing-adapters-in-activerecord-does-not-change-the-generated-sql/211786 "2011-09-24T17:25:43Z")

</div>

If I establish a new connection with a new adapter (ie. switch from mysql to postgresl) the generated sql is still mysql specific. I tried all sorts of reset methods on AR::Base but to no avail. There must be somet…

---

## [Cleaning up older rails installs on Mac OS X Snow Leapord](https://www.ruby-forum.com/t/cleaning-up-older-rails-installs-on-mac-os-x-snow-leapord/206122)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [April 22, 2011, 11:13pm UTC](https://www.ruby-forum.com/t/cleaning-up-older-rails-installs-on-mac-os-x-snow-leapord/206122 "2011-04-22T23:13:40Z")

</div>

I am currently wanting to cleanup my gems so that i end up with Rails 2.3.11 and Rails 3.0.x. While working on this I notice I cannot uninstall some Rails versions from command line. I ran the following and wonder if …

---

## [Problem with 3.3.0 howto-write-a-block](https://www.ruby-forum.com/t/problem-with-3-3-0-howto-write-a-block/204898)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 25, 2011, 9:12am UTC](https://www.ruby-forum.com/t/problem-with-3-3-0-howto-write-a-block/204898 "2011-03-25T09:12:54Z")

</div>

Hi all, I am new to gnuradio and studying the “How to write a block” article written by Eric B. in 2004. However, I am using the latest version 3.3.0 of the source code of howto-write-a-block and find differences in …

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

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