# Top

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

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

---

## [Ereditare un controller](https://www.ruby-forum.com/t/ereditare-un-controller/223579)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [October 10, 2012, 3:30pm UTC](https://www.ruby-forum.com/t/ereditare-un-controller/223579 "2012-10-10T15:30:17Z")

</div>

Nella mia app: class RoomsController \< Bigbluebutton::RoomsController Il controller Bigbluebutton::RoomsController ha delle callback, before\_filter, ecc. Vengono ereditate anche le callbacks o le devo riinserire nel…

---

## [How to "source" a file?](https://www.ruby-forum.com/t/how-to-source-a-file/173377)

<div class="topic-metadata">

**Author:** [@kfmfe04](https://www.ruby-forum.com/u/kfmfe04)\
**Replies:** 6\
**Last updated:** [August 10, 2009, 7:01pm UTC](https://www.ruby-forum.com/t/how-to-source-a-file/173377 "2009-08-10T19:01:26Z")

</div>

I have a bash file ~/.myenv that contains environmental variables like: export EDITOR=vi export FOO=bar … How do I source this file from within a ruby script that starts like? #!/usr/bin/ruby I could source the fil…

---

## [Test d'acceptante avec parametres](https://www.ruby-forum.com/t/test-dacceptante-avec-parametres/163437)

<div class="topic-metadata">

**Author:** [@lune9](https://www.ruby-forum.com/u/lune9)\
**Replies:** 6\
**Last updated:** [March 24, 2009, 5:24pm UTC](https://www.ruby-forum.com/t/test-dacceptante-avec-parametres/163437 "2009-03-24T17:24:54Z")

</div>

Bonjour J’ai fait un fichier de test (avec selenium) pour tester un produit de mon application. Etant donnÃ© que mon fichier de test est gÃ©nÃ©rique il faudrait que je lui donne en parametre l’id du produit a tester. …

---

## [Installing Plugins Offline?](https://www.ruby-forum.com/t/installing-plugins-offline/156505)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 6\
**Last updated:** [December 29, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/installing-plugins-offline/156505 "2008-12-29T23:36:14Z")

</div>

How would I go about installing rails plugins offline? I cannot connect to the web on my work computer, though I have a dedicated internet machine for downloads and such. Thanks

---

## [Celerity (formerly known as Wraptir) 0.0.1 released](https://www.ruby-forum.com/t/celerity-formerly-known-as-wraptir-0-0-1-released/137027)

<div class="topic-metadata">

**Author:** [@TSAlexander\_Lystad](https://www.ruby-forum.com/u/TSAlexander_Lystad)\
**Replies:** 6\
**Last updated:** [November 7, 2008, 10:20am UTC](https://www.ruby-forum.com/t/celerity-formerly-known-as-wraptir-0-0-1-released/137027 "2008-11-07T10:20:20Z")

</div>

Celerity is a Ruby library for easy and fast automation of web application testing. Celerity wraps HtmlUnit via JRuby and is supposed to provide the same API and functionality as Watir. http://celerity.rubyforge.org/ …

---

## [Workflow: user =\> stories/features =\> spec =\> code =\> user](https://www.ruby-forum.com/t/workflow-user-stories-features-spec-code-user/148992)

<div class="topic-metadata">

**Author:** [@DyingToLearn](https://www.ruby-forum.com/u/DyingToLearn)\
**Replies:** 6\
**Last updated:** [September 20, 2008, 1:01am UTC](https://www.ruby-forum.com/t/workflow-user-stories-features-spec-code-user/148992 "2008-09-20T01:01:12Z")

</div>

Hi, I am still trying to learn how to effectively use BDD. I would like to know if there is a typical BDD workflow or if it is really just a question of personal preference. So far I see the following steps being fai…

---

## [Mysql gem warning on ubuntu](https://www.ruby-forum.com/t/mysql-gem-warning-on-ubuntu/142148)

<div class="topic-metadata">

**Author:** [@ppjunty](https://www.ruby-forum.com/u/ppjunty)\
**Replies:** 6\
**Last updated:** [July 4, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/mysql-gem-warning-on-ubuntu/142148 "2008-07-04T18:52:52Z")

</div>

i just deployed my app on ubuntu with passenger. i installed the mysql gem as follows: $ sudo gem install mysql Select which gem to install for your platform (i486-linux) mysql 2.7.3 (mswin32) mysql 2.7.1 (mswin32) m…

---

## [Add custom rules to redcloth/textile how?](https://www.ruby-forum.com/t/add-custom-rules-to-redcloth-textile-how/85957)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 6\
**Last updated:** [February 18, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/add-custom-rules-to-redcloth-textile-how/85957 "2007-02-18T20:00:01Z")

</div>

Hi, has anybody successfully added custom inline tag rules to RedCloth/textile? Thanks! Ingo

---

## [Performance suggestions or best practices ideas?](https://www.ruby-forum.com/t/performance-suggestions-or-best-practices-ideas/59270)

<div class="topic-metadata">

**Author:** [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Replies:** 6\
**Last updated:** [May 5, 2006, 11:54pm UTC](https://www.ruby-forum.com/t/performance-suggestions-or-best-practices-ideas/59270 "2006-05-05T23:54:46Z")

</div>

Any suggestions on applications that involve alot of calcualtions on a fairly large data set? My app uses a set of raw data ~5k, applies some default/override rules on the raw data and does some calculations on the da…

---

## [\[ruby-trunk - Feature #8779\]\[Open\] Binding#yourself](https://www.ruby-forum.com/t/ruby-trunk-feature-8779-open-binding-yourself/245970)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 1, 2014, 7:25pm UTC](https://www.ruby-forum.com/t/ruby-trunk-feature-8779-open-binding-yourself/245970 "2014-07-01T19:25:05Z")

</div>

Issue #8779 has been reported by takiuchi (Genki Takiuchi). Feature #8779: Binding#yourself Author: takiuchi (Genki Takiuchi) Status: Open Priority: Normal Assignee: Category: Target version: Blockの内部のコンテクストにアク…

---

## [Buffer overflow detected while doing gem install savon in Ruby 1.8.6 on Fedora11](https://www.ruby-forum.com/t/buffer-overflow-detected-while-doing-gem-install-savon-in-ruby-1-8-6-on-fedora11/245543)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [June 11, 2013, 11:05am UTC](https://www.ruby-forum.com/t/buffer-overflow-detected-while-doing-gem-install-savon-in-ruby-1-8-6-on-fedora11/245543 "2013-06-11T11:05:58Z")

</div>

Hi, I have a Linux Fedora 11 system. I have installed ruby 1.8.6 (ruby -v), but i am not able to install savon gem for SOAP based web services calls. I get the below error: \[root@MUM-12399 savon-master\]# gem install…

---

## [Coupling vs providing dependencies in Ruby](https://www.ruby-forum.com/t/coupling-vs-providing-dependencies-in-ruby/227189)

<div class="topic-metadata">

**Author:** [@tikay](https://www.ruby-forum.com/u/tikay)\
**Replies:** 3\
**Last updated:** [March 7, 2013, 12:37am UTC](https://www.ruby-forum.com/t/coupling-vs-providing-dependencies-in-ruby/227189 "2013-03-07T00:37:35Z")

</div>

I’m java programmer diving into Ruby language (not rails stuff). Looking at ruby codebases I see a lot of code like this Coupling - mock,stub · GitHub. Take a look at the SchedulerJob definition: class SchedulerJob d…

---

## [USRP on Switch](https://www.ruby-forum.com/t/usrp-on-switch/222989)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [September 29, 2012, 10:00am UTC](https://www.ruby-forum.com/t/usrp-on-switch/222989 "2012-09-29T10:00:04Z")

</div>

Hi all i have 2 USRP N210 connected via switch i want to make cognitive network on USRP’s, for this i needmultipleUSRP’sconnection, iimplemented 2X MIMO connection but there is allot of delay on slave USRP. software …

---

## [Scriptaculous checkbox toggle](https://www.ruby-forum.com/t/scriptaculous-checkbox-toggle/114384)

<div class="topic-metadata">

**Author:** [@suttercain](https://www.ruby-forum.com/u/suttercain)\
**Replies:** 3\
**Last updated:** [May 5, 2009, 5:57pm UTC](https://www.ruby-forum.com/t/scriptaculous-checkbox-toggle/114384 "2009-05-05T17:57:19Z")

</div>

Does anyone know how to allow the check box to be used as a toggle? It works as far as sliding down/up, but I cannot get it to visually show ass checked and unchecked… Add Additional Principal, Discipline and Addresss…

---

## [Xxx.valid? still true after xxx.errors.add(...)?](https://www.ruby-forum.com/t/xxx-valid-still-true-after-xxx-errors-add/165954)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 3\
**Last updated:** [April 20, 2009, 2:10pm UTC](https://www.ruby-forum.com/t/xxx-valid-still-true-after-xxx-errors-add/165954 "2009-04-20T14:10:52Z")

</div>

Hi all I have the following code in my controller: if @comment.valid? captcha\_url = “http://captchator.com/captcha/check\_answer/#{captcha\_code}/#{@comment.captcha}” result = open(captcha\_url) unless result.read ==…

---

## [Httpclient 2.1.3-RC](https://www.ruby-forum.com/t/httpclient-2-1-3-rc/155739)

<div class="topic-metadata">

**Author:** [@NAKAMURAS\_Hiroshi](https://www.ruby-forum.com/u/NAKAMURAS_Hiroshi)\
**Replies:** 3\
**Last updated:** [January 8, 2009, 2:23pm UTC](https://www.ruby-forum.com/t/httpclient-2-1-3-rc/155739 "2009-01-08T14:23:01Z")

</div>

Hi all, I’m working on releasing httpclient/2.1.3. ‘httpclient’ gives something like the functionality of libwww-perl (LWP) in Ruby. ‘httpclient’ formerly known as ‘http-access2’. See http://dev.ctor.org/httpclient…

---

## [HELP: undefined method cattr\_accessor](https://www.ruby-forum.com/t/help-undefined-method-cattr-accessor/109618)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [July 17, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/help-undefined-method-cattr-accessor/109618 "2007-07-17T13:07:54Z")

</div>

hi to all, when i try to generate a new model, i get the following error message. D:\\InstantRails\\rails\_apps\\AR\_ODBC\>ruby script/generate model amempldept D:/Projekt/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/li…

---

## [Adobe Flash in GtkMozEmbed?](https://www.ruby-forum.com/t/adobe-flash-in-gtkmozembed/106347)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 3\
**Last updated:** [July 8, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/adobe-flash-in-gtkmozembed/106347 "2007-07-08T17:49:48Z")

</div>

Hi, is it possible to play Flash videos with GtkMozEmbed? If I use the RubyZilla sample or the ruby-gecko.rb sample, Flash videos aren’t played on YouTube, video.google etc. If I enter about:plugins in the address ba…

---

## [Following a Javascript Link Using Mechanize](https://www.ruby-forum.com/t/following-a-javascript-link-using-mechanize/107836)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 12:50am UTC](https://www.ruby-forum.com/t/following-a-javascript-link-using-mechanize/107836 "2007-06-27T00:50:46Z")

</div>

Hello, I am on a page that lists 78 items and can only show 25 per page, so are links for each page of results and a “Next \>” link. I’d like to get Mechanize to follow the Next link but the link looks like this: Next…

---

## [Mailer method missing](https://www.ruby-forum.com/t/mailer-method-missing/91335)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 3\
**Last updated:** [April 6, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/mailer-method-missing/91335 "2007-04-06T23:12:29Z")

</div>

Rails dies when I try to call a method from my Mailer. But I have defined my method. What could I have missed? Here is the irb session: p = Person.find(1) =\> Person data… SiteMailer.request\_admin\_approval§ …

---

## [ERB as a macro pre-processor?](https://www.ruby-forum.com/t/erb-as-a-macro-pre-processor/71744)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 3\
**Last updated:** [October 11, 2006, 5:54pm UTC](https://www.ruby-forum.com/t/erb-as-a-macro-pre-processor/71744 "2006-10-11T17:54:29Z")

</div>

“The Ruby Way” (pp. 43-45) shows a couple of different ways to generate methods dynamically (using eval). Looking at the examples, I began to wonder about different Ways To Do It. One possibility that occurred to me …

---

## [ActiveRecord thread-safety](https://www.ruby-forum.com/t/activerecord-thread-safety/97480)

<div class="topic-metadata">

**Author:** [@Michael\_BSSS\_rge](https://www.ruby-forum.com/u/Michael_BSSS_rge)\
**Replies:** 3\
**Last updated:** [July 7, 2006, 6:19pm UTC](https://www.ruby-forum.com/t/activerecord-thread-safety/97480 "2006-07-07T18:19:28Z")

</div>

Hi, I want to use ActiveRecord outside Rails. The application is multithreaded, so database access has to be thread-safe. I read in a few places ActiveRecord in fact should be thread-safe and I gave it a try, but my …

---

## [Rake rules question](https://www.ruby-forum.com/t/rake-rules-question/55108)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 3\
**Last updated:** [March 17, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/rake-rules-question/55108 "2006-03-17T19:06:25Z")

</div>

I am using RMagick to do multi-stage processing of some images. Can I have two different rules to process .PNG files in two different directories? rule stage\_0/.png =\> source/.png do |t| make\_0 t.source, t.name end …

---

## [Difference between rb\_define\_module\_function and rb\_define\_s](https://www.ruby-forum.com/t/difference-between-rb-define-module-function-and-rb-define-s/52760)

<div class="topic-metadata">

**Author:** [@drjflam](https://www.ruby-forum.com/u/drjflam)\
**Replies:** 3\
**Last updated:** [December 7, 2005, 7:21pm UTC](https://www.ruby-forum.com/t/difference-between-rb-define-module-function-and-rb-define-s/52760 "2005-12-07T19:21:56Z")

</div>

Is there a difference between calling rb\_define\_module\_function and rb\_define\_singleton\_method on a module? Thanks -John

---

## [What do these 2 lines of code actually do?](https://www.ruby-forum.com/t/what-do-these-2-lines-of-code-actually-do/251548)

<div class="topic-metadata">

**Author:** [@Carlito](https://www.ruby-forum.com/u/Carlito)\
**Replies:** 2\
**Last updated:** [January 3, 2019, 1:10pm UTC](https://www.ruby-forum.com/t/what-do-these-2-lines-of-code-actually-do/251548 "2019-01-03T13:10:37Z")

</div>

Hello! I don’t know Ruby but I need to understand how the input value is manipulated in the lines below. I think that the input is converted to the sum of the values of its characters but the second line is confusing; …

---

## [Rails 4, Foundation 6, Angular 1.5.0](https://www.ruby-forum.com/t/rails-4-foundation-6-angular-1-5-0/244428)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [April 9, 2016, 3:07pm UTC](https://www.ruby-forum.com/t/rails-4-foundation-6-angular-1-5-0/244428 "2016-04-09T15:07:52Z")

</div>

Hi All, I have a Rails app that’s been running in Production in my office for a few years now. (Rails 4.1 with Foundation 5). I have attempted to update it to Rails 4.2.6, with Foundation 6 and AngularJS 1.5.0 - it…

---

## [Use parameter to determine which method is called inside function](https://www.ruby-forum.com/t/use-parameter-to-determine-which-method-is-called-inside-function/243430)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [October 25, 2015, 5:03pm UTC](https://www.ruby-forum.com/t/use-parameter-to-determine-which-method-is-called-inside-function/243430 "2015-10-25T17:03:14Z")

</div>

Hi Everyone, I am very new to Ruby but have overcome quite a few problems on the road already. However, this one seems to be a tough nut to crack for me, so any help from you would be highly appreciated. OK. So here i…

---

## [Fwd: nobu:r47717 (trunk): ruby.h: deprecate plain Data](https://www.ruby-forum.com/t/fwd-nobu-r47717-trunk-ruby-h-deprecate-plain-data/232250)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 7, 2014, 4:44am UTC](https://www.ruby-forum.com/t/fwd-nobu-r47717-trunk-ruby-h-deprecate-plain-data/232250 "2014-10-07T04:44:49Z")

</div>

$B$A$g$C$H$$$-$J$j$3$l$OL5$$$s$8$cL5$$$G$7$g$&$+!#(B $B%I%-%e%a%s%H$b$J$$$7!J$“$l!”$"$k$N$+$J!K!#(B $B$"$kDxEY!“0\\9T%Q%9$r9M$($F$+$i$8$c$J$$$H!#(B $B$s$G!“0\\9T$7$F$b!”$=$s$J$K9,J!$K$J$l$J$$5$$,$9$k$N$G!”$b$&$A$g$C$H4|…

---

## [Test-unit not found by Ruby but available in gem list](https://www.ruby-forum.com/t/test-unit-not-found-by-ruby-but-available-in-gem-list/217694)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 10, 2012, 11:23pm UTC](https://www.ruby-forum.com/t/test-unit-not-found-by-ruby-but-available-in-gem-list/217694 "2012-03-10T23:23:53Z")

</div>

Hi All, When I include “gem ‘test-unit’” in my ruby file, it gives the following error. However my “gem list” does show test-unit. I am not sure what is missing when running the file as “ruby ci\_reporter.rb”. The actu…

---

## [What does this snippet mean?](https://www.ruby-forum.com/t/what-does-this-snippet-mean/212831)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 16, 2011, 8:51pm UTC](https://www.ruby-forum.com/t/what-does-this-snippet-mean/212831 "2011-10-16T20:51:11Z")

</div>

Hello, Here’s a code snippet. What it actually does? def rewind(f) f.seek(0, IO::SEEK\_SET) end It’s from here : Learn Ruby the Hard Way Any help would be appreciated. Peace be upon you – Junayeed Ahnaf N. Twitte…

---

## [Find across multiple models](https://www.ruby-forum.com/t/find-across-multiple-models/206476)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 2, 2011, 7:44pm UTC](https://www.ruby-forum.com/t/find-across-multiple-models/206476 "2011-05-02T19:44:27Z")

</div>

I have a search form that provides a param to a find condition. I have a projects model with multiple joins to other models: has\_many :accomplishments has\_many :cooperatorships has\_many :sponsorships has\_many :coope…

---

## [Encoding::InvalidByteSequenceError: character U+7453 can't be encoded in IBM437](https://www.ruby-forum.com/t/encoding-character-u-7453-cant-be-encoded-in-ibm437/205583)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 10, 2011, 7:50am UTC](https://www.ruby-forum.com/t/encoding-character-u-7453-cant-be-encoded-in-ibm437/205583 "2011-04-10T07:50:08Z")

</div>

Hello, I’m getting the following error while running one of the examples (Enumerate Top Level Windows https://github.com/ffi/ffi/wiki/Windows-Examples) from the FFI wiki: Encoding::InvalidByteSequenceError: charact…

---

## [Is it possible to read GError raised by GStreamer?](https://www.ruby-forum.com/t/is-it-possible-to-read-gerror-raised-by-gstreamer/202266)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 21, 2011, 10:46pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-read-gerror-raised-by-gstreamer/202266 "2011-02-21T22:46:14Z")

</div>

Hi, I use ruby-gnome2 bindings to operate on GStreamer. When my pipeline raises an error, I catch it on the bus. The message that I receive is associated with so-called “structure”, which actually contain two keys, f…

---

## [How about moving part/lib/\* to nitro/lib or raw/lib?](https://www.ruby-forum.com/t/how-about-moving-part-lib-to-nitro-lib-or-raw-lib/122379)

<div class="topic-metadata">

**Author:** [@Arne\_B](https://www.ruby-forum.com/u/Arne_B)\
**Replies:** 2\
**Last updated:** [December 7, 2007, 9:23am UTC](https://www.ruby-forum.com/t/how-about-moving-part-lib-to-nitro-lib-or-raw-lib/122379 "2007-12-07T09:23:55Z")

</div>

Unless the parts will be a seperate project/package this seems reasonable. That way a require “part/admin” always works where a require “nitro” works. (ab) – Arne B. http://www.arnebrasseur.net http://www.zhongwik…

---

## [Simple html markup with Gtk::TextView](https://www.ruby-forum.com/t/simple-html-markup-with-gtk-textview/64164)

<div class="topic-metadata">

**Author:** [@Mathieu\_B](https://www.ruby-forum.com/u/Mathieu_B)\
**Replies:** 2\
**Last updated:** [June 26, 2006, 11:19pm UTC](https://www.ruby-forum.com/t/simple-html-markup-with-gtk-textview/64164 "2006-06-26T23:19:39Z")

</div>

Hi everyone, I would like to know if, in the same way than a Gtk::Label \[1\], there exists a simple way to use html markup with Gtk::TextView. I’ve been browsing the api reference and didn’t find any simple method. A…

---

## [Namespace conflicts](https://www.ruby-forum.com/t/namespace-conflicts/60480)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 2\
**Last updated:** [May 14, 2006, 6:22pm UTC](https://www.ruby-forum.com/t/namespace-conflicts/60480 "2006-05-14T18:22:18Z")

</div>

Good morning, everyone. I’m curious as to how I can resolve some namespace conflicts. I’m writing a Rails app (although this problem should be agnostic), and wrote a Payment model (which is a class for those that d…

---

## [Getoptlong, getopt, parseopt, which one to use for command l](https://www.ruby-forum.com/t/getoptlong-getopt-parseopt-which-one-to-use-for-command-l/69796)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 2\
**Last updated:** [February 17, 2006, 8:38pm UTC](https://www.ruby-forum.com/t/getoptlong-getopt-parseopt-which-one-to-use-for-command-l/69796 "2006-02-17T20:38:28Z")

</div>

There seems to be several options out there. Which one should be used when creating command line tools?

---

## [RoR on CentOS 5, file permissions](https://www.ruby-forum.com/t/ror-on-centos-5-file-permissions/227442)

<div class="topic-metadata">

**Author:** [@Jussi\_H](https://www.ruby-forum.com/u/Jussi_H)\
**Replies:** 8\
**Last updated:** [March 20, 2013, 10:26am UTC](https://www.ruby-forum.com/t/ror-on-centos-5-file-permissions/227442 "2013-03-20T10:26:39Z")

</div>

I am learning RoR on CentOS 5. What would be the ideal way to set permissions in the app folder? The rails default did not work for me. I use git and apache/passenger. Everything works now that I added apache to the …

---

## [Deleting from hashes](https://www.ruby-forum.com/t/deleting-from-hashes/202071)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [January 21, 2011, 1:00pm UTC](https://www.ruby-forum.com/t/deleting-from-hashes/202071 "2011-01-21T13:00:51Z")

</div>

Hi all! Following on from my previous question I need some help with deleting cards from a hash. Heres what I have #!/usr/bin/env ruby Card = Struct.new :name, :type, :atk, :defn, :level $deck = \[ Card\[“Celtic Gua…

---

## [ActiveRecord come trovare i record prima e dopo](https://www.ruby-forum.com/t/activerecord-come-trovare-i-record-prima-e-dopo/185240)

<div class="topic-metadata">

**Author:** [@ialuronico](https://www.ruby-forum.com/u/ialuronico)\
**Replies:** 8\
**Last updated:** [March 16, 2010, 7:44pm UTC](https://www.ruby-forum.com/t/activerecord-come-trovare-i-record-prima-e-dopo/185240 "2010-03-16T19:44:48Z")

</div>

Salve a tutti, devo fare una classifica di utenti in base al loro punteggio e mostrare oltre all’ utente corrente i 3 prima di lui ed i 3 dopo di lui in classifica. Soprattutto mi piacerebbe riuscirci con una query s…

---

## [DateTime + 1 ora](https://www.ruby-forum.com/t/datetime-1-ora/176872)

<div class="topic-metadata">

**Author:** [@1w4n](https://www.ruby-forum.com/u/1w4n)\
**Replies:** 8\
**Last updated:** [October 8, 2009, 12:47am UTC](https://www.ruby-forum.com/t/datetime-1-ora/176872 "2009-10-08T00:47:33Z")

</div>

Ciao, se sommo un’ora (=1/24 di giorno) ad un DateTime sembra che mi perda un secondo (almeno la prima volta): require ‘date’ dt = DateTime.new(2009, 1, 1) (0…5).each do |k| puts dt.strftime("%Y-%m-%d %H:%M:%S") d…

---

## [Migrations - adding a new table and automatically creating r](https://www.ruby-forum.com/t/migrations-adding-a-new-table-and-automatically-creating-r/57868)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 8\
**Last updated:** [August 3, 2006, 2:22pm UTC](https://www.ruby-forum.com/t/migrations-adding-a-new-table-and-automatically-creating-r/57868 "2006-08-03T14:22:47Z")

</div>

I want to create table called roles and then populate it with some new records…This doesn’t work. Is there something I’m missing? Craig class AddRightsAndRolesTables \< ActiveRecord::Migration def self.up create\_tabl…

---

## [Class\_eval used inline vs within class definition](https://www.ruby-forum.com/t/class-eval-used-inline-vs-within-class-definition/58510)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 8\
**Last updated:** [April 22, 2006, 7:54pm UTC](https://www.ruby-forum.com/t/class-eval-used-inline-vs-within-class-definition/58510 "2006-04-22T19:54:29Z")

</div>

I’m reading the Ruby for Rails book, and on page 350 it has the example irb(main):001:0\> var = “initialized variable” =\> “initialized variable” irb(main):002:0\> class C; end =\> nil irb(main):003:0\> C.class\_eval { de…

---

## [Undefined method \`name' for nil:NilClass](https://www.ruby-forum.com/t/undefined-method-name-for-nil-nilclass/242514)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [June 29, 2015, 9:23pm UTC](https://www.ruby-forum.com/t/undefined-method-name-for-nil-nilclass/242514 "2015-06-29T21:23:56Z")

</div>

Hi, i’m pretty new to the Rail and Ruby and today I have a problem that I have to solve (tl;dr: the expert ruby/rails has left our company and now the newbies like me have to work on the projects that he left). So, l…

---

## [File source/sinks and named pipes](https://www.ruby-forum.com/t/file-source-sinks-and-named-pipes/212621)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 11, 2011, 11:35am UTC](https://www.ruby-forum.com/t/file-source-sinks-and-named-pipes/212621 "2011-10-11T11:35:20Z")

</div>

I have tried the following experiment that generated a couple of puzzling questions for me… A graph consisting of a sinusodial source, a file sink and a graphical fft sink (connected to the source). NO THROTTLE is p…

---

## [Parsing params (one of the params value has ampersand)](https://www.ruby-forum.com/t/parsing-params-one-of-the-params-value-has-ampersand/201166)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [January 1, 2011, 1:24am UTC](https://www.ruby-forum.com/t/parsing-params-one-of-the-params-value-has-ampersand/201166 "2011-01-01T01:24:47Z")

</div>

Hello, I am trying to parse a URL of this format http://example.com/links?deal\_id=161&url=http://another\_example.com/index.php?route=product/product&product\_id=275 I need to get 2 params deal\_id and url However, in …

---

## [Circular dependency caught in sort\_variables only String type](https://www.ruby-forum.com/t/circular-dependency-caught-in-sort-variables-only-string-type/232368)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [October 7, 2014, 6:14pm UTC](https://www.ruby-forum.com/t/circular-dependency-caught-in-sort-variables-only-string-type/232368 "2014-10-07T18:14:23Z")

</div>

Hi, I’m getting this error with string type variables using gnuradio 3.7.5 and I cannot figure out how to solve it. I’m using a normal variable plus a config variable in this way: Variable: id: variable\_A value: c…

---

## [Get string from file and save it as variable's definition?](https://www.ruby-forum.com/t/get-string-from-file-and-save-it-as-variables-definition/239168)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [February 17, 2014, 2:29pm UTC](https://www.ruby-forum.com/t/get-string-from-file-and-save-it-as-variables-definition/239168 "2014-02-17T14:29:01Z")

</div>

require ‘qwikcrypt’ #This is not important, just a encryption gem password = gets.chomp encrypted\_password = Qwikcrypt::encrypt(content:) #Encrypting the data :stuck\_out\_tongue: Dir.chdir ‘/my/secret/dir’ save = Fil…

---

## [Read and write to files](https://www.ruby-forum.com/t/read-and-write-to-files/236931)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [October 12, 2013, 6:10pm UTC](https://www.ruby-forum.com/t/read-and-write-to-files/236931 "2013-10-12T18:10:38Z")

</div>

Hi, I want to open a file and then I want to read the first the line, play a bit with it and give a changed line to the same place back. I tried it with for each\_line etc. or while line = gets but I all does not work.…

---

## [Rails 4.0 has\_many\_through and fields\_for](https://www.ruby-forum.com/t/rails-4-0-has-many-through-and-fields-for/227683)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [March 27, 2013, 5:27pm UTC](https://www.ruby-forum.com/t/rails-4-0-has-many-through-and-fields-for/227683 "2013-03-27T17:27:31Z")

</div>

Hi all, I am trying to reproduce rails 3.2 behaviour with fields\_for and nested attributes. class ControllerAction \< ActiveRecord::Base has\_many :interactions, dependent: :destroy has\_many :roles, through: :interac…

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

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