# Top

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

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

---

## [Enum#select with max number of items](https://www.ruby-forum.com/t/enum-select-with-max-number-of-items/225713)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [January 25, 2013, 1:26am UTC](https://www.ruby-forum.com/t/enum-select-with-max-number-of-items/225713 "2013-01-25T01:26:49Z")

</div>

My premise is that i have a large array that i’d like to iterate with select, but I want up to a maximum (n) number of returns. Something like Enum#select\_first\_n\_matches. yes i could do my\_arr.select{ blocky }.first…

---

## [I want help](https://www.ruby-forum.com/t/i-want-help/226500)

<div class="topic-metadata">

**Author:** [@janke](https://www.ruby-forum.com/u/janke)\
**Replies:** 4\
**Last updated:** [December 14, 2012, 10:58pm UTC](https://www.ruby-forum.com/t/i-want-help/226500 "2012-12-14T22:58:56Z")

</div>

Hello all, What is the best way to block un-expected submissions? For example, I have this puzzle: ((aaa=(\\d{1,8}.)+(\\d{1,8}))&(bbb=\\w{10,30})&(ccc=\\d{1,10})) aaa is uuid, bbb is alphanumric, ccc is just numeric. I …

---

## [Richiamare metodi senza una vista successiva](https://www.ruby-forum.com/t/richiamare-metodi-senza-una-vista-successiva/215341)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [December 31, 2011, 3:54pm UTC](https://www.ruby-forum.com/t/richiamare-metodi-senza-una-vista-successiva/215341 "2011-12-31T15:54:52Z")

</div>

Salve ragazzi… sempre io… vorrei richiamare metodi senza una vista successiva… mi spiego meglio… ho un oggetto che ha tra le sue variabili di istanza un altro oggetto ma non posso usare nested… diciamo che io ho un…

---

## [My app does not need to talk to any database](https://www.ruby-forum.com/t/my-app-does-not-need-to-talk-to-any-database/215109)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [December 22, 2011, 6:34pm UTC](https://www.ruby-forum.com/t/my-app-does-not-need-to-talk-to-any-database/215109 "2011-12-22T18:34:56Z")

</div>

My Rails 3.1 app doesn’t need to talk to any database. Nonetheless, Rails is attempting to connect to a database and failing. How do I prevent my app from connecting? Ralph S.

---

## [Warble executable needs ruby?](https://www.ruby-forum.com/t/warble-executable-needs-ruby/207590)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [May 29, 2011, 12:59am UTC](https://www.ruby-forum.com/t/warble-executable-needs-ruby/207590 "2011-05-29T00:59:34Z")

</div>

At the top of warble executables I see: #!/usr/bin/env ruby It is executed under ruby and not jruby?

---

## [Tool per redazione documentazione](https://www.ruby-forum.com/t/tool-per-redazione-documentazione/207159)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [May 20, 2011, 5:28pm UTC](https://www.ruby-forum.com/t/tool-per-redazione-documentazione/207159 "2011-05-20T17:28:02Z")

</div>

Ciao, qualcuno utilizza/conosce tools per scrivere documentazione in una applicazione Rails? Esistono utility per ricavare diagrammi entità relazioni per il database?

---

## [Weird routing problem after generating controller](https://www.ruby-forum.com/t/weird-routing-problem-after-generating-controller/204519)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 15, 2011, 4:38pm UTC](https://www.ruby-forum.com/t/weird-routing-problem-after-generating-controller/204519 "2011-03-15T16:38:59Z")

</div>

Hi, I have bumped into a weird case that almost seems like a bug or… a total newbie mistake. After generating a controller with rails g controller store index I expected to get a page when accessing http://site:3000…

---

## [Technologies needed to learn to be a good ror developer](https://www.ruby-forum.com/t/technologies-needed-to-learn-to-be-a-good-ror-developer/199459)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 4\
**Last updated:** [November 28, 2010, 3:41am UTC](https://www.ruby-forum.com/t/technologies-needed-to-learn-to-be-a-good-ror-developer/199459 "2010-11-28T03:41:37Z")

</div>

Hi everybody… I am venkey here. very interested to learn ruby on rails.Though i have not had any experience with the web development, i want to learn ror as quickly as i can.I installed ror successfully.i am just st…

---

## [RJS element is null, Prototype Error?](https://www.ruby-forum.com/t/rjs-element-is-null-prototype-error/196375)

<div class="topic-metadata">

**Author:** [@coldie](https://www.ruby-forum.com/u/coldie)\
**Replies:** 4\
**Last updated:** [October 12, 2010, 2:29pm UTC](https://www.ruby-forum.com/t/rjs-element-is-null-prototype-error/196375 "2010-10-12T14:29:28Z")

</div>

Hi there, if got some problems getting the Ajax.Request to work with rails. sending the request via onclick works but the interpretaition fails if I execute: render :update do |page| page.replace ‘test’, :text =\> ‘i…

---

## [\[ANN\] "Using JRuby" book in beta now!](https://www.ruby-forum.com/t/ann-using-jruby-book-in-beta-now/188241)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 4\
**Last updated:** [September 29, 2010, 8:38pm UTC](https://www.ruby-forum.com/t/ann-using-jruby-book-in-beta-now/188241 "2010-09-29T20:38:24Z")

</div>

I’m incredibly excited to announce that the new JRuby book, “Using JRuby”, is available in beta form from Pragmatic Programmers! After years of hacking and writing, we’ve managed to finally get an official JRuby boo…

---

## [\[bug:1.8\] ossl\_ssl\_session.c:110: warning: implicit declaration of function 'TIMET2NUM'](https://www.ruby-forum.com/t/bug-1-8-ossl-ssl-session-c-warning-implicit-declaration-of-function-timet2num/184711)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 4\
**Last updated:** [August 18, 2010, 9:30am UTC](https://www.ruby-forum.com/t/bug-1-8-ossl-ssl-session-c-warning-implicit-declaration-of-function-timet2num/184711 "2010-08-18T09:30:52Z")

</div>

Ruby 1.8 e$B$G!"0J2\<$N7Y9p$,A}$($F$$$^$9!#e(B gcc -I. -I…/… -I…/…/. -I…/…/./ext/openssl -DRUBY\_EXTCONF\_H="extconf.h" -D\_FILE\_OFFSET\_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses -Wno-long-long -o ossl\_ssl\_session.o -…

---

## [\[Plugin dev.\] Hook into ActionController::Base properly](https://www.ruby-forum.com/t/plugin-dev-hook-into-actioncontroller-base-properly/170670)

<div class="topic-metadata">

**Author:** [@metafoo](https://www.ruby-forum.com/u/metafoo)\
**Replies:** 4\
**Last updated:** [June 22, 2009, 11:26am UTC](https://www.ruby-forum.com/t/plugin-dev-hook-into-actioncontroller-base-properly/170670 "2009-06-22T11:26:44Z")

</div>

Hi all, currently I’m developing a plugin wich shoud hook into ActionController. To do that, I’m using ActionController::Base.send(:include, …) but when I want to call the according methods from within a controller, I …

---

## [jQuery UI with Rails](https://www.ruby-forum.com/t/jquery-ui-with-rails/167603)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 4\
**Last updated:** [May 10, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/jquery-ui-with-rails/167603 "2009-05-10T15:31:06Z")

</div>

This has to do more with Rails than jQuery so I am posting it here. I am using jQuery UI widgets in my application. One of the CSS file is called ui.theme.css which has references to background-image as shown below: …

---

## [ClÃ© Google Maps](https://www.ruby-forum.com/t/cla-google-maps/160557)

<div class="topic-metadata">

**Author:** [@pierreva](https://www.ruby-forum.com/u/pierreva)\
**Replies:** 4\
**Last updated:** [February 18, 2009, 11:57am UTC](https://www.ruby-forum.com/t/cla-google-maps/160557 "2009-02-18T11:57:53Z")

</div>

Je suis en train de deployer sur alwaysdata une application simple utilsant le plugin Geokit. Mon domaine est blog.vaudrey.info J’utilse le serveur de dÃ©veloppement de alwaysdata http://ssh.alwaysdata.com:10810/poil…

---

## [Sqlite3/activer record permissions problem (no ror)](https://www.ruby-forum.com/t/sqlite3-activer-record-permissions-problem-no-ror/159594)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 4\
**Last updated:** [February 8, 2009, 8:44am UTC](https://www.ruby-forum.com/t/sqlite3-activer-record-permissions-problem-no-ror/159594 "2009-02-08T08:44:21Z")

</div>

I’m using Ruby and ActiveRecord in a web environment (no ror). The database is sqlite3. sqlite3-ruby is installed. I can add records to the database from Ruby scripts using ActiveRecord just fine provided that I am …

---

## [Collection ordinata di un'associazione](https://www.ruby-forum.com/t/collection-ordinata-di-unassociazione/159224)

<div class="topic-metadata">

**Author:** [@menestra](https://www.ruby-forum.com/u/menestra)\
**Replies:** 4\
**Last updated:** [February 2, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/collection-ordinata-di-unassociazione/159224 "2009-02-02T17:07:31Z")

</div>

Ciao ragazzi, volevo sapere se c’Ã¨ un modo rapido e veloce per riprendere la collection di un’associazione giÃ ordinata in base ad un dato specifico. Mi spiego meglio illustrando un esempio: io ho una rubrica dove …

---

## [How to create a change password web form and send email noti](https://www.ruby-forum.com/t/how-to-create-a-change-password-web-form-and-send-email-noti/145800)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 4\
**Last updated:** [August 18, 2008, 5:19am UTC](https://www.ruby-forum.com/t/how-to-create-a-change-password-web-form-and-send-email-noti/145800 "2008-08-18T05:19:03Z")

</div>

Hi all I am looking for a web page or application that will allow an user to change his/her database password. I am thinking about a web form where end users enter the current password and the new password, hit submit …

---

## [Will\_paginate not working](https://www.ruby-forum.com/t/will-paginate-not-working/146093)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [August 17, 2008, 8:40pm UTC](https://www.ruby-forum.com/t/will-paginate-not-working/146093 "2008-08-17T20:40:09Z")

</div>

When I use will\_paginate I get pure code in the layer I try to update starting with “try {”. Any ideas what could be wrong without posting any code? What is the normal error when this happens, if any?

---

## [Conditional "link\_to" helper function - AYUDAME POR FAVOR](https://www.ruby-forum.com/t/conditional-link-to-helper-function-ayudame-por-favor/142511)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 4\
**Last updated:** [July 8, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/conditional-link-to-helper-function-ayudame-por-favor/142511 "2008-07-08T20:12:21Z")

</div>

Hello, I need to write a function that will return a link only if the current user is the owner. Here is my code… application\_helper.rb def link\_to\_if\_owned(owner\_id, anchor\_text, where\_to\_go) if current\_user.id =…

---

## [Cannot generate a model?](https://www.ruby-forum.com/t/cannot-generate-a-model/112581)

<div class="topic-metadata">

**Author:** [@krystianf](https://www.ruby-forum.com/u/krystianf)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/cannot-generate-a-model/112581 "2007-09-25T23:04:50Z")

</div>

So I have installed Instant Rails on my computer, and I’ve been following some RoR tutorials from lynda.com. I created a new app called music\_library, and then when trying to create a model, I get something weird, ty…

---

## [Page attributes extensions problem with installation](https://www.ruby-forum.com/t/page-attributes-extensions-problem-with-installation/103795)

<div class="topic-metadata">

**Author:** [@ar2ras](https://www.ruby-forum.com/u/ar2ras)\
**Replies:** 4\
**Last updated:** [May 25, 2007, 4:08am UTC](https://www.ruby-forum.com/t/page-attributes-extensions-problem-with-installation/103795 "2007-05-25T04:08:52Z")

</div>

I’ve downloaded from http://dev.eyebeam.org/projects/radiant-partatts/wiki/radiant-partatts page\_attributes extension. I received two folders “extensions” and “radiant”. In “radiant” folder i found page\_attributes ext…

---

## [Problems with UTF-8 and AJAX](https://www.ruby-forum.com/t/problems-with-utf-8-and-ajax/103059)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 4\
**Last updated:** [May 1, 2007, 11:55am UTC](https://www.ruby-forum.com/t/problems-with-utf-8-and-ajax/103059 "2007-05-01T11:55:45Z")

</div>

Hey :slight\_smile: I have an AJAX tree to manage pages in a CMS-like manner. The leaves can be clicked to expand an editor which allows the backend admin to alter settings, set page titles, add content, etc. The site’…

---

## [Porting ruby-GNOME2 to Ruby-Hildon for MAEMO](https://www.ruby-forum.com/t/porting-ruby-gnome2-to-ruby-hildon-for-maemo/88964)

<div class="topic-metadata">

**Author:** [@WestonS\_David](https://www.ruby-forum.com/u/WestonS_David)\
**Replies:** 4\
**Last updated:** [March 27, 2007, 11:50am UTC](https://www.ruby-forum.com/t/porting-ruby-gnome2-to-ruby-hildon-for-maemo/88964 "2007-03-27T11:50:55Z")

</div>

Hi, Has anyone done any work porting ruby-GNOME2 bindings to the hildon GTK bindings for maemo (the UI for Debian based Nokia 770/800 tablets)? Thanks, David Weston FGM, Inc

---

## [Popup Window Problem AJAX](https://www.ruby-forum.com/t/popup-window-problem-ajax/102624)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 4\
**Last updated:** [December 16, 2006, 9:22pm UTC](https://www.ruby-forum.com/t/popup-window-problem-ajax/102624 "2006-12-16T21:22:13Z")

</div>

When I try to use Ajax in a window openened by ‘window.open(’’);’ it doesn’t work. There is no exceptions raised as far as I can see (debugging with FireBug). However, if I refresh the window once it has popped up it …

---

## [Optimisation requete sql](https://www.ruby-forum.com/t/optimisation-requete-sql/60132)

<div class="topic-metadata">

**Author:** [@Olivier\_AUDRY](https://www.ruby-forum.com/u/Olivier_AUDRY)\
**Replies:** 4\
**Last updated:** [May 11, 2006, 11:10am UTC](https://www.ruby-forum.com/t/optimisation-requete-sql/60132 "2006-05-11T11:10:00Z")

</div>

Bonjour, j’ai dans mon code : Astreinte.update\_all “validated = 1”, :conditions =\> \[“astreintes.user\_id = ?”, @session\[:user\].id ) chose qui me semble Ãªtre une requÃªte correcte. Cependant dans les logs de l’applic…

---

## [JavaScriptGenerator Dead End](https://www.ruby-forum.com/t/javascriptgenerator-dead-end/58273)

<div class="topic-metadata">

**Author:** [@evronm](https://www.ruby-forum.com/u/evronm)\
**Replies:** 4\
**Last updated:** [April 20, 2006, 8:26pm UTC](https://www.ruby-forum.com/t/javascriptgenerator-dead-end/58273 "2006-04-20T20:26:16Z")

</div>

Hi All, I posted earlier about a problem I was having with the various remote view methods escaping all the javascript in my callbacks. I was quickly informed that that’s just what they do, and offered some workaroun…

---

## [Multi-db typo cache problems](https://www.ruby-forum.com/t/multi-db-typo-cache-problems/54942)

<div class="topic-metadata">

**Author:** [@Csaba\_H](https://www.ruby-forum.com/u/Csaba_H)\
**Replies:** 4\
**Last updated:** [March 15, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/multi-db-typo-cache-problems/54942 "2006-03-15T15:13:28Z")

</div>

Hi! I’m using typo on Lighttpd + FastCGI (recent snapshot, namely r762). It serves more than one db, using the trick described at http://sg.validcode.at/articles/2005/12/04/how-to-host-multiple-blogs-with-on-typo-inst…

---

## [Equivalent of const modifier](https://www.ruby-forum.com/t/equivalent-of-const-modifier/66237)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [February 13, 2006, 9:38pm UTC](https://www.ruby-forum.com/t/equivalent-of-const-modifier/66237 "2006-02-13T21:38:41Z")

</div>

Very often, I’d like to ensure (and document) that a method will not change any of its parameters: This looks at, but doesn’t modify, a and b def mymethod(a, b) end In C++ I can do this with the const modifier. Is t…

---

## [Invalid byte sequence in UTF-8 (ArgumentError) with ocra gem on windows 10 machine](https://www.ruby-forum.com/t/invalid-byte-sequence-in-utf-8-argumenterror-with-ocra-gem-on-windows-10-machine/263096)

<div class="topic-metadata">

**Author:** [@flo](https://www.ruby-forum.com/u/flo)\
**Replies:** 0\
**Last updated:** [July 25, 2022, 3:23pm UTC](https://www.ruby-forum.com/t/invalid-byte-sequence-in-utf-8-argumenterror-with-ocra-gem-on-windows-10-machine/263096 "2022-07-25T15:23:28Z")

</div>

Hi, I just downloaded ruby devkit 3.1.2-1 and i created a sample hello word script like that: #!/usr/bin/env ruby puts "Hello world" Then in installed the ocra gem because i want to convert my ruby script to an execu…

---

## [Newbie prompt help](https://www.ruby-forum.com/t/newbie-prompt-help/225639)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [January 21, 2013, 7:37pm UTC](https://www.ruby-forum.com/t/newbie-prompt-help/225639 "2013-01-21T19:37:28Z")

</div>

Hello all, I am new to programing, and especially new to Ruby. I just downloaded it on my MAC and am going through my Begining Ruby" tutorial. I’ve gotten the correct response for “ruby -v”, but when I type “irb” in…

---

## [Control of noutput\_items by the user](https://www.ruby-forum.com/t/control-of-noutput-items-by-the-user/224905)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [December 4, 2012, 7:05pm UTC](https://www.ruby-forum.com/t/control-of-noutput-items-by-the-user/224905 "2012-12-04T19:05:08Z")

</div>

Hi All, As usual, I have a simple question for you guys. I have a custom block for which I specify set\_output\_multiple(N) in the constructor. Then, for each call to its work(), I print the parameter noutput\_items. As …

---

## [Using DLLs with my Ruby app](https://www.ruby-forum.com/t/using-dlls-with-my-ruby-app/172087)

<div class="topic-metadata">

**Author:** [@grish](https://www.ruby-forum.com/u/grish)\
**Replies:** 6\
**Last updated:** [December 13, 2011, 7:54pm UTC](https://www.ruby-forum.com/t/using-dlls-with-my-ruby-app/172087 "2011-12-13T19:54:17Z")

</div>

Hi, A new ruby user here. I want to try using ruby to use an API for accessing and retrieving data from a server. After doing some research I learned about ruby/dl and tried the following in irb: ENV\[‘PATH’\] += “;C\\p…

---

## [Must be my bug, but it looks like Ruby's could it be?](https://www.ruby-forum.com/t/must-be-my-bug-but-it-looks-like-rubys-could-it-be/206410)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [May 9, 2011, 9:54pm UTC](https://www.ruby-forum.com/t/must-be-my-bug-but-it-looks-like-rubys-could-it-be/206410 "2011-05-09T21:54:54Z")

</div>

I know my Subject line looks like heresy in this newsgroup, but I can’t figure out how I’m screwing up in this bug. I posted the program at http://www.pastie.org/1849430 It reads in a little control data, which is dis…

---

## [Using Shoes as GUI](https://www.ruby-forum.com/t/using-shoes-as-gui/183867)

<div class="topic-metadata">

**Author:** [@moe](https://www.ruby-forum.com/u/moe)\
**Replies:** 6\
**Last updated:** [February 22, 2010, 6:55pm UTC](https://www.ruby-forum.com/t/using-shoes-as-gui/183867 "2010-02-22T18:55:54Z")

</div>

HI guys, am using shoes as my GUI for a project am working on, am basically trying to create a shogi game board, but am getting a $end expecting Kend compiling error? and its killing me am not really great with ruby y…

---

## [Strange production vs. development behavior difference](https://www.ruby-forum.com/t/strange-production-vs-development-behavior-difference/183723)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 6\
**Last updated:** [February 19, 2010, 5:39pm UTC](https://www.ruby-forum.com/t/strange-production-vs-development-behavior-difference/183723 "2010-02-19T17:39:52Z")

</div>

I am running into something that has me stunned. I have a wizard like application that works perfectly well in development but does not in production. The code has nothing environment specific going on and the same DB…

---

## [Subclassing ActiveRecord::Base](https://www.ruby-forum.com/t/subclassing-activerecord-base/182338)

<div class="topic-metadata">

**Author:** [@paul-au](https://www.ruby-forum.com/u/paul-au)\
**Replies:** 6\
**Last updated:** [January 31, 2010, 7:39pm UTC](https://www.ruby-forum.com/t/subclassing-activerecord-base/182338 "2010-01-31T19:39:44Z")

</div>

First of all, sorry for the crossposting, but I put this into the Ruby Forum first of all, but was pointed to this as a more appropriate location. I’m using ActiveRecord and ActiveSupport in a non-rails environment t…

---

## [Puts return](https://www.ruby-forum.com/t/puts-return/180627)

<div class="topic-metadata">

**Author:** [@edresende](https://www.ruby-forum.com/u/edresende)\
**Replies:** 6\
**Last updated:** [December 30, 2009, 7:45pm UTC](https://www.ruby-forum.com/t/puts-return/180627 "2009-12-30T19:45:28Z")

</div>

Hello guys, i’m new in ruby and i’m trying to create an Address Book. (I’m from Brasil) When i put the book to print “puts lista” #lista is the Address Book the method to\_s of the AddresBook class is like this: "def…

---

## [How to call model that belongs to that controller](https://www.ruby-forum.com/t/how-to-call-model-that-belongs-to-that-controller/172355)

<div class="topic-metadata">

**Author:** [@thriving](https://www.ruby-forum.com/u/thriving)\
**Replies:** 6\
**Last updated:** [July 21, 2009, 12:42pm UTC](https://www.ruby-forum.com/t/how-to-call-model-that-belongs-to-that-controller/172355 "2009-07-21T12:42:38Z")

</div>

In controller ,there is something like self. to call the controller itsself if i want to call model that belong to that controller in controller, How could i do. Thank, Golf

---

## [Hash assignment \[:x\] vs \['x'\]](https://www.ruby-forum.com/t/hash-assignment-x-vs-x/168779)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 6\
**Last updated:** [May 25, 2009, 8:13pm UTC](https://www.ruby-forum.com/t/hash-assignment-x-vs-x/168779 "2009-05-25T20:13:55Z")

</div>

Being totally new to ruby, I just noticed that using bob\[‘phone’\] which coming from perl is a style I’m used to, results in a separate key than bob\[:phone\] That seems slightly weird, I had assumed the :form is just …

---

## [Pass option value to InstanceMethods define\_method](https://www.ruby-forum.com/t/pass-option-value-to-instancemethods-define-method/150368)

<div class="topic-metadata">

**Author:** [@vidmantas](https://www.ruby-forum.com/u/vidmantas)\
**Replies:** 6\
**Last updated:** [October 8, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/pass-option-value-to-instancemethods-define-method/150368 "2008-10-08T15:03:38Z")

</div>

Hello, I’m trying to develop a ActiveRecord plugin but run into the following problem: I pass arguments to write\_inheritable\_attribute :some\_field, ‘value’ class\_inheritable\_reader :some\_field in ClassMethods mod…

---

## [Can I put all my Ruby constants in environment.rb?](https://www.ruby-forum.com/t/can-i-put-all-my-ruby-constants-in-environment-rb/142321)

<div class="topic-metadata">

**Author:** [@Save\_The\_Vinyls](https://www.ruby-forum.com/u/Save_The_Vinyls)\
**Replies:** 6\
**Last updated:** [July 7, 2008, 1:23pm UTC](https://www.ruby-forum.com/t/can-i-put-all-my-ruby-constants-in-environment-rb/142321 "2008-07-07T13:23:34Z")

</div>

Hello, I got a lot of Ruby constants spread over a couple of models. Is it possible to throw them all into environment.rb instead? I’d really enjoy having things in one place. Thanks.

---

## [RMagick installation on 64bit ubuntu 7.04](https://www.ruby-forum.com/t/rmagick-installation-on-64bit-ubuntu-7-04/141282)

<div class="topic-metadata">

**Author:** [@ishan](https://www.ruby-forum.com/u/ishan)\
**Replies:** 6\
**Last updated:** [June 24, 2008, 12:37pm UTC](https://www.ruby-forum.com/t/rmagick-installation-on-64bit-ubuntu-7-04/141282 "2008-06-24T12:37:16Z")

</div>

Dear All, Thanks in advance ! i have ubuntu 7.04 64 bit installed… i want to install RMagick 2.5 and i have done that installation but it is working ? here are some outputs root@bpocanada-desktop:/home/bpocanada/D…

---

## [How to invoke a rake file](https://www.ruby-forum.com/t/how-to-invoke-a-rake-file/132832)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 6\
**Last updated:** [March 27, 2008, 11:09am UTC](https://www.ruby-forum.com/t/how-to-invoke-a-rake-file/132832 "2008-03-27T11:09:12Z")

</div>

How is this rakefile invoked? C:\\code\> C:\\code\>rake (in C:/code) rake aborted! Don’t know how to build task ‘default’ (See full trace by running task with --trace) C:\\code\> C:\\code\>type rakefile.rb alias :origin…

---

## [Rubybrain.com](https://www.ruby-forum.com/t/rubybrain-com/132778)

<div class="topic-metadata">

**Author:** [@zoopzoop](https://www.ruby-forum.com/u/zoopzoop)\
**Replies:** 6\
**Last updated:** [March 25, 2008, 1:11am UTC](https://www.ruby-forum.com/t/rubybrain-com/132778 "2008-03-25T01:11:25Z")

</div>

I am really confused by rubybrain.com. I like the interface much more than the ruby-doc.org documentation, Ajax makes it much more responsive. But somehow I could never find what I was searching for and ended up look…

---

## [Pattern for "include"ing class methods?](https://www.ruby-forum.com/t/pattern-for-include-ing-class-methods/128247)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 6\
**Last updated:** [February 6, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/pattern-for-include-ing-class-methods/128247 "2008-02-06T19:13:25Z")

</div>

I’m doing some meta-programming where I want to add the same instance and class methods to many other existing classes, which I don’t wish to re-superclass. include works nicely for including instance methods, but t…

---

## [More elegant way to condense a date/time string?](https://www.ruby-forum.com/t/more-elegant-way-to-condense-a-date-time-string/117968)

<div class="topic-metadata">

**Author:** [@jfry](https://www.ruby-forum.com/u/jfry)\
**Replies:** 6\
**Last updated:** [October 23, 2007, 11:40am UTC](https://www.ruby-forum.com/t/more-elegant-way-to-condense-a-date-time-string/117968 "2007-10-23T11:40:26Z")

</div>

Hey all, I’m a relative ruby beginner, looking to create short-ish date/time strings. I came up with: Time.now.xmlschema.delete(’:-’).chop.chop.chop.chop #yields something like 20071022T123910 Which works for me…bu…

---

## [Page Versioning](https://www.ruby-forum.com/t/page-versioning/114659)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 6\
**Last updated:** [October 1, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/page-versioning/114659 "2007-10-01T22:23:16Z")

</div>

Hi Everyone, As I understand it, Radiant doesn’t seem to support page versions and comments for the page versionsdirectly… is there any extension that does? It seems that it should be easy enough to have support for …

---

## [Off Topic: VMware Vs Parallels for Deployment](https://www.ruby-forum.com/t/off-topic-vmware-vs-parallels-for-deployment/107455)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [June 22, 2007, 12:11am UTC](https://www.ruby-forum.com/t/off-topic-vmware-vs-parallels-for-deployment/107455 "2007-06-22T00:11:57Z")

</div>

I am planning to buy either VMware or Parallels so that I can install Ubuntu and use that instance as a deployment environment. I am not sure which one is better for this purpose. Please share your experience on this …

---

## [String#index/include limitation in number of characters](https://www.ruby-forum.com/t/string-index-include-limitation-in-number-of-characters/104520)

<div class="topic-metadata">

**Author:** [@stash](https://www.ruby-forum.com/u/stash)\
**Replies:** 6\
**Last updated:** [May 18, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/string-index-include-limitation-in-number-of-characters/104520 "2007-05-18T23:42:28Z")

</div>

Do you understand why the last include gives false ?? It seems that the limit is 24 characters, is it a bug ? irb(main):001:0\> s=“asdfasdfasdfasdfasdfppppppppppppppppppppppppasdfasdf” =\> “asdfasdfasdfasdfasdfpppppppp…

---

## [Best way to extract common methods](https://www.ruby-forum.com/t/best-way-to-extract-common-methods/85266)

<div class="topic-metadata">

**Author:** [@wonko](https://www.ruby-forum.com/u/wonko)\
**Replies:** 6\
**Last updated:** [February 12, 2007, 6:01am UTC](https://www.ruby-forum.com/t/best-way-to-extract-common-methods/85266 "2007-02-12T06:01:19Z")

</div>

Hello, I have a group of methods that I use across numerous controllers. I want to put the methods in their own file and call them in from the controllers. My (limited) understanding is that modules are the solutio…

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

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